Home | History | Annotate | Line # | Download | only in hpc
hpcreg.h revision 1.3
      1  1.3      wdk /*	$NetBSD: hpcreg.h,v 1.3 2001/08/19 03:16:22 wdk Exp $	*/
      2  1.1  thorpej 
      3  1.1  thorpej /*
      4  1.1  thorpej  * Copyright (c) 2001 Rafal K. Boni
      5  1.1  thorpej  * All rights reserved.
      6  1.1  thorpej  *
      7  1.1  thorpej  * Redistribution and use in source and binary forms, with or without
      8  1.1  thorpej  * modification, are permitted provided that the following conditions
      9  1.1  thorpej  * are met:
     10  1.1  thorpej  * 1. Redistributions of source code must retain the above copyright
     11  1.1  thorpej  *    notice, this list of conditions and the following disclaimer.
     12  1.1  thorpej  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  thorpej  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  thorpej  *    documentation and/or other materials provided with the distribution.
     15  1.1  thorpej  * 3. The name of the author may not be used to endorse or promote products
     16  1.1  thorpej  *    derived from this software without specific prior written permission.
     17  1.1  thorpej  *
     18  1.1  thorpej  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     19  1.1  thorpej  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     20  1.1  thorpej  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     21  1.1  thorpej  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     22  1.1  thorpej  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     23  1.1  thorpej  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     24  1.1  thorpej  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     25  1.1  thorpej  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     26  1.1  thorpej  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     27  1.1  thorpej  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     28  1.1  thorpej  */
     29  1.1  thorpej 
     30  1.1  thorpej #ifndef _ARCH_SGIMIPS_HPC_HPCREG_H_
     31  1.1  thorpej #define	_ARCH_SGIMIPS_HPC_HPCREG_H_
     32  1.1  thorpej 
     33  1.1  thorpej struct hpc_dma_desc {
     34  1.1  thorpej 	u_int32_t	hdd_bufptr;	/* Physical address of buffer */
     35  1.1  thorpej 	u_int32_t	hdd_ctl;	/* Control flags and byte count */
     36  1.1  thorpej 	u_int32_t	hdd_descptr;	/* Physical address of next descr. */
     37  1.1  thorpej 	u_int32_t	hdd_pad;	/* Pad out to quadword alignment */
     38  1.1  thorpej };
     39  1.1  thorpej 
     40  1.1  thorpej /*
     41  1.1  thorpej  * Control flags
     42  1.1  thorpej  */
     43  1.1  thorpej #define HDD_CTL_EOCHAIN		0x80000000	/* End of descriptor chain */
     44  1.1  thorpej #define HDD_CTL_EOPACKET	0x40000000	/* Ethernet: end of packet */
     45  1.1  thorpej #define HDD_CTL_INTR		0x20000000	/* Interrupt when finished */
     46  1.1  thorpej #define HDD_CTL_XMITDONE	0x00008000	/* Ethernet transmit done */
     47  1.1  thorpej #define HDD_CTL_OWN		0x00004000	/* CPU owns this frame */
     48  1.1  thorpej 
     49  1.1  thorpej #define HDD_CTL_BYTECNT(x)	((x) & 0x3fff)	/* Byte count: for ethernet
     50  1.1  thorpej 						 * rcv channel also doubles as
     51  1.1  thorpej 						 * length of packet received
     52  1.1  thorpej 						 */
     53  1.1  thorpej 
     54  1.1  thorpej /*
     55  1.1  thorpej  * HPC memory map, as offsets from HPC base
     56  1.1  thorpej  *
     57  1.1  thorpej  * XXXrkb: should each section be used as a base and have the specific
     58  1.1  thorpej  * registers offset from there??
     59  1.1  thorpej  *
     60  1.1  thorpej  * XXX: define register values as well as their offsets.
     61  1.1  thorpej  *
     62  1.1  thorpej  */
     63  1.1  thorpej #define HPC_PBUS_DMAREGS	0x00000000	/* DMA registers for PBus */
     64  1.1  thorpej #define HPC_PBUS_DMAREGS_SIZE	0x0000ffff	/* channels 0 - 7 */
     65  1.1  thorpej 
     66  1.1  thorpej #define HPC_PBUS_CH0_BP		0x00000004	/* Chan 0 Buffer Ptr */
     67  1.1  thorpej #define HPC_PBUS_CH0_DP		0x00000008	/* Chan 0 Descriptor Ptr */
     68  1.1  thorpej #define HPC_PBUS_CH0_CTL	0x00001000	/* Chan 0 Control Register */
     69  1.1  thorpej 
     70  1.1  thorpej #define HPC_PBUS_CH1_BP		0x00002004	/* Chan 1 Buffer Ptr */
     71  1.1  thorpej #define HPC_PBUS_CH1_DP		0x00002008	/* Chan 1 Descriptor Ptr */
     72  1.1  thorpej #define HPC_PBUS_CH1_CTL	0x00003000	/* Chan 1 Control Register */
     73  1.1  thorpej 
     74  1.1  thorpej #define HPC_PBUS_CH2_BP		0x00004004	/* Chan 2 Buffer Ptr */
     75  1.1  thorpej #define HPC_PBUS_CH2_DP		0x00004008	/* Chan 2 Descriptor Ptr */
     76  1.1  thorpej #define HPC_PBUS_CH2_CTL	0x00005000	/* Chan 2 Control Register */
     77  1.1  thorpej 
     78  1.1  thorpej #define HPC_PBUS_CH3_BP		0x00006004	/* Chan 3 Buffer Ptr */
     79  1.1  thorpej #define HPC_PBUS_CH3_DP		0x00006008	/* Chan 3 Descriptor Ptr */
     80  1.1  thorpej #define HPC_PBUS_CH3_CTL	0x00007000	/* Chan 3 Control Register */
     81  1.1  thorpej 
     82  1.1  thorpej #define HPC_PBUS_CH4_BP		0x00008004	/* Chan 4 Buffer Ptr */
     83  1.1  thorpej #define HPC_PBUS_CH4_DP		0x00008008	/* Chan 4 Descriptor Ptr */
     84  1.1  thorpej #define HPC_PBUS_CH4_CTL	0x00009000	/* Chan 4 Control Register */
     85  1.1  thorpej 
     86  1.1  thorpej #define HPC_PBUS_CH5_BP		0x0000a004	/* Chan 5 Buffer Ptr */
     87  1.1  thorpej #define HPC_PBUS_CH5_DP		0x0000a008	/* Chan 5 Descriptor Ptr */
     88  1.1  thorpej #define HPC_PBUS_CH5_CTL	0x0000b000	/* Chan 5 Control Register */
     89  1.1  thorpej 
     90  1.1  thorpej #define HPC_PBUS_CH6_BP		0x0000c004	/* Chan 6 Buffer Ptr */
     91  1.1  thorpej #define HPC_PBUS_CH6_DP		0x0000c008	/* Chan 6 Descriptor Ptr */
     92  1.1  thorpej #define HPC_PBUS_CH6_CTL	0x0000d000	/* Chan 6 Control Register */
     93  1.1  thorpej 
     94  1.1  thorpej #define HPC_PBUS_CH7_BP		0x0000e004	/* Chan 7 Buffer Ptr */
     95  1.1  thorpej #define HPC_PBUS_CH7_DP		0x0000e008	/* Chan 7 Descriptor Ptr */
     96  1.1  thorpej #define HPC_PBUS_CH7_CTL	0x0000f000	/* Chan 7 Control Register */
     97  1.1  thorpej 
     98  1.1  thorpej #define HPC_SCSI0_REGS		0x00010000	/* SCSI channel 0 registers */
     99  1.1  thorpej #define HPC_SCSI0_REGS_SIZE	0x00001fff
    100  1.1  thorpej 
    101  1.3      wdk #define HPC_SCSI0_CBP		0x00010000	/* Current buffer ptr */
    102  1.3      wdk #define HPC_SCSI0_NDBP		0x00010004	/* Next descriptor ptr */
    103  1.1  thorpej 
    104  1.3      wdk #define HPC_SCSI0_BC		0x00011000	/* DMA byte count & flags */
    105  1.3      wdk #define HPC_SCSI0_CTL		0x00011004	/* DMA control flags */
    106  1.3      wdk #define HPC_SCSI0_GIO		0x00011008	/* GIO DMA FIFO pointer */
    107  1.3      wdk #define HPC_SCSI0_DEV		0x0001100c	/* Device DMA FIFO pointer */
    108  1.3      wdk #define HPC_SCSI0_DMACFG	0x00011010	/* DMA configururation */
    109  1.3      wdk #define HPC_SCSI0_PIOCFG	0x00011014	/* PIO configururation */
    110  1.1  thorpej 
    111  1.1  thorpej #define HPC_SCSI1_REGS		0x00012000	/* SCSI channel 1 registers */
    112  1.1  thorpej #define HPC_SCSI1_REGS_SIZE	0x00001fff
    113  1.1  thorpej 
    114  1.1  thorpej #define HPC_SCSI1_CBP		0x00000000	/* Current buffer ptr */
    115  1.1  thorpej #define HPC_SCSI1_NDBP		0x00000004	/* Next descriptor ptr */
    116  1.1  thorpej 
    117  1.1  thorpej #define HPC_SCSI1_BC		0x00001000	/* DMA byte count & flags */
    118  1.1  thorpej #define HPC_SCSI1_CTL		0x00001004	/* DMA control flags */
    119  1.1  thorpej #define HPC_SCSI1_GIO		0x00001008	/* GIO DMA FIFO pointer */
    120  1.1  thorpej #define HPC_SCSI1_DEV		0x0000100c	/* Device DMA FIFO pointer */
    121  1.1  thorpej #define HPC_SCSI1_DMACFG	0x00001010	/* DMA configururation */
    122  1.1  thorpej #define HPC_SCSI1_PIOCFG	0x00001014	/* PIO configururation */
    123  1.3      wdk 
    124  1.3      wdk #define HPC_DMACTL_IRQ    0x01 /* IRQ asserted, either dma done or parity */
    125  1.3      wdk #define HPC_DMACTL_ENDIAN 0x02 /* DMA endian mode, 0=BE, 1=LE */
    126  1.3      wdk #define HPC_DMACTL_DIR    0x04 /* DMA direction, 0=dev->mem, 1=mem->dev */
    127  1.3      wdk #define HPC_DMACTL_FLUSH  0x08 /* Flush DMA FIFO's */
    128  1.3      wdk #define HPC_DMACTL_ACTIVE 0x10 /* DMA channel is active */
    129  1.3      wdk #define HPC_DMACTL_AMASK  0x20 /* DMA active inhibits PIO */
    130  1.3      wdk #define HPC_DMACTL_RESET  0x40 /* Resets dma channel and external controller */
    131  1.3      wdk #define HPC_DMACTL_PERR   0x80 /* Parity error on interface to controller */
    132  1.3      wdk 
    133  1.1  thorpej 
    134  1.1  thorpej #define HPC_ENET_REGS		0x00014000	/* Ethernet registers */
    135  1.1  thorpej #define HPC_ENET_REGS_SIZE	0x00003fff
    136  1.1  thorpej 
    137  1.1  thorpej #define HPC_ENETR_CBP		0x00000000	/* Recv: Current buffer ptr */
    138  1.1  thorpej #define HPC_ENETR_NDBP		0x00000004	/* Recv: Next descriptor ptr */
    139  1.1  thorpej 
    140  1.1  thorpej #define HPC_ENETR_BC		0x00001000	/* Recv: DMA byte cnt/flags */
    141  1.1  thorpej #define HPC_ENETR_CTL		0x00001004	/* Recv: DMA control flags */
    142  1.2    rafal 
    143  1.2    rafal #define ENETR_CTL_STAT_5_0	0x003f		/* Seeq irq status: bits 0-5 */
    144  1.2    rafal #define ENETR_CTL_STAT_6	0x0040		/* Irq status: late_rxdc */
    145  1.2    rafal #define ENETR_CTL_STAT_7	0x0080		/* Irq status: old/new bit */
    146  1.2    rafal #define ENETR_CTL_LENDIAN	0x0100		/* DMA channel endian mode */
    147  1.2    rafal #define ENETR_CTL_ACTIVE	0x0200		/* DMA channel active? */
    148  1.2    rafal #define ENETR_CTL_ACTIVE_MSK	0x0400		/* DMA channel active? */
    149  1.2    rafal #define ENETR_CTL_RBO		0x0800		/* Recv buffer overflow */
    150  1.2    rafal 
    151  1.1  thorpej #define HPC_ENETR_GIO		0x00001008	/* Recv: GIO DMA FIFO ptr */
    152  1.1  thorpej #define HPC_ENETR_DEV		0x0000100c	/* Recv: Device DMA FIFO ptr */
    153  1.1  thorpej #define HPC_ENETR_RESET		0x00001014	/* Recv: Ethernet chip reset */
    154  1.2    rafal 
    155  1.2    rafal #define ENETR_RESET_CH		0x0001		/* Reset controller & chan */
    156  1.2    rafal #define ENETR_RESET_CLRINT	0x0002		/* Clear channel interrupt */
    157  1.2    rafal #define ENETR_RESET_LOOPBK	0x0004		/* External loopback enable */
    158  1.2    rafal #define ENETR_RESET_CLRRBO	0x0008		/* Clear RBO condition (??) */
    159  1.2    rafal 
    160  1.1  thorpej #define HPC_ENETR_DMACFG	0x00001018	/* Recv: DMA configururation */
    161  1.1  thorpej 
    162  1.2    rafal #define	ENETR_DMACFG_D1		0x0000f		/* DMA D1 state cycles */
    163  1.2    rafal #define	ENETR_DMACFG_D2		0x000f0		/* DMA D2 state cycles */
    164  1.2    rafal #define	ENETR_DMACFG_D3		0x00f00		/* DMA D3 state cycles */
    165  1.2    rafal #define	ENETR_DMACFG_WRCTL	0x01000		/* Enable IPG write */
    166  1.2    rafal 
    167  1.2    rafal /*
    168  1.2    rafal  * The following three bits work around bugs in the Seeq 8003; if you
    169  1.2    rafal  * don't set them, the Seeq gets wonky pretty often.
    170  1.2    rafal  */
    171  1.2    rafal #define	ENETR_DMACFG_FIX_RXDC	0x02000		/* Clear EOP bits on RXDC */
    172  1.2    rafal #define	ENETR_DMACFG_FIX_EOP	0x04000		/* Enable rxintr timeout */
    173  1.2    rafal #define	ENETR_DMACFG_FIX_INTR	0x08000		/* Enable EOP timeout */
    174  1.2    rafal #define	ENETR_DMACFG_TIMO	0x30000		/* Timeout for above two */
    175  1.2    rafal 
    176  1.1  thorpej #define HPC_ENETR_PIOCFG	0x0000101c	/* Recv: PIO configururation */
    177  1.1  thorpej 
    178  1.1  thorpej #define HPC_ENETX_CBP		0x00002000	/* Xmit: Current buffer ptr */
    179  1.1  thorpej #define HPC_ENETX_NDBP		0x00002004	/* Xmit: Next descriptor ptr */
    180  1.1  thorpej 
    181  1.1  thorpej #define HPC_ENETX_BC		0x00003000	/* Xmit: DMA byte cnt/flags */
    182  1.1  thorpej #define HPC_ENETX_CTL		0x00003004	/* Xmit: DMA control flags */
    183  1.2    rafal 
    184  1.2    rafal #define ENETX_CTL_STAT_5_0	0x003f		/* Seeq irq status: bits 0-5 */
    185  1.2    rafal #define ENETX_CTL_STAT_6	0x0040		/* Irq status: late_rxdc */
    186  1.2    rafal #define ENETX_CTL_STAT_7	0x0080		/* Irq status: old/new bit */
    187  1.2    rafal #define ENETX_CTL_LENDIAN	0x0100		/* DMA channel endian mode */
    188  1.2    rafal #define ENETX_CTL_ACTIVE	0x0200		/* DMA channel active? */
    189  1.2    rafal #define ENETX_CTL_ACTIVE_MSK	0x0400		/* DMA channel active? */
    190  1.2    rafal #define ENETX_CTL_RBO		0x0800		/* Recv buffer overflow */
    191  1.2    rafal 
    192  1.1  thorpej #define HPC_ENETX_GIO		0x00003008	/* Xmit: GIO DMA FIFO ptr */
    193  1.1  thorpej #define HPC_ENETX_DEV		0x0000300c	/* Xmit: Device DMA FIFO ptr */
    194  1.1  thorpej 
    195  1.1  thorpej #define HPC_PBUS_FIFO		0x00020000	/* PBus DMA FIFO */
    196  1.1  thorpej #define HPC_PBUS_FIFO_SIZE	0x00007fff	/* PBus DMA FIFO size */
    197  1.1  thorpej 
    198  1.1  thorpej #define HPC_SCSI0_FIFO		0x00028000	/* SCSI0 DMA FIFO */
    199  1.1  thorpej #define HPC_SCSI0_FIFO_SIZE	0x00001fff	/* SCSI0 DMA FIFO size */
    200  1.1  thorpej 
    201  1.1  thorpej #define HPC_SCSI1_FIFO		0x0002a000	/* SCSI1 DMA FIFO */
    202  1.1  thorpej #define HPC_SCSI1_FIFO_SIZE	0x00001fff	/* SCSI1 DMA FIFO size */
    203  1.1  thorpej 
    204  1.1  thorpej #define HPC_ENETR_FIFO		0x0002c000	/* Ether recv DMA FIFO */
    205  1.1  thorpej #define HPC_ENETR_FIFO_SIZE	0x00001fff	/* Ether recv DMA FIFO size */
    206  1.1  thorpej 
    207  1.1  thorpej #define HPC_ENETX_FIFO		0x0002e000	/* Ether xmit DMA FIFO */
    208  1.1  thorpej #define HPC_ENETX_FIFO_SIZE	0x00001fff	/* Ether xmit DMA FIFO size */
    209  1.1  thorpej 
    210  1.1  thorpej /*
    211  1.1  thorpej  * HPCBUG: The interrupt status is split amongst two registers, and they're
    212  1.1  thorpej  * not even consecutive in the HPC address space.  This is documented as a
    213  1.1  thorpej  * bug by SGI.
    214  1.1  thorpej  */
    215  1.1  thorpej #define HPC_INTRSTAT_40		0x00030000	/* Interrupt stat, bits 4:0 */
    216  1.1  thorpej #define HPC_INTRSTAT_95		0x0003000c	/* Interrupt stat, bits 9:5 */
    217  1.1  thorpej 
    218  1.1  thorpej #define HPC_GIO_MISC		0x00030004	/* GIO64 misc register */
    219  1.1  thorpej 
    220  1.1  thorpej #define HPC_EEPROM_DATA		0x00030008	/* Serial EEPROM data reg. */
    221  1.1  thorpej 
    222  1.1  thorpej #define HPC_GIO_BUSERR		0x00030010	/* GIO64 bus error intr stat */
    223  1.1  thorpej 
    224  1.1  thorpej #define HPC_SCSI0_DEVREGS	0x00044000	/* SCSI channel 0 chip regs */
    225  1.1  thorpej #define HPC_SCSI0_DEVREGS_SIZE	0x000003ff	/* Size of chip registers */
    226  1.1  thorpej 
    227  1.1  thorpej #define HPC_SCSI1_DEVREGS	0x0004c000	/* SCSI channel 1 chip regs */
    228  1.1  thorpej #define HPC_SCSI1_DEVREGS_SIZE	0x000003ff	/* Size of chip registers */
    229  1.1  thorpej 
    230  1.1  thorpej #define HPC_ENET_DEVREGS	0x00054000	/* Ethernet chip registers */
    231  1.1  thorpej #define HPC_ENET_DEVREGS_SIZE	0x000004ff	/* Size of chip registers */
    232  1.1  thorpej 
    233  1.1  thorpej #define HPC_PBUS_DEVREGS	0x00054000	/* PBus PIO chip registers */
    234  1.1  thorpej #define HPC_PBUS_DEVREGS_SIZE	0x000003ff	/* PBus PIO chip registers */
    235  1.1  thorpej 
    236  1.1  thorpej #define HPC_PBUS_CH0_DEVREGS	0x00058000	/* PBus ch. 0 chip registers */
    237  1.1  thorpej #define HPC_PBUS_CH0_DEVREGS_SIZE   0x03ff
    238  1.1  thorpej 
    239  1.1  thorpej #define HPC_PBUS_CH1_DEVREGS	0x00058400	/* PBus ch. 1 chip registers */
    240  1.1  thorpej #define HPC_PBUS_CH1_DEVREGS_SIZE   0x03ff
    241  1.1  thorpej 
    242  1.1  thorpej #define HPC_PBUS_CH2_DEVREGS	0x00058800	/* PBus ch. 2 chip registers */
    243  1.1  thorpej #define HPC_PBUS_CH2_DEVREGS_SIZE   0x03ff
    244  1.1  thorpej 
    245  1.1  thorpej #define HPC_PBUS_CH3_DEVREGS	0x00058c00	/* PBus ch. 3 chip registers */
    246  1.1  thorpej #define HPC_PBUS_CH3_DEVREGS_SIZE   0x03ff
    247  1.1  thorpej 
    248  1.1  thorpej #define HPC_PBUS_CH4_DEVREGS	0x00059000	/* PBus ch. 4 chip registers */
    249  1.1  thorpej #define HPC_PBUS_CH4_DEVREGS_SIZE   0x03ff
    250  1.1  thorpej 
    251  1.1  thorpej #define HPC_PBUS_CH5_DEVREGS	0x00059400	/* PBus ch. 5 chip registers */
    252  1.1  thorpej #define HPC_PBUS_CH5_DEVREGS_SIZE   0x03ff
    253  1.1  thorpej 
    254  1.1  thorpej #define HPC_PBUS_CH6_DEVREGS	0x00059800	/* PBus ch. 6 chip registers */
    255  1.1  thorpej #define HPC_PBUS_CH6_DEVREGS_SIZE   0x03ff
    256  1.1  thorpej 
    257  1.1  thorpej #define HPC_PBUS_CH7_DEVREGS	0x00059c00	/* PBus ch. 7 chip registers */
    258  1.1  thorpej #define HPC_PBUS_CH7_DEVREGS_SIZE   0x03ff
    259  1.1  thorpej 
    260  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS	0x0005a000	/* PBus ch. 8 chip registers */
    261  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS_SIZE   0x03ff
    262  1.1  thorpej 
    263  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS	0x0005a400	/* PBus ch. 9 chip registers */
    264  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS_SIZE   0x03ff
    265  1.1  thorpej 
    266  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS_2	0x0005a800	/* PBus ch. 8 chip registers */
    267  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS_2_SIZE 0x03ff
    268  1.1  thorpej 
    269  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS_2	0x0005ac00	/* PBus ch. 9 chip registers */
    270  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS_2_SIZE 0x03ff
    271  1.1  thorpej 
    272  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS_3	0x0005b000	/* PBus ch. 8 chip registers */
    273  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS_3_SIZE 0x03ff
    274  1.1  thorpej 
    275  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS_3	0x0005b400	/* PBus ch. 9 chip registers */
    276  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS_3_SIZE 0x03ff
    277  1.1  thorpej 
    278  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS_4	0x0005b800	/* PBus ch. 8 chip registers */
    279  1.1  thorpej #define HPC_PBUS_CH8_DEVREGS_4_SIZE 0x03ff
    280  1.1  thorpej 
    281  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS_4	0x0005bc00	/* PBus ch. 9 chip registers */
    282  1.1  thorpej #define HPC_PBUS_CH9_DEVREGS_4_SIZE 0x03ff
    283  1.1  thorpej 
    284  1.1  thorpej #define HPC_PBUS_CFGDMA_REGS	0x0005c000	/* PBus DMA config registers */
    285  1.1  thorpej #define HPC_PBUS_CFGDMA_REGS_SIZE   0x0fff
    286  1.1  thorpej 
    287  1.1  thorpej #define HPC_PBUS_CH0_CFGDMA	0x0005c000	/* PBus Ch. 0 DMA config */
    288  1.1  thorpej #define HPC_PBUS_CH0_CFGDMA_SIZE    0x01ff
    289  1.1  thorpej 
    290  1.1  thorpej #define HPC_PBUS_CH1_CFGDMA	0x0005c200	/* PBus Ch. 1 DMA config */
    291  1.1  thorpej #define HPC_PBUS_CH1_CFGDMA_SIZE    0x01ff
    292  1.1  thorpej 
    293  1.1  thorpej #define HPC_PBUS_CH2_CFGDMA	0x0005c400	/* PBus Ch. 2 DMA config */
    294  1.1  thorpej #define HPC_PBUS_CH2_CFGDMA_SIZE    0x01ff
    295  1.1  thorpej 
    296  1.1  thorpej #define HPC_PBUS_CH3_CFGDMA	0x0005c600	/* PBus Ch. 3 DMA config */
    297  1.1  thorpej #define HPC_PBUS_CH3_CFGDMA_SIZE    0x01ff
    298  1.1  thorpej 
    299  1.1  thorpej #define HPC_PBUS_CH4_CFGDMA	0x0005c800	/* PBus Ch. 4 DMA config */
    300  1.1  thorpej #define HPC_PBUS_CH4_CFGDMA_SIZE    0x01ff
    301  1.1  thorpej 
    302  1.1  thorpej #define HPC_PBUS_CH5_CFGDMA	0x0005ca00	/* PBus Ch. 5 DMA config */
    303  1.1  thorpej #define HPC_PBUS_CH5_CFGDMA_SIZE    0x01ff
    304  1.1  thorpej 
    305  1.1  thorpej #define HPC_PBUS_CH6_CFGDMA	0x0005cc00	/* PBus Ch. 6 DMA config */
    306  1.1  thorpej #define HPC_PBUS_CH6_CFGDMA_SIZE    0x01ff
    307  1.1  thorpej 
    308  1.1  thorpej #define HPC_PBUS_CH7_CFGDMA	0x0005ce00	/* PBus Ch. 7 DMA config */
    309  1.1  thorpej #define HPC_PBUS_CH7_CFGDMA_SIZE    0x01ff
    310  1.1  thorpej 
    311  1.1  thorpej #define HPC_PBUS_CFGPIO_REGS	0x0005d000	/* PBus PIO config registers */
    312  1.1  thorpej #define HPC_PBUS_CFGPIO_REGS_SIZE   0x0fff
    313  1.1  thorpej 
    314  1.1  thorpej #define HPC_PBUS_CH0_CFGPIO	0x0005d000	/* PBus Ch. 0 PIO config */
    315  1.1  thorpej #define HPC_PBUS_CH1_CFGPIO	0x0005d100	/* PBus Ch. 1 PIO config */
    316  1.1  thorpej #define HPC_PBUS_CH2_CFGPIO	0x0005d200	/* PBus Ch. 2 PIO config */
    317  1.1  thorpej #define HPC_PBUS_CH3_CFGPIO	0x0005d300	/* PBus Ch. 3 PIO config */
    318  1.1  thorpej #define HPC_PBUS_CH4_CFGPIO	0x0005d400	/* PBus Ch. 4 PIO config */
    319  1.1  thorpej #define HPC_PBUS_CH5_CFGPIO	0x0005d500	/* PBus Ch. 5 PIO config */
    320  1.1  thorpej #define HPC_PBUS_CH6_CFGPIO	0x0005d600	/* PBus Ch. 6 PIO config */
    321  1.1  thorpej #define HPC_PBUS_CH7_CFGPIO	0x0005d700	/* PBus Ch. 7 PIO config */
    322  1.1  thorpej #define HPC_PBUS_CH8_CFGPIO	0x0005d800	/* PBus Ch. 8 PIO config */
    323  1.1  thorpej #define HPC_PBUS_CH9_CFGPIO	0x0005d900	/* PBus Ch. 9 PIO config */
    324  1.1  thorpej #define HPC_PBUS_CH8_CFGPIO_2	0x0005da00	/* PBus Ch. 8 PIO config */
    325  1.1  thorpej #define HPC_PBUS_CH9_CFGPIO_2	0x0005db00	/* PBus Ch. 9 PIO config */
    326  1.1  thorpej #define HPC_PBUS_CH8_CFGPIO_3	0x0005dc00	/* PBus Ch. 8 PIO config */
    327  1.1  thorpej #define HPC_PBUS_CH9_CFGPIO_3	0x0005dd00	/* PBus Ch. 9 PIO config */
    328  1.1  thorpej #define HPC_PBUS_CH8_CFGPIO_4	0x0005de00	/* PBus Ch. 8 PIO config */
    329  1.1  thorpej #define HPC_PBUS_CH9_CFGPIO_4	0x0005df00	/* PBus Ch. 9 PIO config */
    330  1.1  thorpej 
    331  1.1  thorpej #define HPC_PBUS_PROM_WE	0x0005e000	/* PBus boot-prom write
    332  1.1  thorpej 						 * enable register
    333  1.1  thorpej 						 */
    334  1.1  thorpej 
    335  1.1  thorpej #define HPC_PBUS_PROM_SWAP	0x0005e800	/* PBus boot-prom chip-select
    336  1.1  thorpej 						 * swap register
    337  1.1  thorpej 						 */
    338  1.1  thorpej 
    339  1.1  thorpej #define HPC_PBUS_GEN_OUT	0x0005f000	/* PBus general-purpose output
    340  1.1  thorpej 						 * register
    341  1.1  thorpej 						 */
    342  1.1  thorpej 
    343  1.1  thorpej #define HPC_PBUS_BBRAM		0x00060000	/* PBus battery-backed RAM
    344  1.1  thorpej 						 * external registers
    345  1.1  thorpej 						 */
    346  1.1  thorpej #endif	/* _ARCH_SGIMIPS_HPC_HPCREG_H_ */
    347