阅读:1289回复:1
大虾帮忙介绍一下网卡驱动初始化过程
尤其是如何识别自己的网卡那部分,谢谢
|
|
沙发#
发布于:2005-04-09 10:29
1, Find the media type supported
2, Allocate ADAPTER structure,and save adapter handle 3, NdisOpenConfiguration() 4, NdisReadNetworkAddress() 5, Read your register params 6, NdisMSetAttributesEx() 7, Special Variable Initial Setting 8, Find the physical adapter 9, Map bus-relative IO range to system IO space.Save Io Base Address 10, Register the interrupt if yours need,NdisMRegisterInterrupt() 11, Set timers or spinlocks, memory 12, more if yours need |
|
|