PCI driver programming steps
1. Copy ~ PCI header file in tornado \ target \ H \ DRV \ PCI directory, such as pciautoconfiglib. h and pciconfiglib. h
And ~ In the tornado \ target \ SRC \ DRV \ PCI directory, PCI autoconfiglib. C, pciconfiglib. C, and other PCI files are stored in the BSP directory.
2. rewrite or rewrite these PCI files according to the actual PCI hardware definition.
3. Rewrite the BSP configuration file
A. Add the statement # define & nbsp1_de_pci to the BSP file config. H (add the PCI module ).
B. Add the statement # include "PCI/pciconfiglib. c" to the BSP file syslib. C (the main PCI initialization function is in this file ).
C. Add the statement import void sysoutlong () to the BSP file syslib. C (some basic functions required for importing PCI ).
Import char sysinbyte ();
Import char sysoutbyte ();
...................