阅读:1661回复:2
请教ndis3.0与ndis4.0续
可能上面问的不太清楚吧
nt4中可用ndis3.0,想在MacAddapter中分配资源.如 NdisAllocateSharedMemory( adapter->NdisAdapterRegistrationHandle, adapter->SharedMemorySize, FALSE, &adapter->SharedMemoryPtr, &adapter->SharedMemoryPhysicalAddress ); 在2k下想做类似的事应怎么做说穿了也就是把ndis3.0下的程序移到ndis4.0下吧.说说在2kddk或msdn中相关的地方 下面是basedir/inc/ddk下的ndis.h的一段 在2kddk的help中说这些是 "Obsolete NdisXxx Functions and Macros" NdisAllocateSharedMemory等不知可不可以在ndis4.0以上用 #if !defined(NDIS_MINIPORT_DRIVER) || defined(NDIS_WRAPPER) // // Shared memory // EXPORT VOID NdisAllocateSharedMemory( IN NDIS_HANDLE NdisAdapterHandle, IN ULONG Length, IN BOOLEAN Cached, OUT PVOID * VirtualAddress, OUT PNDIS_PHYSICAL_ADDRESS PhysicalAddress ); EXPORT VOID NdisFreeSharedMemory( IN NDIS_HANDLE NdisAdapterHandle, IN ULONG Length, IN BOOLEAN Cached, IN PVOID VirtualAddress, IN NDIS_PHYSICAL_ADDRESS PhysicalAddress ); // // Requests Used by MAC Drivers // EXPORT VOID NdisRegisterMac( OUT PNDIS_STATUS Status, OUT PNDIS_HANDLE NdisMacHandle, IN NDIS_HANDLE NdisWrapperHandle, IN NDIS_HANDLE MacMacContext, IN PNDIS_MAC_CHARACTERISTICS MacCharacteristics, IN UINT CharacteristicsLength ); EXPORT VOID NdisDeregisterMac( OUT PNDIS_STATUS Status, IN NDIS_HANDLE NdisMacHandle ); EXPORT NDIS_STATUS NdisRegisterAdapter( OUT PNDIS_HANDLE NdisAdapterHandle, IN NDIS_HANDLE NdisMacHandle, IN NDIS_HANDLE MacAdapterContext, IN NDIS_HANDLE WrapperConfigurationContext, IN PNDIS_STRING AdapterName, IN PVOID AdapterInformation ); EXPORT NDIS_STATUS NdisDeregisterAdapter( IN NDIS_HANDLE NdisAdapterHandle ); EXPORT VOID NdisRegisterAdapterShutdownHandler( IN NDIS_HANDLE NdisAdapterHandle, IN PVOID ShutdownContext, IN ADAPTER_SHUTDOWN_HANDLER ShutdownHandler ); EXPORT VOID NdisDeregisterAdapterShutdownHandler( IN NDIS_HANDLE NdisAdapterHandle ); EXPORT VOID NdisReleaseAdapterResources( IN NDIS_HANDLE NdisAdapterHandle ); |
|
|
沙发#
发布于:2001-10-08 17:15
还是不太明白你的目的是什么
|
|
|
板凳#
发布于:2001-10-09 11:12
对啊。问的太麻烦了,不如这样问,
1.有哪位大虾的中间层驱动程序可同时在ndis3.0(9x/nt/me),ndis4.0(2000)下都能正常运行. 2.ndis3.0,4.0间的中间层驱动程序异同有哪些? 这样是不是够清楚了?? |
|
|