pci-sh7780.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Low-Level PCI Support for SH7780 targets
  4. *
  5. * Dustin McIntire ([email protected]) (c) 2001
  6. * Paul Mundt ([email protected]) (c) 2003
  7. */
  8. #ifndef _PCI_SH7780_H_
  9. #define _PCI_SH7780_H_
  10. /* SH7780 Control Registers */
  11. #define PCIECR 0xFE000008
  12. #define PCIECR_ENBL 0x01
  13. /* SH7780 Specific Values */
  14. #define SH7780_PCI_CONFIG_BASE 0xFD000000 /* Config space base addr */
  15. #define SH7780_PCI_CONFIG_SIZE 0x01000000 /* Config space size */
  16. #define SH7780_PCIREG_BASE 0xFE040000 /* PCI regs base address */
  17. /* SH7780 PCI Config Registers */
  18. #define SH7780_PCIIR 0x114 /* PCI Interrupt Register */
  19. #define SH7780_PCIIMR 0x118 /* PCI Interrupt Mask Register */
  20. #define SH7780_PCIAIR 0x11C /* Error Address Register */
  21. #define SH7780_PCICIR 0x120 /* Error Command/Data Register */
  22. #define SH7780_PCIAINT 0x130 /* Arbiter Interrupt Register */
  23. #define SH7780_PCIAINTM 0x134 /* Arbiter Int. Mask Register */
  24. #define SH7780_PCIBMIR 0x138 /* Error Bus Master Register */
  25. #define SH7780_PCIPAR 0x1C0 /* PIO Address Register */
  26. #define SH7780_PCIPINT 0x1CC /* Power Mgmnt Int. Register */
  27. #define SH7780_PCIPINTM 0x1D0 /* Power Mgmnt Mask Register */
  28. #define SH7780_PCIMBR(x) (0x1E0 + ((x) * 8))
  29. #define SH7780_PCIMBMR(x) (0x1E4 + ((x) * 8))
  30. #define SH7780_PCIIOBR 0x1F8
  31. #define SH7780_PCIIOBMR 0x1FC
  32. #define SH7780_PCICSCR0 0x210 /* Cache Snoop1 Cnt. Register */
  33. #define SH7780_PCICSCR1 0x214 /* Cache Snoop2 Cnt. Register */
  34. #define SH7780_PCICSAR0 0x218 /* Cache Snoop1 Addr. Register */
  35. #define SH7780_PCICSAR1 0x21C /* Cache Snoop2 Addr. Register */
  36. #endif /* _PCI_SH7780_H_ */