Author: cgutman
Date: Mon Jun 1 03:00:32 2009
New Revision: 41231
URL:
http://svn.reactos.org/svn/reactos?rev=41231&view=rev
Log:
- Export the stubs for NdisRegisterTdiCallBack, NdisSetProtocolFilter, and
NdisClGetProtocolVcContextFromTapiCallId
- Remove some extra stuff
- Move implemented stuff to misc.c
- Add some debug prints
Modified:
trunk/reactos/drivers/network/ndis/ndis.def
trunk/reactos/drivers/network/ndis/ndis/50stubs.c
trunk/reactos/drivers/network/ndis/ndis/cl.c
trunk/reactos/drivers/network/ndis/ndis/misc.c
Modified: trunk/reactos/drivers/network/ndis/ndis.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis.…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis.def [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis.def [iso-8859-1] Mon Jun 1 03:00:32 2009
@@ -34,6 +34,7 @@
NdisClCloseCall@16
NdisClDeregisterSap@4
NdisClDropParty@12
+NdisClGetProtocolVcContextFromTapiCallId@12
NdisClIncomingCallComplete@12
NdisClMakeCall@16
NdisClModifyCallQoS@8
@@ -84,7 +85,7 @@
NdisDeregisterAdapterShutdownHandler@4
NdisDeregisterMac@8
NdisDeregisterProtocol@8
-;NdisDeregisterTdiCallback ?
+NdisDeregisterTdiCallBack@0
NdisDestroyBlockPool@4
NdisDprAcquireSpinLock@4
NdisDprAllocatePacket@12
@@ -256,7 +257,7 @@
NdisRegisterAdapter@24
NdisRegisterAdapterShutdownHandler@12
NdisRegisterProtocol@16
-;NdisRegisterTdiCallBack ?
+NdisRegisterTdiCallBack@8
NdisReleaseAdapterResources@4
NdisReleaseReadWriteLock@8
NdisReleaseSpinLock@4
@@ -270,7 +271,7 @@
NdisSetPacketCancelId@8
NdisSetPacketPoolProtocolId@8
NdisSetPacketStatus@16
-;NdisSetProtocolFilter ?
+NdisSetProtocolFilter@32
NdisSetTimer@8
NdisSetTimerEx@12
NdisSetupDmaTransfer@24
Modified: trunk/reactos/drivers/network/ndis/ndis/50stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/50stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/50stubs.c [iso-8859-1] Mon Jun 1 03:00:32
2009
@@ -132,28 +132,6 @@
}
/*
- * @implemented
- */
-ULONG
-EXPORT
-NdisGetSharedDataAlignment(VOID)
-{
- return KeGetRecommendedSharedDataAlignment();
-}
-
-/*
- * @implemented
- */
-UINT
-EXPORT
-NdisGetVersion(VOID)
-{
- NDIS_DbgPrint(MAX_TRACE, ("NdisGetVersion() has returned 5.1\n"));
-
- return (UINT) 0x501;
-}
-
-/*
* @unimplemented
*/
PVOID
@@ -309,28 +287,31 @@
UNIMPLEMENTED
}
-
-/*
-NdisOpenGlobalConfiguration
-*/
-
-#if 0
+/*
+ * @unimplemented
+ */
VOID
EXPORT
NdisRegisterTdiCallBack(
- IN TDI_REGISTER_CALLBACK RegsterCallback)
-{
- UNIMPLEMENTED
-}
-#endif
-
-
-/*
-NdisScheduleWorkItem
-*/
-
-
-#if 0
+ IN TDI_REGISTER_CALLBACK RegisterCallback,
+ IN TDI_PNP_HANDLER PnPHandler)
+{
+ UNIMPLEMENTED
+}
+
+/*
+ * @unimplemented
+ */
+VOID
+EXPORT
+NdisDeregisterTdiCallBack(VOID)
+{
+ UNIMPLEMENTED
+}
+
+/*
+ * @unimplemented
+ */
VOID
EXPORT
NdisSetProtocolFilter(
@@ -345,18 +326,6 @@
{
UNIMPLEMENTED
}
-#endif
-
-
-/*
-NdisUpcaseUnicodeString
-NdisUpdateSharedMemory@4
-*/
-
-
-/*
-NdisWriteEventLogEntry
-*/
/*
Modified: trunk/reactos/drivers/network/ndis/ndis/cl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/cl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/cl.c [iso-8859-1] Mon Jun 1 03:00:32 2009
@@ -10,6 +10,19 @@
#include "ndissys.h"
+/*
+ * @unimplemented
+ */
+NDIS_STATUS
+EXPORT
+NdisClGetProtocolVcContextFromTapiCallId(
+ IN UNICODE_STRING TapiCallId,
+ OUT PNDIS_HANDLE ProtocolVcContext)
+{
+ UNIMPLEMENTED
+
+ return NDIS_STATUS_FAILURE;
+}
/*
* @unimplemented
Modified: trunk/reactos/drivers/network/ndis/ndis/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] Mon Jun 1 03:00:32 2009
@@ -126,6 +126,8 @@
{
PNDIS_HANDLE_OBJECT HandleObject = (PNDIS_HANDLE_OBJECT) FileHandle;
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
HandleObject->Mapped = FALSE;
}
@@ -140,6 +142,8 @@
PNDIS_HANDLE_OBJECT FileHandleObject;
ASSERT_IRQL(PASSIVE_LEVEL);
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
ASSERT ( FileHandle );
@@ -176,6 +180,8 @@
IO_STATUS_BLOCK IoStatusBlock;
ASSERT_IRQL(PASSIVE_LEVEL);
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
*Status = NDIS_STATUS_SUCCESS;
FullFileName.Buffer = NULL;
@@ -280,6 +286,8 @@
* NDIS 5.0
*/
{
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
ExGetCurrentProcessorCounts( (PULONG) pIdleCount, (PULONG) pKernelAndUser, (PULONG)
pIndex);
}
@@ -294,6 +302,8 @@
ULONG Increment;
LARGE_INTEGER TickCount;
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
/* Get the increment and current tick count */
Increment = KeQueryTimeIncrement();
KeQueryTickCount(&TickCount);
@@ -388,6 +398,9 @@
ndisProcWorkItemHandler(PVOID pContext)
{
PNDIS_WORK_ITEM pNdisItem = (PNDIS_WORK_ITEM)pContext;
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
pNdisItem->Routine(pNdisItem, pNdisItem->Context);
}
@@ -397,6 +410,9 @@
IN PNDIS_WORK_ITEM pWorkItem)
{
PWORK_QUEUE_ITEM pntWorkItem = (PWORK_QUEUE_ITEM)pWorkItem->WrapperReserved;
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
ExInitializeWorkItem(pntWorkItem, ndisProcWorkItemHandler, pWorkItem);
ExQueueWorkItem(pntWorkItem, DelayedWorkQueue);
return NDIS_STATUS_SUCCESS;
@@ -415,7 +431,33 @@
* pCpuUsage = Pointer to a buffer to place CPU usage
*/
{
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
ExGetCurrentProcessorCpuUsage(pCpuUsage);
}
+/*
+ * @implemented
+ */
+ULONG
+EXPORT
+NdisGetSharedDataAlignment(VOID)
+{
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
+ return KeGetRecommendedSharedDataAlignment();
+}
+
+/*
+ * @implemented
+ */
+UINT
+EXPORT
+NdisGetVersion(VOID)
+{
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
+ return (UINT) 0x501;
+}
+
/* EOF */