Home | History | Annotate | Line # | Download | only in xscale
i80312reg.h revision 1.9
      1  1.9  thorpej /*	$NetBSD: i80312reg.h,v 1.9 2001/11/29 08:26:18 thorpej Exp $	*/
      2  1.9  thorpej 
      3  1.9  thorpej /*
      4  1.9  thorpej  * Copyright (c) 2001 Wasabi Systems, Inc.
      5  1.9  thorpej  * All rights reserved.
      6  1.9  thorpej  *
      7  1.9  thorpej  * Written by Jason R. Thorpe for Wasabi Systems, Inc.
      8  1.9  thorpej  *
      9  1.9  thorpej  * Redistribution and use in source and binary forms, with or without
     10  1.9  thorpej  * modification, are permitted provided that the following conditions
     11  1.9  thorpej  * are met:
     12  1.9  thorpej  * 1. Redistributions of source code must retain the above copyright
     13  1.9  thorpej  *    notice, this list of conditions and the following disclaimer.
     14  1.9  thorpej  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.9  thorpej  *    notice, this list of conditions and the following disclaimer in the
     16  1.9  thorpej  *    documentation and/or other materials provided with the distribution.
     17  1.9  thorpej  * 3. All advertising materials mentioning features or use of this software
     18  1.9  thorpej  *    must display the following acknowledgement:
     19  1.9  thorpej  *	This product includes software developed for the NetBSD Project by
     20  1.9  thorpej  *	Wasabi Systems, Inc.
     21  1.9  thorpej  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
     22  1.9  thorpej  *    or promote products derived from this software without specific prior
     23  1.9  thorpej  *    written permission.
     24  1.9  thorpej  *
     25  1.9  thorpej  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
     26  1.9  thorpej  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     27  1.9  thorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     28  1.9  thorpej  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
     29  1.9  thorpej  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     30  1.9  thorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     31  1.9  thorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     32  1.9  thorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     33  1.9  thorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     34  1.9  thorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     35  1.9  thorpej  * POSSIBILITY OF SUCH DAMAGE.
     36  1.9  thorpej  */
     37  1.3  thorpej 
     38  1.1     matt /*-
     39  1.1     matt  * Copyright (c) 2001 The NetBSD Foundation, Inc.
     40  1.1     matt  * All rights reserved.
     41  1.1     matt  *
     42  1.1     matt  * This code is derived from software contributed to The NetBSD Foundation
     43  1.3  thorpej  * by Matt Thomas <matt (at) 3am-software.com>.
     44  1.1     matt  *
     45  1.1     matt  * Redistribution and use in source and binary forms, with or without
     46  1.1     matt  * modification, are permitted provided that the following conditions
     47  1.1     matt  * are met:
     48  1.1     matt  * 1. Redistributions of source code must retain the above copyright
     49  1.1     matt  *    notice, this list of conditions and the following disclaimer.
     50  1.1     matt  * 2. Redistributions in binary form must reproduce the above copyright
     51  1.1     matt  *    notice, this list of conditions and the following disclaimer in the
     52  1.1     matt  *    documentation and/or other materials provided with the distribution.
     53  1.1     matt  * 3. All advertising materials mentioning features or use of this software
     54  1.1     matt  *    must display the following acknowledgement:
     55  1.1     matt  *        This product includes software developed by the NetBSD
     56  1.1     matt  *        Foundation, Inc. and its contributors.
     57  1.1     matt  * 4. Neither the name of The NetBSD Foundation nor the names of its
     58  1.1     matt  *    contributors may be used to endorse or promote products derived
     59  1.1     matt  *    from this software without specific prior written permission.
     60  1.1     matt  *
     61  1.1     matt  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     62  1.1     matt  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     63  1.1     matt  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     64  1.1     matt  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     65  1.1     matt  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     66  1.1     matt  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     67  1.1     matt  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     68  1.1     matt  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     69  1.1     matt  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     70  1.1     matt  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     71  1.1     matt  * POSSIBILITY OF SUCH DAMAGE.
     72  1.1     matt  */
     73  1.1     matt 
     74  1.1     matt #ifndef _ARM_XSCALE_I80312REG_H_
     75  1.1     matt #define _ARM_XSCALE_I80312REG_H_
     76  1.4  thorpej 
     77  1.4  thorpej /*
     78  1.4  thorpej  * Register definitions for the Intel 80310 I/O Companion Chip.
     79  1.4  thorpej  */
     80  1.3  thorpej 
     81  1.1     matt /*
     82  1.1     matt  * Physical addresses 0x1000..0x1fff are used by the Periphial Memory
     83  1.1     matt  * Mapped Registers.
     84  1.1     matt  */
     85  1.1     matt 
     86  1.5  thorpej #define	I80312_PMMR_BASE	0x00001000UL
     87  1.5  thorpej #define	I80312_PMMR_SIZE	0x00001000UL
     88  1.1     matt 
     89  1.1     matt /*
     90  1.6  thorpej  * The PMMR registers below are defined as offsets from the i80312 PMMR
     91  1.6  thorpej  * base.
     92  1.6  thorpej  */
     93  1.6  thorpej 
     94  1.6  thorpej /*
     95  1.1     matt  * PCI-to-PCI Bridge Unit
     96  1.1     matt  */
     97  1.6  thorpej #define	I80312_PPB_BASE		(0)
     98  1.1     matt #define	I80312_PPB_SIZE		0x100
     99  1.1     matt /*
    100  1.1     matt  * Performance Monitoring Unit
    101  1.1     matt  */
    102  1.1     matt #define	I80312_PMU_BASE		(I80312_PPB_BASE  + I80312_PPB_SIZE) /* 0x100 */
    103  1.1     matt #define	I80312_PMU_SIZE		0x100
    104  1.1     matt /*
    105  1.1     matt  * Address Translation Unit
    106  1.1     matt  */
    107  1.1     matt #define	I80312_ATU_BASE		(I80312_PMU_BASE  + I80312_PMU_SIZE) /* 0x200 */
    108  1.1     matt #define	I80312_ATU_SIZE		0x100
    109  1.1     matt /*
    110  1.1     matt  * Messaging Unit
    111  1.1     matt  */
    112  1.1     matt #define	I80312_MSG_BASE		(I80312_ATU_BASE  + I80312_ATU_SIZE) /* 0x300 */
    113  1.1     matt #define	I80312_MSG_SIZE		0x100
    114  1.1     matt /*
    115  1.1     matt  * DMA Controller
    116  1.1     matt  */
    117  1.1     matt #define	I80312_DMA_BASE		(I80312_MSG_BASE  + I80312_MSG_SIZE) /* 0x400 */
    118  1.1     matt #define	I80312_DMA_SIZE		0x100
    119  1.1     matt /*
    120  1.1     matt  * Memory Controller
    121  1.1     matt  */
    122  1.1     matt #define	I80312_MEM_BASE		(I80312_DMA_BASE  + I80312_DMA_SIZE) /* 0x500 */
    123  1.1     matt #define	I80312_MEM_SIZE		0x100
    124  1.1     matt /*
    125  1.1     matt  * Internal Arbitration Unit
    126  1.1     matt  */
    127  1.1     matt #define	I80312_IARB_BASE	(I80312_MEM_BASE  + I80312_MEM_SIZE) /* 0x600 */
    128  1.1     matt #define	I80312_IARB_SIZE	0x040
    129  1.1     matt /*
    130  1.1     matt  * Bus Interface Unit
    131  1.1     matt  */
    132  1.1     matt #define	I80312_BUS_BASE		(I80312_IARB_BASE + I80312_IARB_SIZE)/* 0x640 */
    133  1.1     matt #define	I80312_BUS_SIZE		0x040
    134  1.1     matt /*
    135  1.1     matt  * I2C Unit
    136  1.1     matt  */
    137  1.1     matt #define	I80312_IIC_BASE		(I80312_BUS_BASE  + I80312_BUS_SIZE) /* 0x680 */
    138  1.1     matt #define	I80312_IIC_SIZE		0x080
    139  1.1     matt /*
    140  1.1     matt  * Interrupt Controller
    141  1.1     matt  */
    142  1.1     matt #define	I80312_INTC_BASE	(I80312_IIC_BASE  + I80312_IIC_SIZE) /* 0x700 */
    143  1.1     matt #define	I80312_INTC_SIZE	0x100
    144  1.1     matt /*
    145  1.1     matt  * Application Accelerator Unit
    146  1.1     matt  */
    147  1.1     matt #define	I80312_AAU_BASE		(I80312_INTC_BASE + I80312_INTC_SIZE)/* 0x800 */
    148  1.1     matt #define	I80312_AAU_SIZE		0x100
    149  1.1     matt 
    150  1.1     matt /*
    151  1.6  thorpej  * PCI-PCI Bridge Unit
    152  1.6  thorpej  *
    153  1.6  thorpej  * The PCI-PCI Bridge Unit supports both public (accessible to the
    154  1.6  thorpej  * host) and private (accessible only to the local system) devices:
    155  1.6  thorpej  *
    156  1.6  thorpej  *	---------
    157  1.6  thorpej  *		S_AD[11]
    158  1.6  thorpej  *		S_AD[12]
    159  1.6  thorpej  * Private	S_AD[13]
    160  1.6  thorpej  *		S_AD[14]
    161  1.6  thorpej  *		S_AD[15]
    162  1.6  thorpej  *	---------
    163  1.6  thorpej  *		S_AD[16]	SISR bit 9
    164  1.6  thorpej  *		S_AD[17]	SISR bit 8
    165  1.6  thorpej  *		S_AD[18]	SISR bit 7
    166  1.6  thorpej  * Public	S_AD[19]	SISR bit 6
    167  1.6  thorpej  * or		S_AD[20]	SISR bit 5
    168  1.6  thorpej  * Private	S_AD[21]	SISR bit 4
    169  1.6  thorpej  *		S_AD[22]	SISR bit 3
    170  1.6  thorpej  *		S_AD[23]	SISR bit 2
    171  1.6  thorpej  *		S_AD[24]	SISR bit 1
    172  1.6  thorpej  *		S_AD[25]	SISR bit 0
    173  1.6  thorpej  *	---------
    174  1.6  thorpej  *		S_AD[26]
    175  1.6  thorpej  *		S_AD[27]
    176  1.6  thorpej  * Public	S_AD[28]
    177  1.6  thorpej  *		S_AD[29]
    178  1.6  thorpej  *		S_AD[30]
    179  1.6  thorpej  *		S_AD[31]
    180  1.6  thorpej  *	---------
    181  1.6  thorpej  *
    182  1.6  thorpej  * Setting the specified SISR bit makes the corresponding S_AD line
    183  1.6  thorpej  * a private sevice.
    184  1.6  thorpej  */
    185  1.6  thorpej #define	I80312_PPB_EBCR		0x40	/* Extended Bridge Control */
    186  1.6  thorpej #define	I80312_PPB_SISR		0x42	/* Secondary ID Select Register */
    187  1.6  thorpej #define	I80312_PPB_PBISR	0x44	/* Primary Bridge Int. Stat. */
    188  1.6  thorpej #define	I80312_PPB_SBISR	0x48	/* Secondary Bridge Int. Stat. */
    189  1.6  thorpej #define	I80312_PPB_SACR		XXX	/* Secondary Arb. Control */
    190  1.6  thorpej #define	I80312_PPB_PIRSR	XXX	/* PCI Int. Routing Select */
    191  1.6  thorpej #define	I80312_PPB_SIOBR	0x54	/* Secondary I/O Base Register */
    192  1.6  thorpej #define	I80312_PPB_SIOLR	0x55	/* Secondary I/O Limit Register */
    193  1.6  thorpej #define	I80312_PPB_SCDR		0x56	/* Secondary Clock Disable Register */
    194  1.6  thorpej #define	I80312_PPB_SMBR		0x58	/* Secondary Memory Base Register */
    195  1.6  thorpej #define	I80312_PPB_SMLR		0x5a	/* Secondary Memory Limit Register */
    196  1.6  thorpej #define	I80312_PPB_SDER		0x5c	/* Secondary Decode Enable Register */
    197  1.6  thorpej #define	I80312_PPB_QCR		0x5e	/* Queue Control Register */
    198  1.6  thorpej 
    199  1.7  thorpej #define	PPB_SDER_PMSE		(1U << 2) /* Private Memory Space Enable */
    200  1.7  thorpej 
    201  1.6  thorpej /*
    202  1.1     matt  * Performance Monitoring Unit
    203  1.1     matt  */
    204  1.6  thorpej #define	I80312_PMU_GTMR		0x00
    205  1.6  thorpej #define	I80312_PMU_ESR		0x04
    206  1.6  thorpej #define	I80312_PMU_EMISR	0x08
    207  1.6  thorpej #define	I80312_PMU_GTSR		0x10
    208  1.6  thorpej #define	I80312_PMU_PECR1	0x14
    209  1.6  thorpej #define	I80312_PMU_PECR2	0x18
    210  1.6  thorpej #define	I80312_PMU_PECR3	0x1c
    211  1.6  thorpej #define	I80312_PMU_PECR4	0x20
    212  1.6  thorpej #define	I80312_PMU_PECR5	0x24
    213  1.6  thorpej #define	I80312_PMU_PECR6	0x28
    214  1.6  thorpej #define	I80312_PMU_PECR7	0x2c
    215  1.6  thorpej #define	I80312_PMU_PECR8	0x30
    216  1.6  thorpej #define	I80312_PMU_PECR9	0x34
    217  1.6  thorpej #define	I80312_PMU_PECR10	0x38
    218  1.6  thorpej #define	I80312_PMU_PECR11	0x3c
    219  1.6  thorpej #define	I80312_PMU_PECR12	0x40
    220  1.6  thorpej #define	I80312_PMU_PECR13	0x44
    221  1.6  thorpej #define	I80312_PMU_PECR14	0x48
    222  1.1     matt 
    223  1.1     matt /*
    224  1.6  thorpej  * Address Translation Unit
    225  1.1     matt  * The first 64 bytes are identical to a PCI device's config space.
    226  1.1     matt  */
    227  1.6  thorpej /*	BAR #0			0x10	Primary Inbound ATU Base Address */
    228  1.1     matt #define	I80312_ATU_PIAL		0x40	/* Pri. Inbound ATU Limit */
    229  1.1     matt #define	I80312_ATU_PIATV	0x44	/* Pri. Inbound ATU Translate Value */
    230  1.1     matt #define	I80312_ATU_SIAM		0x48	/* Sec. Inbound ATU Base Address */
    231  1.1     matt #define	I80312_ATU_SIAL		0x4c	/* Sec. Inbound ATU Limit */
    232  1.1     matt #define	I80312_ATU_SIATV	0x50	/* Sec. Inbound ATU Translate Value */
    233  1.1     matt #define	I80312_ATU_POMWV	0x54	/* Pri. Outbound Memory Window Value */
    234  1.1     matt      /* not used		0x58 */
    235  1.1     matt #define	I80312_ATU_POIOWV	0x5c	/* Pri. Outbound I/O Window Value */
    236  1.1     matt #define	I80312_ATU_PODACWVL	0x60	/* Pri. Outbound DAC Window Value (Lo)*/
    237  1.1     matt #define	I80312_ATU_PODACWVH	0x64	/* Pri. Outbound DAC Window Value (Hi)*/
    238  1.1     matt #define	I80312_ATU_SOMWV	0x68	/* Sec. Outbound Memory Window Value */
    239  1.1     matt #define	I80312_ATU_SOIOWV	0x6c	/* Sec. Outbound I/O Window Value */
    240  1.1     matt      /* not used		0x70 */
    241  1.1     matt #define	I80312_ATU_ERL		0x74	/* Expansion ROM Limit */
    242  1.1     matt #define	I80312_ATU_ERTV		0x78	/* Expansion ROM Translate Value */
    243  1.1     matt      /* not used		0x7c */
    244  1.1     matt #define	I80312_ATU_ACI		0x74	/* ATU Capability Identifier */
    245  1.1     matt #define	I80312_ATU_ATNIP	0x78	/* ATU Next Item Pointer */
    246  1.1     matt #define	I80312_ATU_APM		0x7c	/* ATU Power Management */
    247  1.1     matt      /* not used		0x84 */
    248  1.1     matt #define	I80312_ATU_ACR		0x88	/* ATU Configuration */
    249  1.1     matt      /* not used		0x8c */
    250  1.1     matt #define	I80312_ATU_PAIS		0x90	/* Pri. ATU Interrupt Status */
    251  1.1     matt #define	I80312_ATU_SAIS		0x94	/* Sec. ATU Interrupt Status */
    252  1.1     matt #define	I80312_ATU_SACS		0x98	/* Sec. ATU Command/Status */
    253  1.1     matt #define	I80312_ATU_SODACWVL	0x9c	/* Sec. Outbound DAC Window Value (lo)*/
    254  1.1     matt #define	I80312_ATU_SODACWVH	0xa0	/* Sec. Outbound DAC Window Value (hi)*/
    255  1.1     matt #define	I80312_ATU_POCCA	0xa4	/* Pri. Outbound Config Address Data */
    256  1.1     matt #define	I80312_ATU_SOCCA	0xa8	/* Sec. Outbound Config Address Data */
    257  1.1     matt #define	I80312_ATU_POCCD	0xac	/* Pri. Outbound Config Cycle Data */
    258  1.1     matt #define	I80312_ATU_SOCCD	0xb0	/* Sec. Outbound Config Cycle Data */
    259  1.1     matt #define	I80312_ATU_PAQC		0xb4	/* Pri. ATU Queue Control */
    260  1.1     matt #define	I80312_ATU_SAQC		0xb8	/* Sec. ATU Queue Control */
    261  1.1     matt #define	I80312_ATU_PAIM		0xbc	/* Pri. ATU Interrupt Mask */
    262  1.1     matt #define	I80312_ATU_SAIM		0xc0	/* Sec. ATU Interrupt Mask */
    263  1.1     matt      /* not used		0xc4 .. 0xfc */
    264  1.1     matt 
    265  1.6  thorpej #define	ATU_LIMIT(x) \
    266  1.6  thorpej 	((0xffffffffUL - ((x) - 1)) & 0xfffffff0UL)
    267  1.7  thorpej 
    268  1.7  thorpej #define	ATU_ACR_POAE		(1U << 1)
    269  1.7  thorpej #define	ATU_ACR_SOAE		(1U << 2)
    270  1.7  thorpej #define	ATU_ACR_SDAS		(1U << 7)
    271  1.7  thorpej #define	ATU_ACR_DAE		(1U << 8)
    272  1.7  thorpej #define	ATU_ACR_PSERRIE		(1U << 9)
    273  1.7  thorpej #define	ATU_ACR_SSERRIE		(1U << 10)
    274  1.7  thorpej #define	ATU_ACR_SBMUAE		(1U << 12)
    275  1.7  thorpej #define	ATU_ACR_ADTS		(1U << 15)
    276  1.7  thorpej #define	ATU_ACR_PSERRMA		(1U << 16)
    277  1.7  thorpej #define	ATU_ACR_SSERRMA		(1U << 17)
    278  1.7  thorpej #define	ATU_ACR_DAU2GTE		(1U << 18)
    279  1.7  thorpej #define	ATU_ACR_PATUDRCA	(1U << 19)
    280  1.7  thorpej #define	ATU_ACR_SATUDRCA	(1U << 20)
    281  1.7  thorpej #define	ATU_ACR_BFN		(1U << 21)
    282  1.8  thorpej 
    283  1.8  thorpej #define	ATU_AIM_AETAE		(1U << 0)
    284  1.8  thorpej #define	ATU_AIM_AIESE		(1U << 1)
    285  1.8  thorpej #define	ATU_AIM_MPEIM		(1U << 2)
    286  1.8  thorpej #define	ATU_AIM_TATIM		(1U << 3)
    287  1.8  thorpej #define	ATU_AIM_TAMIM		(1U << 4)
    288  1.8  thorpej #define	ATU_AIM_MAIM		(1U << 5)
    289  1.8  thorpej #define	ATU_AIM_SAIM		(1U << 6)
    290  1.8  thorpej #define	ATU_AIM_DPEIM		(1U << 7)
    291  1.8  thorpej #define	ATU_AIM_PSTIM		(1U << 8)
    292  1.6  thorpej 
    293  1.6  thorpej /*
    294  1.6  thorpej  * Messaging Unit
    295  1.6  thorpej  */
    296  1.1     matt      /* not used		0x00 .. 0x0c */
    297  1.1     matt #define	I80312_MSG_IM0		0x10	/* Inbound Message 0 */
    298  1.1     matt #define	I80312_MSG_IM1		0x14	/* Inbound Message 1 */
    299  1.1     matt #define	I80312_MSG_OM0		0x18	/* Outbound Message 0 */
    300  1.1     matt #define	I80312_MSG_OM1		0x1c	/* Outbound Message 1 */
    301  1.1     matt #define	I80312_MSG_ID		0x20	/* Inbound Doorbell */
    302  1.1     matt #define	I80312_MSG_IIS		0x24	/* Inbound Interrupt Status */
    303  1.1     matt #define	I80312_MSG_IIM		0x28	/* Inbound Interrupt Mask */
    304  1.1     matt #define	I80312_MSG_OD		0x2c	/* Outbound Doorbell */
    305  1.1     matt #define	I80312_MSG_OIS		0x30	/* Outbound Interrupt Status */
    306  1.1     matt #define	I80312_MSG_OIM		0x34	/* Outbound Interrupt Mask */
    307  1.1     matt      /* not used		0x38 .. 0x4c */
    308  1.1     matt #define	I80312_MSG_MC		0x50	/* MU Configuration */
    309  1.1     matt #define	I80312_MSG_QBA		0x54	/* Queue Base Address */
    310  1.1     matt      /* not used		0x58 .. 0x5c */
    311  1.1     matt #define	I80312_MSG_IFHP		0x60	/* Inbound Free Head Pointer */
    312  1.1     matt #define	I80312_MSG_IFTP		0x64	/* Inbound Free Tail Pointer */
    313  1.1     matt #define	I80312_MSG_IPHP		0x68	/* Inbound Post Head Pointer */
    314  1.1     matt #define	I80312_MSG_IPTP		0x6c	/* Inbound Post Tail Pointer */
    315  1.1     matt #define	I80312_MSG_OFHP		0x70	/* Outbound Free Head Pointer */
    316  1.1     matt #define	I80312_MSG_OFTP		0x74	/* Outbound Free Tail Pointer */
    317  1.1     matt #define	I80312_MSG_OPHP		0x78	/* Outbound Post Head Pointer */
    318  1.1     matt #define	I80312_MSG_OPTP		0x7c	/* Outbound Post Tail Pointer */
    319  1.1     matt #define	I80312_MSG_IA		0x80	/* Index Address */
    320  1.1     matt      /* not used		0x84 .. 0xfc */
    321  1.1     matt 
    322  1.1     matt /*
    323  1.1     matt  * DMA Controller
    324  1.1     matt  */
    325  1.1     matt #define	I80312_DMA_CHAN0	0x00	/* Channel 0 */
    326  1.1     matt #define	I80312_DMA_CHAN1	0x40	/* Channel 1 */
    327  1.1     matt #define	I80312_DMA_CHAN2	0x80	/* Channel 2 */
    328  1.1     matt      /* not used		0xc0 .. 0xfc */
    329  1.1     matt 
    330  1.1     matt #define	I80312_DMA_CC		0x00	/* Channel Control */
    331  1.1     matt #define	I80312_DMA_CS		0x04	/* Channel Status */
    332  1.1     matt      /* not used		0x08 */
    333  1.1     matt #define	I80312_DMA_DA		0x0c	/* Descriptor Address */
    334  1.1     matt #define	I80312_DMA_NDA		0x10	/* Next Descriptor Address */
    335  1.1     matt #define	I80312_DMA_PA		0x14	/* PCI Address */
    336  1.1     matt #define	I80312_DMA_PUA		0x18	/* PCI Upper Address */
    337  1.1     matt #define	I80312_DMA_IBA		0x1c	/* Internal Bus Address */
    338  1.1     matt #define	I80312_DMA_BC		0x20	/* Byte Count */
    339  1.1     matt #define	I80312_DMA_DC		0x24	/* Descriptor Control */
    340  1.1     matt      /* not used		0x28 .. 0x3c */
    341  1.1     matt 
    342  1.1     matt /*
    343  1.1     matt  * Memory Controller
    344  1.1     matt  */
    345  1.1     matt #define	I80312_MEM_SI		0x00	/* SDRAM Initialization */
    346  1.1     matt #define	I80312_MEM_SC		0x04	/* SDRAM Control */
    347  1.1     matt #define	I80312_MEM_SB		0x08	/* SDRAM Base */
    348  1.1     matt #define	I80312_MEM_SB0		0x0c	/* SDRAM Bank 0 Size */
    349  1.1     matt #define	I80312_MEM_SB1		0x10	/* SDRAM Bank 1 Size */
    350  1.1     matt      /* not used		0x14 .. 0x30 */
    351  1.1     matt #define	I80312_MEM_EC		0x34	/* ECC Control */
    352  1.1     matt #define	I80312_MEM_EL0		0x38	/* ECC Log 0 */
    353  1.1     matt #define	I80312_MEM_EL1		0x3c	/* ECC Log 1 */
    354  1.1     matt #define	I80312_MEM_EA0		0x40	/* ECC Address 0 */
    355  1.1     matt #define	I80312_MEM_EA1		0x44	/* ECC Address 1 */
    356  1.1     matt #define	I80312_MEM_ET		0x48	/* ECC Test */
    357  1.1     matt #define	I80312_MEM_FB0		0x4c	/* ECC Flash Base 0 */
    358  1.1     matt #define	I80312_MEM_FB1		0x50	/* ECC Flash Base 1 */
    359  1.1     matt #define	I80312_MEM_FB0S		0x54	/* ECC Flash Bank 0 Size */
    360  1.1     matt #define	I80312_MEM_FB1S		0x58	/* ECC Flash Bank 1 Size */
    361  1.1     matt #define	I80312_MEM_FWS1		0x5c	/* ECC Wait State 1 Size */
    362  1.1     matt #define	I80312_MEM_FWS0		0x60	/* ECC Wait State 0 Size */
    363  1.1     matt #define	I80312_MEM_IS		0x65	/* ECC Interrupt Status */
    364  1.1     matt #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    365  1.1     matt #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    366  1.1     matt #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    367  1.1     matt #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    368  1.1     matt      /* not used		0x6c .. 0xfc */
    369  1.1     matt 
    370  1.1     matt /*
    371  1.1     matt  * Internal Arbitration Unit
    372  1.1     matt  */
    373  1.1     matt #define	I80312_ARB_IAC		0x00	/* Internal Aribtration Control */
    374  1.1     matt #define	I80312_ARB_MLT		0x04	/* Master Latency Timer */
    375  1.1     matt #define	I80312_ARB_MTT		0x08	/* Multi-Transaction Timer */
    376  1.1     matt      /* not used		0x0c .. 0x3c */
    377  1.1     matt 
    378  1.1     matt /*
    379  1.1     matt  * Bus(Core) Interface Unit
    380  1.1     matt  */
    381  1.1     matt      /* not used		0x40 */
    382  1.1     matt #define	I80312_BUS_IS		0x44	/* Interrupt Status */
    383  1.1     matt      /* not used		0x4c .. 0x7c */
    384  1.1     matt 
    385  1.1     matt /*
    386  1.1     matt  * I2C Bus Interface Unit
    387  1.1     matt  */
    388  1.1     matt #define	I80312_IIC_CTL		0x80	/* Control */
    389  1.1     matt #define	I80312_IIC_STS		0x84	/* Status */
    390  1.1     matt #define	I80312_IIC_SA		0x88	/* Slave Address */
    391  1.1     matt #define	I80312_IIC_DB		0x8c	/* Data Buffer */
    392  1.1     matt #define	I80312_IIC_CC		0x90	/* Clock Control */
    393  1.1     matt #define	I80312_IIC_BM		0x94	/* Bus Monitor */
    394  1.1     matt      /* not used		0x98 .. 0xfc */
    395  1.1     matt 
    396  1.1     matt /*
    397  1.1     matt  * PCI And Peripheral Interrupt (GPIO) Unit
    398  1.1     matt  */
    399  1.1     matt #define	I80312_INTC_IIS		0x00	/* IRQ Interrupt Status */
    400  1.1     matt #define	I80312_INTC_F2IS	0x04	/* FIQ2 Interrupt Status */
    401  1.1     matt #define	I80312_INTC_F1IS	0x08	/* FIQ1 Interrupt Status */
    402  1.1     matt      /* not used		0x0c */
    403  1.1     matt #define	I80312_INTC_PDI		0x10	/* Processor Device ID */
    404  1.1     matt      /* not used		0x14 .. 0x18 */
    405  1.1     matt #define	I80312_INTC_GOE		0x1c	/* GPIO Output Enable */
    406  1.1     matt #define	I80312_INTC_GID		0x20	/* GPIO Input Data */
    407  1.1     matt #define	I80312_INTC_GOD		0x24	/* GPIO Output Data */
    408  1.1     matt      /* not used		0x28 .. 0xfc */
    409  1.1     matt 
    410  1.1     matt /*
    411  1.1     matt  * Application Accelerator Registers
    412  1.1     matt  */
    413  1.1     matt #define	I80312_AAU_CTL		0x00	/* Control */
    414  1.1     matt #define	I80312_AAU_STS		0x04	/* Status */
    415  1.2     matt #define	I80312_AAU_DSCA		0x08	/* Descriptor Address */
    416  1.1     matt #define	I80312_AAU_NDA		0x0c	/* Next Descriptor Address */
    417  1.1     matt #define	I80312_AAU_SA1		0x10	/* i80200 Source Address 1 */
    418  1.1     matt #define	I80312_AAU_SA2		0x14	/* i80200 Source Address 2 */
    419  1.1     matt #define	I80312_AAU_SA3		0x18	/* i80200 Source Address 3 */
    420  1.1     matt #define	I80312_AAU_SA4		0x1c	/* i80200 Source Address 4 */
    421  1.2     matt #define	I80312_AAU_DSTA		0x20	/* i80200 Destination Address */
    422  1.1     matt #define	I80312_AAU_ABC		0x24	/* Accelerator Byte Count */
    423  1.1     matt #define	I80312_AAU_ADC		0x28	/* Accelerator Descriptor Count */
    424  1.1     matt #define	I80312_AAU_SA5		0x2c	/* i80200 Source Address 5 */
    425  1.1     matt #define	I80312_AAU_SA6		0x30	/* i80200 Source Address 6 */
    426  1.1     matt #define	I80312_AAU_SA7		0x34	/* i80200 Source Address 7 */
    427  1.1     matt #define	I80312_AAU_SA8		0x38	/* i80200 Source Address 8 */
    428  1.1     matt      /* not used		0x3c .. 0xfc */
    429  1.5  thorpej 
    430  1.5  thorpej /*
    431  1.5  thorpej  * Physical addresses 0x00002000..0x7fffffff are used by the
    432  1.5  thorpej  * ATU Outbound Direct Addressing Window.
    433  1.5  thorpej  */
    434  1.5  thorpej #define	I80312_PCI_DIRECT_BASE	0x00002000UL
    435  1.5  thorpej #define	I80312_PCI_DIRECT_SIZE	0x7fffe000UL
    436  1.5  thorpej 
    437  1.5  thorpej /*
    438  1.5  thorpej  * Physical addresses 0x80000000..0x9001ffff are used by the
    439  1.5  thorpej  * ATU Outbound Transaction Windows.
    440  1.5  thorpej  */
    441  1.5  thorpej #define	I80312_PCI_XLATE_BASE	0x80000000UL
    442  1.6  thorpej #define	I80312_PCI_XLATE_SIZE	0x10020000UL
    443  1.5  thorpej 
    444  1.6  thorpej #define	I80312_PCI_XLATE_MSIZE	0x04000000UL	/* 64M */
    445  1.6  thorpej #define	I80312_PCI_XLATE_IOSIZE	0x00010000UL	/* 64K */
    446  1.5  thorpej 
    447  1.5  thorpej #define	I80312_PCI_XLATE_PMW_BASE  (I80312_PCI_XLATE_BASE)
    448  1.6  thorpej 
    449  1.6  thorpej #define	I80312_PCI_XLATE_PDW_BASE  (I80312_PCI_XLATE_PMW_BASE + \
    450  1.6  thorpej 				    I80312_PCI_XLATE_MSIZE)
    451  1.6  thorpej 
    452  1.6  thorpej #define	I80312_PCI_XLATE_SMW_BASE  (I80312_PCI_XLATE_PDW_BASE + \
    453  1.6  thorpej 				    I80312_PCI_XLATE_MSIZE)
    454  1.6  thorpej 
    455  1.6  thorpej #define	I80312_PCI_XLATE_SDW_BASE  (I80312_PCI_XLATE_SMW_BASE + \
    456  1.6  thorpej 				    I80312_PCI_XLATE_MSIZE)
    457  1.6  thorpej 
    458  1.6  thorpej #define	I80312_PCI_XLATE_PIOW_BASE (I80312_PCI_XLATE_SDW_BASE + \
    459  1.6  thorpej 				    I80312_PCI_XLATE_MSIZE)
    460  1.6  thorpej 
    461  1.6  thorpej #define	I80312_PCI_XLATE_SIOW_BASE (I80312_PCI_XLATE_PIOW_BASE + \
    462  1.6  thorpej 				    I80312_PCI_XLATE_IOSIZE)
    463  1.1     matt 
    464  1.1     matt #endif /* _ARM_XSCALE_I80312REG_H_ */
    465