pci.h 876 B

1234567891011121314151617181920212223242526272829303132333435363738
  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_CHECKS 0x400
  23. #define PCI_ASSIGN_ROMS 0x1000
  24. #define PCI_BIOS_IRQ_SCAN 0x2000
  25. /* MPC-1211 Specific Values */
  26. #define PCIPAR (0xa4000cf8) /* PCI Config address */
  27. #define PCIPDR (0xa4000cfc) /* PCI Config data */
  28. #define PA_PCI_IO (0xa4000000) /* PCI I/O space */
  29. #define PA_PCI_MEM (0xb0000000) /* PCI MEM space */
  30. #endif /* _PCI_MPC1211_H_ */