Home | History | Annotate | Line # | Download | only in pci
elan520reg.h revision 1.7.2.1
      1  1.7.2.1      mjf /*	$NetBSD: elan520reg.h,v 1.7.2.1 2008/02/18 21:04:41 mjf Exp $	*/
      2      1.1  thorpej 
      3      1.1  thorpej /*-
      4      1.1  thorpej  * Copyright (c) 2002 The NetBSD Foundation, Inc.
      5      1.1  thorpej  * All rights reserved.
      6      1.1  thorpej  *
      7      1.1  thorpej  * This code is derived from software contributed to The NetBSD Foundation
      8      1.1  thorpej  * by Jason R. Thorpe.
      9      1.1  thorpej  *
     10      1.1  thorpej  * Redistribution and use in source and binary forms, with or without
     11      1.1  thorpej  * modification, are permitted provided that the following conditions
     12      1.1  thorpej  * are met:
     13      1.1  thorpej  * 1. Redistributions of source code must retain the above copyright
     14      1.1  thorpej  *    notice, this list of conditions and the following disclaimer.
     15      1.1  thorpej  * 2. Redistributions in binary form must reproduce the above copyright
     16      1.1  thorpej  *    notice, this list of conditions and the following disclaimer in the
     17      1.1  thorpej  *    documentation and/or other materials provided with the distribution.
     18      1.1  thorpej  * 3. All advertising materials mentioning features or use of this software
     19      1.1  thorpej  *    must display the following acknowledgement:
     20      1.1  thorpej  *	This product includes software developed by the NetBSD
     21      1.1  thorpej  *	Foundation, Inc. and its contributors.
     22      1.1  thorpej  * 4. Neither the name of The NetBSD Foundation nor the names of its
     23      1.1  thorpej  *    contributors may be used to endorse or promote products derived
     24      1.1  thorpej  *    from this software without specific prior written permission.
     25      1.1  thorpej  *
     26      1.1  thorpej  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     27      1.1  thorpej  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     28      1.1  thorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     29      1.1  thorpej  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     30      1.1  thorpej  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     31      1.1  thorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     32      1.1  thorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     33      1.1  thorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     34      1.1  thorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     35      1.1  thorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     36      1.1  thorpej  * POSSIBILITY OF SUCH DAMAGE.
     37      1.1  thorpej  */
     38      1.1  thorpej 
     39      1.1  thorpej /*
     40      1.1  thorpej  * Register definitions for the AMD Elan SC520 System Controller.
     41      1.1  thorpej  */
     42      1.1  thorpej 
     43      1.1  thorpej #ifndef _I386_PCI_ELAN520REG_H_
     44      1.1  thorpej #define	_I386_PCI_ELAN520REG_H_
     45      1.1  thorpej 
     46      1.1  thorpej #define	MMCR_BASE_ADDR		0xfffef000
     47      1.1  thorpej 
     48      1.1  thorpej /*
     49      1.1  thorpej  * Am5x86 CPU Registers.
     50      1.1  thorpej  */
     51      1.1  thorpej #define	MMCR_REVID		0x0000
     52      1.1  thorpej #define	MMCR_CPUCTL		0x0002
     53      1.1  thorpej 
     54      1.1  thorpej #define	REVID_PRODID		0xff00	/* product ID */
     55      1.1  thorpej #define	REVID_PRODID_SHIFT	8
     56      1.1  thorpej #define	REVID_MAJSTEP		0x00f0	/* stepping major */
     57      1.1  thorpej #define	REVID_MAJSTEP_SHIFT	4
     58      1.1  thorpej #define	REVID_MINSTEP		0x000f	/* stepping minor */
     59      1.1  thorpej 
     60      1.1  thorpej #define	PRODID_ELAN_SC520	0x00	/* Elan SC520 */
     61      1.1  thorpej 
     62      1.1  thorpej #define	CPUCTL_CPU_CLK_SPD_MASK	0x03	/* CPU clock speed */
     63      1.1  thorpej #define	CPUCTL_CACHE_WR_MODE	0x10	/* cache mode (0 = wb, 1 = wt) */
     64      1.1  thorpej 
     65      1.1  thorpej /*
     66      1.4   dyoung  * Performance Registers
     67      1.4   dyoung  */
     68      1.4   dyoung #define MMCR_DBCTL      0x0040  /* SDRAM Buffer Control */
     69      1.4   dyoung 
     70      1.4   dyoung #define	MMCR_DBCTL_RAB_ENB	__BIT(4)	/* enable read-ahead */
     71      1.4   dyoung #define	MMCR_DBCTL_WB_WM_MASK	__BITS(3,2)	/* write buffer watermark */
     72      1.4   dyoung #define	MMCR_DBCTL_WB_WM_28DW	__SHIFTIN(0, MMCR_DBCTL_WB_WM_MASK)
     73      1.4   dyoung #define	MMCR_DBCTL_WB_WM_24DW	__SHIFTIN(1, MMCR_DBCTL_WB_WM_MASK)
     74      1.4   dyoung #define	MMCR_DBCTL_WB_WM_16DW	__SHIFTIN(2, MMCR_DBCTL_WB_WM_MASK)
     75      1.4   dyoung #define	MMCR_DBCTL_WB_WM_8DW	__SHIFTIN(3, MMCR_DBCTL_WB_WM_MASK)
     76      1.4   dyoung #define	MMCR_DBCTL_WB_FLUSH	__BIT(1)	/* write 1 to flush wr buf */
     77      1.4   dyoung #define	MMCR_DBCTL_WB_ENB	__BIT(0)	/* enable write buffer */
     78      1.4   dyoung #define MMCR_HBCTL      0x0060  /* Host Bridge Control */
     79      1.4   dyoung #define	MMCR_HBCTL_PCI_RST		__BIT(15)
     80      1.4   dyoung #define	MMCR_HBCTL_T_PURGE_RD_ENB	__BIT(10)
     81      1.4   dyoung #define	MMCR_HBCTL_T_DLYTR_ENB_MASK	__BITS(9,8)
     82      1.4   dyoung #define	MMCR_HBCTL_T_DLYTR_ENB_WAIT	\
     83      1.4   dyoung     __SHIFTIN(0, MMCR_HBCTL_T_DLYTR_ENB_MASK)
     84      1.4   dyoung #define	MMCR_HBCTL_T_DLYTR_ENB_AUTORETRY\
     85      1.4   dyoung     __SHIFTIN(1, MMCR_HBCTL_T_DLYTR_ENB_MASK)
     86      1.4   dyoung #define	MMCR_HBCTL_T_DLYTR_ENB_RSVD0	\
     87      1.4   dyoung     __SHIFTIN(2, MMCR_HBCTL_T_DLYTR_ENB_MASK)
     88      1.4   dyoung #define	MMCR_HBCTL_T_DLYTR_ENB_RSVD1	\
     89      1.4   dyoung     __SHIFTIN(3, MMCR_HBCTL_T_DLYTR_ENB_MASK)
     90      1.4   dyoung #define	MMCR_HBCTL_M_WPOST_ENB		__BIT(3)
     91      1.4   dyoung #define MMCR_SYSARBCTL  0x0070  /* System Arbiter Control */
     92      1.4   dyoung #define MMCR_SYSARBCTL_CNCR_MODE_ENB	__BIT(1)
     93      1.4   dyoung 
     94      1.4   dyoung /*
     95      1.4   dyoung  * PCI Host Bridge Registers
     96      1.4   dyoung  */
     97      1.5   dyoung #define	MMCR_HBMSTIRQCTL	0x66	/* Host Bridge Master Interrupt Ctrl */
     98      1.5   dyoung #define	MMCR_M_RTRTO_IRQ_SEL	__BIT(13)	/* Master Retry Time-Out
     99      1.5   dyoung 						 * Interrupt Select
    100      1.5   dyoung 						 */
    101      1.5   dyoung #define	MMCR_M_TABRT_IRQ_SEL	__BIT(12)	/* Master Target Abort
    102      1.5   dyoung 						 * Interrupt Select
    103      1.5   dyoung 						 */
    104      1.5   dyoung #define	MMCR_M_MABRT_IRQ_SEL	__BIT(11)	/* Master Abort
    105      1.5   dyoung 						 * Interrupt Select
    106      1.5   dyoung 						 */
    107      1.5   dyoung #define	MMCR_M_SERR_IRQ_SEL	__BIT(10)	/* Master System Error
    108      1.5   dyoung 						 * Interrupt Select
    109      1.5   dyoung 						 */
    110      1.5   dyoung #define	MMCR_M_RPER_IRQ_SEL	__BIT(9)	/* Master Received PERR
    111      1.5   dyoung 						 * Interrupt Select
    112      1.5   dyoung 						 */
    113      1.5   dyoung #define	MMCR_M_DPER_IRQ_SEL	__BIT(8)	/* Master Detected PERR
    114      1.5   dyoung 						 * Interrupt Select
    115      1.5   dyoung 						 */
    116      1.5   dyoung #define	MMCR_M_RTRTO_IRQ_ENB	__BIT(5)	/* Master Retry Time-Out
    117      1.5   dyoung 						 * Interrupt Enable
    118      1.5   dyoung 						 */
    119      1.5   dyoung #define	MMCR_M_TABRT_IRQ_ENB	__BIT(4)	/* Master Target Abort
    120      1.5   dyoung 						 * Interrupt Enable
    121      1.5   dyoung 						 */
    122      1.5   dyoung #define	MMCR_M_MABRT_IRQ_ENB	__BIT(3)	/* Master Abort
    123      1.5   dyoung 						 * Interrupt Enable
    124      1.5   dyoung 						 */
    125      1.5   dyoung #define	MMCR_M_SERR_IRQ_ENB	__BIT(2)	/* Master System Error
    126      1.5   dyoung 						 * Interrupt Enable
    127      1.5   dyoung 						 */
    128      1.5   dyoung #define	MMCR_M_RPER_IRQ_ENB	__BIT(1)	/* Master Received PERR
    129      1.5   dyoung 						 * Interrupt Enable
    130      1.5   dyoung 						 */
    131      1.5   dyoung #define	MMCR_M_DPER_IRQ_ENB	__BIT(0)	/* Master Detected PERR
    132      1.5   dyoung 						 * Interrupt Enable
    133      1.5   dyoung 						 */
    134      1.5   dyoung 
    135      1.6   dyoung #define	MMCR_HBTGTIRQCTL	0x62	/* Host Bridge Target Interrupt Ctrl */
    136      1.6   dyoung 
    137      1.4   dyoung #define	MMCR_PCIHOSTMAP	0x0d14	/* PCI Host Bridge Interrupt Mapping */
    138      1.4   dyoung 
    139      1.4   dyoung #define	MMCR_PCIHOSTMAP_PCI_NMI_ENB	__BIT(8)
    140      1.4   dyoung #define	MMCR_PCIHOSTMAP_PCI_IRQ_MAP	__BITS(4, 0)
    141      1.4   dyoung 
    142  1.7.2.1      mjf /* Programmable Interrupt Controller.  8 bits. */
    143  1.7.2.1      mjf #define	MMCR_PICICR			0xd00
    144  1.7.2.1      mjf #define	MMCR_PICICR_NMI_DONE		__BIT(7)
    145  1.7.2.1      mjf #define	MMCR_PICICR_NMI_ENB		__BIT(6)
    146  1.7.2.1      mjf #define	MMCR_PICICR_RSVD0		__BITS(5, 3)
    147  1.7.2.1      mjf #define	MMCR_PICICR_S2_GINT_MODE	__BIT(2)
    148  1.7.2.1      mjf #define	MMCR_PICICR_S1_GINT_MODE	__BIT(1)
    149  1.7.2.1      mjf #define	MMCR_PICICR_M_GINT_MODE		__BIT(0)
    150  1.7.2.1      mjf 
    151  1.7.2.1      mjf #define	MMCR_MPICMODE		0xd02
    152  1.7.2.1      mjf #define	MMCR_SL1PICMODE		0xd03
    153  1.7.2.1      mjf #define	MMCR_SL2PICMODE		0xd04
    154  1.7.2.1      mjf 
    155  1.7.2.1      mjf #define	MMCR_WPVMAP		0xd44
    156  1.7.2.1      mjf #define	MMCR_WPVMAP_RSVD0	__BITS(7, 5)
    157  1.7.2.1      mjf /* map write-protection violations to an Elan SC520 interrupt priority,
    158  1.7.2.1      mjf  * 1 through 22
    159  1.7.2.1      mjf  */
    160  1.7.2.1      mjf #define	MMCR_WPVMAP_INT_MAP	__BITS(4, 0)
    161  1.7.2.1      mjf /* no bits set -> disable */
    162  1.7.2.1      mjf #define	MMCR_WPVMAP_INT_OFF	0
    163  1.7.2.1      mjf /* all bits set -> NMI */
    164  1.7.2.1      mjf #define	MMCR_WPVMAP_INT_NMI	MMCR_WPVMAP_INT_MAP
    165  1.7.2.1      mjf 
    166  1.7.2.1      mjf #define	MMCR_ADDDECCTL		0x80
    167  1.7.2.1      mjf #define	MMCR_ADDDECCTL_WPV_INT_ENB	__BIT(7)
    168  1.7.2.1      mjf 
    169  1.7.2.1      mjf #define	MMCR_WPVSTA		0x82
    170  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_STA		__BIT(15)
    171  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_RSVD0		__BITS(14, 10)
    172  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_MSTR		__BITS(9, 8)
    173  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_MSTR_CPU	__SHIFTIN(0, MMCR_WPVSTA_WPV_MSTR)
    174  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_MSTR_PCI	__SHIFTIN(1, MMCR_WPVSTA_WPV_MSTR)
    175  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_MSTR_GP		__SHIFTIN(2, MMCR_WPVSTA_WPV_MSTR)
    176  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_MSTR_RSVD	__SHIFTIN(3, MMCR_WPVSTA_WPV_MSTR)
    177  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_RSVD1		__BITS(7, 4)
    178  1.7.2.1      mjf #define	MMCR_WPVSTA_WPV_WINDOW		__BITS(3, 0)
    179  1.7.2.1      mjf 
    180  1.7.2.1      mjf #define	MMCR_PAR(__i)		(0x88 + 4 * (__i))
    181  1.7.2.1      mjf #define	MMCR_PAR_TARGET		__BITS(31, 29)
    182  1.7.2.1      mjf #define	MMCR_PAR_TARGET_OFF	__SHIFTIN(0, MMCR_PAR_TARGET)
    183  1.7.2.1      mjf #define	MMCR_PAR_TARGET_GPIO	__SHIFTIN(1, MMCR_PAR_TARGET)
    184  1.7.2.1      mjf #define	MMCR_PAR_TARGET_GPMEM	__SHIFTIN(2, MMCR_PAR_TARGET)
    185  1.7.2.1      mjf #define	MMCR_PAR_TARGET_PCI	__SHIFTIN(3, MMCR_PAR_TARGET)
    186  1.7.2.1      mjf #define	MMCR_PAR_TARGET_BOOTCS	__SHIFTIN(4, MMCR_PAR_TARGET)
    187  1.7.2.1      mjf #define	MMCR_PAR_TARGET_ROMCS1	__SHIFTIN(5, MMCR_PAR_TARGET)
    188  1.7.2.1      mjf #define	MMCR_PAR_TARGET_ROMCS2	__SHIFTIN(6, MMCR_PAR_TARGET)
    189  1.7.2.1      mjf #define	MMCR_PAR_TARGET_SDRAM	__SHIFTIN(7, MMCR_PAR_TARGET)
    190  1.7.2.1      mjf #define	MMCR_PAR_ATTR		__BITS(28, 26)
    191  1.7.2.1      mjf #define	MMCR_PAR_ATTR_NOEXEC	__SHIFTIN(__BIT(2), MMCR_PAR_ATTR)
    192  1.7.2.1      mjf #define	MMCR_PAR_ATTR_NOCACHE	__SHIFTIN(__BIT(1), MMCR_PAR_ATTR)
    193  1.7.2.1      mjf #define	MMCR_PAR_ATTR_NOWRITE	__SHIFTIN(__BIT(0), MMCR_PAR_ATTR)
    194  1.7.2.1      mjf #define	MMCR_PAR_PG_SZ		__BIT(25)
    195  1.7.2.1      mjf #define	MMCR_PAR_SZ_ST_ADR	__BITS(24, 0)
    196  1.7.2.1      mjf #define	MMCR_PAR_4KB_SZ		__BITS(24, 18)
    197  1.7.2.1      mjf #define	MMCR_PAR_4KB_ST_ADR	__BITS(17, 0)
    198  1.7.2.1      mjf #define	MMCR_PAR_64KB_SZ	__BITS(24, 14)
    199  1.7.2.1      mjf #define	MMCR_PAR_64KB_ST_ADR	__BITS(13, 0)
    200  1.7.2.1      mjf #define	MMCR_PAR_IO_SZ		__BITS(24, 16)
    201  1.7.2.1      mjf #define	MMCR_PAR_IO_ST_ADR	__BITS(15, 0)
    202  1.7.2.1      mjf 
    203      1.4   dyoung /*
    204      1.1  thorpej  * General Purpose Bus Registers
    205      1.1  thorpej  */
    206      1.1  thorpej #define	MMCR_GPECHO		0x0c00	/* GP echo mode */
    207      1.1  thorpej #define	MMCR_GPCSDW		0x0c01	/* GP chip sel data width */
    208      1.1  thorpej #define	MMCR_CPCSQUAL		0x0c02	/* GP chip sel qualification */
    209      1.1  thorpej #define	MMCR_GPCSRT		0x0c08	/* GP chip sel recovery time */
    210      1.1  thorpej #define	MMCR_GPCSPW		0x0c09	/* GP chip sel pulse width */
    211      1.1  thorpej #define	MMCR_GPCSOFF		0x0c0a	/* GP chip sel offset */
    212      1.1  thorpej #define	MMCR_GPRDW		0x0c0b	/* GP read pulse width */
    213      1.1  thorpej #define	MMCR_GPRDOFF		0x0c0c	/* GP read offset */
    214      1.1  thorpej #define	MMCR_GPWRW		0x0c0d	/* GP write pulse width */
    215      1.1  thorpej #define	MMCR_GPWROFF		0x0c0e	/* GP write offset */
    216      1.1  thorpej #define	MMCR_GPALEW		0x0c0f	/* GPALE pulse width */
    217      1.1  thorpej #define	MMCR_GPALEOFF		0x0c10	/* GPALE offset */
    218      1.1  thorpej 
    219      1.1  thorpej #define	GPECHO_GP_ECHO_ENB	0x01	/* GP bus echo mode enable */
    220      1.1  thorpej 
    221      1.1  thorpej /*
    222      1.1  thorpej  * Programmable Input/Output Registers
    223      1.1  thorpej  */
    224      1.1  thorpej #define	MMCR_PIOPFS15_0		0x0c20	/* PIO15-PIO0 pin func sel */
    225      1.1  thorpej #define	MMCR_PIOPFS31_16	0x0c22	/* PIO31-PIO16 pin func sel */
    226      1.1  thorpej #define	MMCR_CSPFS		0x0c24	/* chip sel pin func sel */
    227      1.1  thorpej #define	MMCR_CLKSEL		0x0c26	/* clock select */
    228      1.1  thorpej #define	MMCR_DSCTL		0x0c28	/* drive strength control */
    229      1.1  thorpej #define	MMCR_PIODIR15_0		0x0c2a	/* PIO15-PIO0 direction */
    230      1.1  thorpej #define	MMCR_PIODIR31_16	0x0c2c	/* PIO31-PIO16 direction */
    231      1.1  thorpej #define	MMCR_PIODATA15_0	0x0c30	/* PIO15-PIO0 data */
    232      1.1  thorpej #define	MMCR_PIODATA31_16	0x0c32	/* PIO31-PIO16 data */
    233      1.1  thorpej #define	MMCR_PIOSET15_0		0x0c34	/* PIO15-PIO0 set */
    234      1.1  thorpej #define	MMCR_PIOSET31_16	0x0c36	/* PIO31-PIO16 set */
    235      1.1  thorpej #define	MMCR_PIOCLR15_0		0x0c38	/* PIO15-PIO0 clear */
    236      1.1  thorpej #define	MMCR_PIOCLR31_16	0x0c3a	/* PIO31-PIO16 clear */
    237      1.1  thorpej 
    238      1.2      riz #define	ELANSC_PIO_NPINS	32	/* total number of PIO pins */
    239      1.2      riz 
    240      1.1  thorpej /*
    241      1.1  thorpej  * Watchdog Timer Registers.
    242      1.1  thorpej  */
    243      1.1  thorpej #define	MMCR_WDTMRCTL		0x0cb0	/* watchdog timer control */
    244      1.1  thorpej #define	MMCR_WDTMRCNTL		0x0cb2	/* watchdog timer count low */
    245      1.1  thorpej #define	MMCR_WDTMRCNTH		0x0cb4	/* watchdog timer count high */
    246      1.1  thorpej 
    247      1.1  thorpej #define	WDTMRCTL_EXP_SEL_MASK	0x00ff	/* exponent select */
    248      1.1  thorpej #define	WDTMRCTL_EXP_SEL14	0x0001	/*	496us/492us */
    249      1.1  thorpej #define	WDTMRCTL_EXP_SEL24	0x0002	/*	508ms/503ms */
    250      1.1  thorpej #define	WDTMRCTL_EXP_SEL25	0x0004	/*	1.02s/1.01s */
    251      1.1  thorpej #define	WDTMRCTL_EXP_SEL26	0x0008	/*	2.03s/2.01s */
    252      1.1  thorpej #define	WDTMRCTL_EXP_SEL27	0x0010	/*	4.07s/4.03s */
    253      1.1  thorpej #define	WDTMRCTL_EXP_SEL28	0x0020	/*	8.13s/8.05s */
    254      1.1  thorpej #define	WDTMRCTL_EXP_SEL29	0x0040	/*	16.27s/16.11s */
    255      1.1  thorpej #define	WDTMRCTL_EXP_SEL30	0x0080	/*	32.54s/32.21s */
    256      1.1  thorpej #define	WDTMRCTL_IRQ_FLG	0x1000	/* interrupt request */
    257      1.1  thorpej #define	WDTMRCTL_WRST_ENB	0x4000	/* watchdog timer reset enable */
    258      1.1  thorpej #define	WDTMRCTL_ENB		0x8000	/* watchdog timer enable */
    259      1.1  thorpej 
    260      1.1  thorpej #define	WDTMRCTL_UNLOCK1	0x3333
    261      1.1  thorpej #define	WDTMRCTL_UNLOCK2	0xcccc
    262      1.1  thorpej 
    263      1.1  thorpej #define	WDTMRCTL_RESET1		0xaaaa
    264      1.1  thorpej #define	WDTMRCTL_RESET2		0x5555
    265      1.1  thorpej 
    266      1.1  thorpej /*
    267      1.1  thorpej  * Reset Generation Registers.
    268      1.1  thorpej  */
    269      1.1  thorpej #define	MMCR_SYSINFO		0x0d70	/* system board information */
    270      1.1  thorpej #define	MMCR_RESCFG		0x0d72	/* reset configuration */
    271      1.1  thorpej #define	MMCR_RESSTA		0x0d74	/* reset status */
    272      1.1  thorpej 
    273      1.1  thorpej #define	RESCFG_SYS_RST		0x01	/* software system reset */
    274      1.1  thorpej #define	RESCFG_GP_RST		0x02	/* assert GP bus reset */
    275      1.1  thorpej #define	RESCFG_PRG_RST_ENB	0x04	/* programmable reset enable */
    276      1.1  thorpej #define	RESCFG_ICE_ON_RST	0x08	/* enter AMDebug(tm) on reset */
    277      1.1  thorpej 
    278      1.1  thorpej #define	RESSTA_PWRGOOD_DET	0x01	/* POWERGOOD reset detect */
    279      1.1  thorpej #define	RESSTA_PRGRST_DET	0x02	/* programmable reset detect */
    280      1.1  thorpej #define	RESSTA_SD_RST_DET	0x04	/* CPU shutdown reset detect */
    281      1.1  thorpej #define	RESSTA_WDT_RST_DET	0x08	/* watchdog timer reset detect */
    282      1.1  thorpej #define	RESSTA_ICE_SRST_DET	0x10	/* AMDebug(tm) soft reset detect */
    283      1.1  thorpej #define	RESSTA_ICE_HRST_DET	0x20	/* AMDebug(tm) soft reset detect */
    284      1.1  thorpej #define	RESSTA_SCP_RST		0x40	/* SCP reset detect */
    285      1.1  thorpej 
    286      1.1  thorpej #endif /* _I386_PCI_ELAN520REG_H_ */
    287