<A3pci7512><A3pci7512>
<A3pci7512><A3pci7512>
<A3pci7512>
2
Content
1. Outline ...................................................................................................................................................................................... 3
2. Installing the BSP ..................................................................................................................................................................... 4
2.1 Install the BSP for Tornado2.2.1 ...................................................................................................................................... 4
2.2 Install the BSP for Workbench2.5 .................................................................................................................................... 4
3. Preparation to start VxWorks on A3pci7512 ........................................................................................................................... 5
3.1 Make a VxWorks image file ............................................................................................................................................. 5
3.2 Preparation for boot file .................................................................................................................................................... 5
3.3 Connecting the console ..................................................................................................................................................... 6
3.4 Connecting the Network ................................................................................................................................................... 6
4. Boot of "VxWorks for A3pci7512" .......................................................................................................................................... 7
5. Using a file system ..................................................................................................................................................................10
5.1 File system related command ..........................................................................................................................................10
5.1.1 Mount ....................................................................................................................................................................... 10
5.1.2 Move of directry ....................................................................................................................................................... 10
5.1.3 Indication of current directory ................................................................................................................................. 10
5.1.4 Show the Contents of directory ................................................................................................................................ 10
5.1.5 Creation of directory ................................................................................................................................................ 10
5.1.6 Delete of directory .................................................................................................................................................... 11
5.1.7 Copy of file ............................................................................................................................................................... 11
5.1.8 Delete of file ............................................................................................................................................................. 11
5.2 Booting from miniSD card .............................................................................................................................................. 11
6. Programming information .......................................................................................................................................................12
6.1 Real time clock ................................................................................................................................................................ 12
6.1.1 Setups of a time-of-day ............................................................................................................................................ 12
6.1.2 Get of a time-of-day ................................................................................................................................................. 13
6.1.3 About system time ....................................................................................................................................................13
6.2 Direct Memory Access .....................................................................................................................................................14
6.2.1 adDmaInit() .............................................................................................................................................................. 14
6.2.2 adDmaStart() ............................................................................................................................................................ 14
6.2.3 adChainDmaStart() ................................................................................................................................................... 16
6.2.4 adDmaStop()............................................................................................................................................................. 18
7. About PCI bus ......................................................................................................................................................................... 19
7.1 For PCI configurations API ............................................................................................................................................. 19
7.2 PCI configurations APIs .................................................................................................................................................. 20
7.2.1 pciFindDevice() ........................................................................................................................................................ 20
7.2.2 pciFindClass() .......................................................................................................................................................... 21
7.2.3 pciDevConfig() ......................................................................................................................................................... 21
7.2.4 pciConfigInByte() ..................................................................................................................................................... 22
7.2.5 pciConfigInWord() ................................................................................................................................................... 22
7.2.6 pciConfigInLong() .................................................................................................................................................... 23
7.2.7 pciConfigOutByte() .................................................................................................................................................. 23
7.2.8 pciConfigOutWord() ................................................................................................................................................ 24
7.2.9 pciConfigOutLong() ................................................................................................................................................. 24
7.2.10 pciConfigModifyByte() .......................................................................................................................................... 25
7.2.11 pciConfigModifyWord() ........................................................................................................................................ 25
7.2.12 pciConfigModifyLong() ......................................................................................................................................... 26
7.2.13 pciIntConnect() ........................................................................................................................................................ 27
Appendix A. System dependent library ...................................................................................................................................... 28
Appendix B. The booting from ROM ......................................................................................................................................... 29
Appendix C. How to use ENUM interrupt ................................................................................................................................. 31
Appendix D. About VxWorks6.3 ................................................................................................................................................ 33