阅读:1877回复:2
NDIS下调用底层非NIC驱动
各位大虾:
有谁曾经在NDIS下调用底层非NIC驱动?如果知道请不吝赐教! 我这边礼过去了! wxqcs@263.net |
|
沙发#
发布于:2001-07-16 15:32
我在NDIS 虚拟miniport驱动中调用过一块WDM PCI视频卡的驱动程序
你能不能说详细点? |
|
|
板凳#
发布于:2001-07-16 23:54
hello:
我在IPBlock_FilterSendPacket函数中调用低层pci驱动,而IPBlock_FilterSendPacket是按照下列方式登记的: NDIS_STATUS IPBlock_Initialize( VOID ) { PCASIM_FILTER_CHARACTERISTICS FiltChar; NDIS_STATUS nNdisStatus; ImDbgOut( DBG_INFO, DBG_FILTERS | DBG_INIT, ("IPBlock_Initialize: Entry\n")); InitializeListHead( &g_IPBlock_GlobalContext.FiltAdptContextList );// 执行g_IPBlock_GlobalContext的缺省初始化 // // 若有必要,读取注册表 // NdisZeroMemory( &FiltChar, sizeof( PCASIM_FILTER_CHARACTERISTICS ) ); FiltChar.NotifyAddApapter = IPBlock_OnAddAdapter; FiltChar.NotifyRemoveApapter = IPBlock_OnRemoveAdapter; FiltChar.DoReceiveProcessing = IPBlock_DoReceiveProcessing; FiltChar.QueueRvcPacket = IPBlock_QueueRcvPacket; FiltChar.LanFilterRcvIndication = IPBlock_FilterRcvIndication; FiltChar.DoSendProcessing = IPBlock_DoSendProcessing; FiltChar.LanFilterSendPacket = IPBlock_FilterSendPacket; FiltChar.IoctlHandler = IPBlock_IoctlHandler; PCASIMRegisterProtocolFilter( &nNdisStatus, &g_hIPBlockHandle, &FiltChar, sizeof( PCASIM_FILTER_CHARACTERISTICS ) ); return( NDIS_STATUS_SUCCESS ); } 本人的NDIS是根据IPBlock改造的。 |
|