pci.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _IOP13XX_PCI_H_
  2. #define _IOP13XX_PCI_H_
  3. #include <linux/io.h>
  4. #include <mach/irqs.h>
  5. struct pci_sys_data;
  6. struct hw_pci;
  7. int iop13xx_pci_setup(int nr, struct pci_sys_data *sys);
  8. struct pci_bus *iop13xx_scan_bus(int nr, struct pci_sys_data *);
  9. void iop13xx_atu_select(struct hw_pci *plat_pci);
  10. void iop13xx_pci_init(void);
  11. void iop13xx_map_pci_memory(void);
  12. #define IOP_PCI_STATUS_ERROR (PCI_STATUS_PARITY | \
  13. PCI_STATUS_SIG_TARGET_ABORT | \
  14. PCI_STATUS_REC_TARGET_ABORT | \
  15. PCI_STATUS_REC_TARGET_ABORT | \
  16. PCI_STATUS_REC_MASTER_ABORT | \
  17. PCI_STATUS_SIG_SYSTEM_ERROR | \
  18. PCI_STATUS_DETECTED_PARITY)
  19. #define IOP13XX_ATUE_ATUISR_ERROR (IOP13XX_ATUE_STAT_HALT_ON_ERROR | \
  20. IOP13XX_ATUE_STAT_ROOT_SYS_ERR | \
  21. IOP13XX_ATUE_STAT_PCI_IFACE_ERR | \
  22. IOP13XX_ATUE_STAT_ERR_COR | \
  23. IOP13XX_ATUE_STAT_ERR_UNCOR | \
  24. IOP13XX_ATUE_STAT_CRS | \
  25. IOP13XX_ATUE_STAT_DET_PAR_ERR | \
  26. IOP13XX_ATUE_STAT_EXT_REC_MABORT | \
  27. IOP13XX_ATUE_STAT_SIG_TABORT | \
  28. IOP13XX_ATUE_STAT_EXT_REC_TABORT | \
  29. IOP13XX_ATUE_STAT_MASTER_DATA_PAR)
  30. #define IOP13XX_ATUX_ATUISR_ERROR (IOP13XX_ATUX_STAT_TX_SCEM | \
  31. IOP13XX_ATUX_STAT_REC_SCEM | \
  32. IOP13XX_ATUX_STAT_TX_SERR | \
  33. IOP13XX_ATUX_STAT_DET_PAR_ERR | \
  34. IOP13XX_ATUX_STAT_INT_REC_MABORT | \
  35. IOP13XX_ATUX_STAT_REC_SERR | \
  36. IOP13XX_ATUX_STAT_EXT_REC_MABORT | \
  37. IOP13XX_ATUX_STAT_EXT_REC_TABORT | \
  38. IOP13XX_ATUX_STAT_EXT_SIG_TABORT | \
  39. IOP13XX_ATUX_STAT_MASTER_DATA_PAR)
  40. /* PCI interrupts
  41. */
  42. #define ATUX_INTA IRQ_IOP13XX_XINT0
  43. #define ATUX_INTB IRQ_IOP13XX_XINT1
  44. #define ATUX_INTC IRQ_IOP13XX_XINT2
  45. #define ATUX_INTD IRQ_IOP13XX_XINT3
  46. #define ATUE_INTA IRQ_IOP13XX_ATUE_IMA
  47. #define ATUE_INTB IRQ_IOP13XX_ATUE_IMB
  48. #define ATUE_INTC IRQ_IOP13XX_ATUE_IMC
  49. #define ATUE_INTD IRQ_IOP13XX_ATUE_IMD
  50. #endif /* _IOP13XX_PCI_H_ */