Linux E1000网络驱动源代码分析
kernel源代码版本:git-v3.16.39
1.初始化
e1000_init_module下pci_register_driver注册驱动,
static struct pci_driver e1000_driver = {
.probe = e1000_probe,
.remove = e1000_remove,
.shutdown = e1000_shutdown,
};
在e1000_probe下,e1000_is_need_ioport为真时,执行
//PCI 6个bar空间...