2006-09-27 14:59:17 +08:00
|
|
|
/*
|
|
|
|
* Low-Level PCI Support for SH7780 targets
|
|
|
|
*
|
|
|
|
* Dustin McIntire (dustin@sensoria.com) (c) 2001
|
|
|
|
* Paul Mundt (lethal@linux-sh.org) (c) 2003
|
|
|
|
*
|
|
|
|
* May be copied or modified under the terms of the GNU General Public
|
|
|
|
* License. See linux/COPYING for more information.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PCI_SH7780_H_
|
|
|
|
#define _PCI_SH7780_H_
|
|
|
|
|
2010-01-29 21:19:04 +08:00
|
|
|
#define PCI_VENDOR_ID_RENESAS 0x1912
|
|
|
|
#define PCI_DEVICE_ID_RENESAS_SH7781 0x0001
|
|
|
|
#define PCI_DEVICE_ID_RENESAS_SH7780 0x0002
|
|
|
|
#define PCI_DEVICE_ID_RENESAS_SH7763 0x0004
|
|
|
|
#define PCI_DEVICE_ID_RENESAS_SH7785 0x0007
|
2006-09-27 14:59:17 +08:00
|
|
|
|
|
|
|
/* SH7780 Control Registers */
|
2009-04-17 14:05:19 +08:00
|
|
|
#define PCIECR 0xFE000008
|
|
|
|
#define PCIECR_ENBL 0x01
|
2006-09-27 14:59:17 +08:00
|
|
|
|
|
|
|
/* SH7780 Specific Values */
|
|
|
|
#define SH7780_PCI_CONFIG_BASE 0xFD000000 /* Config space base addr */
|
|
|
|
#define SH7780_PCI_CONFIG_SIZE 0x01000000 /* Config space size */
|
2006-09-27 15:43:28 +08:00
|
|
|
|
2006-09-27 14:59:17 +08:00
|
|
|
#define SH7780_PCI_MEMORY_BASE 0xFD000000 /* Memory space base addr */
|
|
|
|
#define SH7780_PCI_MEM_SIZE 0x01000000 /* Size of Memory window */
|
2006-09-27 15:43:28 +08:00
|
|
|
|
2007-11-30 11:35:24 +08:00
|
|
|
#define SH7780_PCI_IO_BASE 0xFE200000 /* IO space base address */
|
2006-09-27 14:59:17 +08:00
|
|
|
#define SH7780_PCI_IO_SIZE 0x00400000 /* Size of IO window */
|
|
|
|
|
|
|
|
#define SH7780_PCIREG_BASE 0xFE040000 /* PCI regs base address */
|
|
|
|
|
|
|
|
/* SH7780 PCI Config Registers */
|
2007-03-28 23:07:35 +08:00
|
|
|
#define SH7780_PCIIR 0x114 /* PCI Interrupt Register */
|
|
|
|
#define SH7780_PCIIMR 0x118 /* PCI Interrupt Mask Register */
|
|
|
|
#define SH7780_PCIAIR 0x11C /* Error Address Register */
|
|
|
|
#define SH7780_PCICIR 0x120 /* Error Command/Data Register */
|
|
|
|
#define SH7780_PCIAINT 0x130 /* Arbiter Interrupt Register */
|
|
|
|
#define SH7780_PCIAINTM 0x134 /* Arbiter Int. Mask Register */
|
|
|
|
#define SH7780_PCIBMIR 0x138 /* Error Bus Master Register */
|
|
|
|
#define SH7780_PCIPAR 0x1C0 /* PIO Address Register */
|
|
|
|
#define SH7780_PCIPINT 0x1CC /* Power Mgmnt Int. Register */
|
|
|
|
#define SH7780_PCIPINTM 0x1D0 /* Power Mgmnt Mask Register */
|
|
|
|
|
2006-09-27 15:43:28 +08:00
|
|
|
#define SH7780_PCIMBR0 0x1E0
|
|
|
|
#define SH7780_PCIMBMR0 0x1E4
|
2010-01-29 21:19:04 +08:00
|
|
|
#define SH7780_PCIMBR1 0x1E8
|
|
|
|
#define SH7780_PCIMBMR1 0x1EC
|
2006-09-27 15:43:28 +08:00
|
|
|
#define SH7780_PCIMBR2 0x1F0
|
|
|
|
#define SH7780_PCIMBMR2 0x1F4
|
|
|
|
#define SH7780_PCIIOBR 0x1F8
|
|
|
|
#define SH7780_PCIIOBMR 0x1FC
|
2006-09-27 14:59:17 +08:00
|
|
|
#define SH7780_PCICSCR0 0x210 /* Cache Snoop1 Cnt. Register */
|
|
|
|
#define SH7780_PCICSCR1 0x214 /* Cache Snoop2 Cnt. Register */
|
|
|
|
#define SH7780_PCICSAR0 0x218 /* Cache Snoop1 Addr. Register */
|
|
|
|
#define SH7780_PCICSAR1 0x21C /* Cache Snoop2 Addr. Register */
|
|
|
|
|
|
|
|
#endif /* _PCI_SH7780_H_ */
|