18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci * 38c2ecf20Sopenharmony_ci * Low-Level PCI Support for SH7780 targets 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Dustin McIntire (dustin@sensoria.com) (c) 2001 68c2ecf20Sopenharmony_ci * Paul Mundt (lethal@linux-sh.org) (c) 2003 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef _PCI_SH7780_H_ 108c2ecf20Sopenharmony_ci#define _PCI_SH7780_H_ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* SH7780 Control Registers */ 138c2ecf20Sopenharmony_ci#define PCIECR 0xFE000008 148c2ecf20Sopenharmony_ci#define PCIECR_ENBL 0x01 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* SH7780 Specific Values */ 178c2ecf20Sopenharmony_ci#define SH7780_PCI_CONFIG_BASE 0xFD000000 /* Config space base addr */ 188c2ecf20Sopenharmony_ci#define SH7780_PCI_CONFIG_SIZE 0x01000000 /* Config space size */ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define SH7780_PCIREG_BASE 0xFE040000 /* PCI regs base address */ 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci/* SH7780 PCI Config Registers */ 238c2ecf20Sopenharmony_ci#define SH7780_PCIIR 0x114 /* PCI Interrupt Register */ 248c2ecf20Sopenharmony_ci#define SH7780_PCIIMR 0x118 /* PCI Interrupt Mask Register */ 258c2ecf20Sopenharmony_ci#define SH7780_PCIAIR 0x11C /* Error Address Register */ 268c2ecf20Sopenharmony_ci#define SH7780_PCICIR 0x120 /* Error Command/Data Register */ 278c2ecf20Sopenharmony_ci#define SH7780_PCIAINT 0x130 /* Arbiter Interrupt Register */ 288c2ecf20Sopenharmony_ci#define SH7780_PCIAINTM 0x134 /* Arbiter Int. Mask Register */ 298c2ecf20Sopenharmony_ci#define SH7780_PCIBMIR 0x138 /* Error Bus Master Register */ 308c2ecf20Sopenharmony_ci#define SH7780_PCIPAR 0x1C0 /* PIO Address Register */ 318c2ecf20Sopenharmony_ci#define SH7780_PCIPINT 0x1CC /* Power Mgmnt Int. Register */ 328c2ecf20Sopenharmony_ci#define SH7780_PCIPINTM 0x1D0 /* Power Mgmnt Mask Register */ 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#define SH7780_PCIMBR(x) (0x1E0 + ((x) * 8)) 358c2ecf20Sopenharmony_ci#define SH7780_PCIMBMR(x) (0x1E4 + ((x) * 8)) 368c2ecf20Sopenharmony_ci#define SH7780_PCIIOBR 0x1F8 378c2ecf20Sopenharmony_ci#define SH7780_PCIIOBMR 0x1FC 388c2ecf20Sopenharmony_ci#define SH7780_PCICSCR0 0x210 /* Cache Snoop1 Cnt. Register */ 398c2ecf20Sopenharmony_ci#define SH7780_PCICSCR1 0x214 /* Cache Snoop2 Cnt. Register */ 408c2ecf20Sopenharmony_ci#define SH7780_PCICSAR0 0x218 /* Cache Snoop1 Addr. Register */ 418c2ecf20Sopenharmony_ci#define SH7780_PCICSAR1 0x21C /* Cache Snoop2 Addr. Register */ 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#endif /* _PCI_SH7780_H_ */ 44