-
理论知识
见《VxWorks系统的PCI总线配置与应用》
-
实现步骤:
-
建立工程,添加BSP包;
-
-
将驱动测试代码surfConfPciDevice.c加入工程中;
-
在usrAPPInit.c中添加测试程序,surfConfPciDevice(int vendorId, int devId, int myIndex),厂商号和设备号在BIOS启动时会打印在屏幕上。
其中与PCI相关的函数在pciConfigLib.c (c:\tornado2.2\target\src\drv\pci) 中。
-
转载于:https://www.cnblogs.com/FreedomBox/p/6534453.html