mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 13:18:51 +00:00
- Export the stubs for NdisRegisterTdiCallBack, NdisSetProtocolFilter, and NdisClGetProtocolVcContextFromTapiCallId
- Remove some extra stuff - Move implemented stuff to misc.c - Add some debug prints svn path=/trunk/; revision=41231
This commit is contained in:
parent
a10701f6ac
commit
d6dda55c2d
|
@ -34,6 +34,7 @@ NdisClCloseAddressFamily@4
|
|||
NdisClCloseCall@16
|
||||
NdisClDeregisterSap@4
|
||||
NdisClDropParty@12
|
||||
NdisClGetProtocolVcContextFromTapiCallId@12
|
||||
NdisClIncomingCallComplete@12
|
||||
NdisClMakeCall@16
|
||||
NdisClModifyCallQoS@8
|
||||
|
@ -84,7 +85,7 @@ NdisDeregisterAdapter@4
|
|||
NdisDeregisterAdapterShutdownHandler@4
|
||||
NdisDeregisterMac@8
|
||||
NdisDeregisterProtocol@8
|
||||
;NdisDeregisterTdiCallback ?
|
||||
NdisDeregisterTdiCallBack@0
|
||||
NdisDestroyBlockPool@4
|
||||
NdisDprAcquireSpinLock@4
|
||||
NdisDprAllocatePacket@12
|
||||
|
@ -256,7 +257,7 @@ NdisReEnumerateProtocolBindings@4
|
|||
NdisRegisterAdapter@24
|
||||
NdisRegisterAdapterShutdownHandler@12
|
||||
NdisRegisterProtocol@16
|
||||
;NdisRegisterTdiCallBack ?
|
||||
NdisRegisterTdiCallBack@8
|
||||
NdisReleaseAdapterResources@4
|
||||
NdisReleaseReadWriteLock@8
|
||||
NdisReleaseSpinLock@4
|
||||
|
@ -270,7 +271,7 @@ NdisSetEvent@4
|
|||
NdisSetPacketCancelId@8
|
||||
NdisSetPacketPoolProtocolId@8
|
||||
NdisSetPacketStatus@16
|
||||
;NdisSetProtocolFilter ?
|
||||
NdisSetProtocolFilter@32
|
||||
NdisSetTimer@8
|
||||
NdisSetTimerEx@12
|
||||
NdisSetupDmaTransfer@24
|
||||
|
|
|
@ -131,28 +131,6 @@ NdisAllocateFromBlockPool(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* @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
|
||||
*/
|
||||
|
@ -309,28 +287,31 @@ NdisMWanSendComplete(
|
|||
UNIMPLEMENTED
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
NdisOpenGlobalConfiguration
|
||||
* @unimplemented
|
||||
*/
|
||||
|
||||
#if 0
|
||||
VOID
|
||||
EXPORT
|
||||
NdisRegisterTdiCallBack(
|
||||
IN TDI_REGISTER_CALLBACK RegsterCallback)
|
||||
IN TDI_REGISTER_CALLBACK RegisterCallback,
|
||||
IN TDI_PNP_HANDLER PnPHandler)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
NdisScheduleWorkItem
|
||||
* @unimplemented
|
||||
*/
|
||||
VOID
|
||||
EXPORT
|
||||
NdisDeregisterTdiCallBack(VOID)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
VOID
|
||||
EXPORT
|
||||
NdisSetProtocolFilter(
|
||||
|
@ -345,18 +326,6 @@ NdisSetProtocolFilter(
|
|||
{
|
||||
UNIMPLEMENTED
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
NdisUpcaseUnicodeString
|
||||
NdisUpdateSharedMemory@4
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
NdisWriteEventLogEntry
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -126,6 +126,8 @@ NdisUnmapFile(
|
|||
{
|
||||
PNDIS_HANDLE_OBJECT HandleObject = (PNDIS_HANDLE_OBJECT) FileHandle;
|
||||
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
||||
HandleObject->Mapped = FALSE;
|
||||
}
|
||||
|
||||
|
@ -141,6 +143,8 @@ NdisCloseFile(
|
|||
|
||||
ASSERT_IRQL(PASSIVE_LEVEL);
|
||||
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
||||
ASSERT ( FileHandle );
|
||||
|
||||
FileHandleObject = NDIS_HANDLE_TO_POBJECT(FileHandle);
|
||||
|
@ -177,6 +181,8 @@ NdisOpenFile(
|
|||
|
||||
ASSERT_IRQL(PASSIVE_LEVEL);
|
||||
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
||||
*Status = NDIS_STATUS_SUCCESS;
|
||||
FullFileName.Buffer = NULL;
|
||||
|
||||
|
@ -280,6 +286,8 @@ NdisGetCurrentProcessorCounts(
|
|||
* NDIS 5.0
|
||||
*/
|
||||
{
|
||||
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
|
||||
|
||||
ExGetCurrentProcessorCounts( (PULONG) pIdleCount, (PULONG) pKernelAndUser, (PULONG) pIndex);
|
||||
}
|
||||
|
||||
|
@ -294,6 +302,8 @@ NdisGetSystemUpTime(OUT PULONG pSystemUpTime)
|
|||
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 @@ NTAPI
|
|||
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 @@ NdisScheduleWorkItem(
|
|||
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 @@ NdisGetCurrentProcessorCpuUsage(
|
|||
* 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 */
|
||||
|
|
Loading…
Reference in a new issue