pci.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* pci.h - PCI bus constants header file */
  2. /* Copyright 1984-1999 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,02feb99,tm   written
  7. */
  8. /*
  9. DESCRIPTION
  10. This file contains address space descriptor defines analogous to the
  11. definitions for the VME bus contained in vme.h. There are two sets of
  12. defines corresponding to a primary (PRI) PCI interface and a secondary
  13. (SEC) interface.
  14. The primary interface is defined as the interface that is closest to 
  15. the system processor. The secondary interface is defined as the interface 
  16. that is farther downstream from the processor than the primary bus, such 
  17. as a CompactPCI bus that is accessed through a PCI-to-PCI bridge. 
  18. */
  19. #ifndef __INCpcih
  20. #define __INCpcih
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #define PCI_SPACE_IO_PRI     0x40
  25. #define PCI_SPACE_MEMIO_PRI  0x41
  26. #define PCI_SPACE_MEM_PRI    0x42
  27. #define PCI_SPACE_IO16_PRI   0x43
  28. #define PCI_SPACE_CFG_PRI    0x44
  29. #define PCI_SPACE_IACK_PRI   0x45
  30. #define PCI_SPACE_IO_SEC     0x50
  31. #define PCI_SPACE_MEMIO_SEC  0x51
  32. #define PCI_SPACE_MEM_SEC    0x52
  33. #define PCI_SPACE_IO16_SEC   0x53
  34. #define PCI_SPACE_CFG_SEC    0x54
  35. #define PCI_SPACE_IACK_SEC   0x55
  36. #define PCI_SPACE_IS_PRI(s) (((s) & 0xf0) == 0x40)
  37. #define PCI_SPACE_IS_SEC(s) (((s) & 0xf0) == 0x50)
  38. #define PCI_SPACE_IS_LOCAL PCI_SPACE_IS_PRI
  39. #define PCI_SPACE_IS_CPCI  PCI_SPACE_IS_SEC
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif /* __INCpcih */