pci.h 940 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Low-Level PCI Support for MPC-1211
  3. *
  4. * (c) 2002 Saito.K & Jeanne
  5. *
  6. */
  7. #ifndef _PCI_MPC1211_H_
  8. #define _PCI_MPC1211_H_
  9. #include <linux/pci.h>
  10. /* set debug level 4=verbose...1=terse */
  11. //#define DEBUG_PCI 3
  12. #undef DEBUG_PCI
  13. #ifdef DEBUG_PCI
  14. #define PCIDBG(n, x...) { if(DEBUG_PCI>=n) printk(x); }
  15. #else
  16. #define PCIDBG(n, x...)
  17. #endif
  18. /* startup values */
  19. #define PCI_PROBE_BIOS 1
  20. #define PCI_PROBE_CONF1 2
  21. #define PCI_PROBE_CONF2 4
  22. #define PCI_NO_SORT 0x100
  23. #define PCI_BIOS_SORT 0x200
  24. #define PCI_NO_CHECKS 0x400
  25. #define PCI_ASSIGN_ROMS 0x1000
  26. #define PCI_BIOS_IRQ_SCAN 0x2000
  27. /* MPC-1211 Specific Values */
  28. #define PCIPAR (0xa4000cf8) /* PCI Config address */
  29. #define PCIPDR (0xa4000cfc) /* PCI Config data */
  30. #define PA_PCI_IO (0xa4000000) /* PCI I/O space */
  31. #define PA_PCI_MEM (0xb0000000) /* PCI MEM space */
  32. #endif /* _PCI_MPC1211_H_ */