ctlreg.h revision 1.1 1 1.1 rumble /* $NetBSD: ctlreg.h,v 1.1 2009/02/10 06:04:56 rumble Exp $ */
2 1.1 rumble
3 1.1 rumble /*
4 1.1 rumble * Copyright (c) 2009 Stephen M. Rumble
5 1.1 rumble * All rights reserved.
6 1.1 rumble *
7 1.1 rumble * Redistribution and use in source and binary forms, with or without
8 1.1 rumble * modification, are permitted provided that the following conditions
9 1.1 rumble * are met:
10 1.1 rumble * 1. Redistributions of source code must retain the above copyright
11 1.1 rumble * notice, this list of conditions and the following disclaimer.
12 1.1 rumble * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 rumble * notice, this list of conditions and the following disclaimer in the
14 1.1 rumble * documentation and/or other materials provided with the distribution.
15 1.1 rumble * 3. The name of the author may not be used to endorse or promote products
16 1.1 rumble * derived from this software without specific prior written permission.
17 1.1 rumble *
18 1.1 rumble * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 1.1 rumble * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 1.1 rumble * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 1.1 rumble * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 1.1 rumble * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 1.1 rumble * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 1.1 rumble * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 1.1 rumble * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 1.1 rumble * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 1.1 rumble * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 1.1 rumble */
29 1.1 rumble
30 1.1 rumble #ifndef _ARCH_SGIMIPS_DEV_CTLREG_H_
31 1.1 rumble #define _ARCH_SGIMIPS_DEV_CTLREG_H_
32 1.1 rumble
33 1.1 rumble #define CTL_MEMCFG 0x00000000 /* Memory configuration (8) */
34 1.1 rumble
35 1.1 rumble #define CTL_SYSID 0x00000001 /* System ID (8) */
36 1.1 rumble #define CTL_SYSID_FPU 0x02 /* FPU present */
37 1.1 rumble
38 1.1 rumble #define CTL_CPUCTRL 0x00080002 /* Misc. config bits (16) */
39 1.1 rumble #define CTL_CPUCTRL_SYSRESET 0x0200 /* VME SYSRESET: reset system */
40 1.1 rumble #define CTL_CPUCTRL_PARITY 0x0400 /* Enable parity checking */
41 1.1 rumble #define CTL_CPUCTRL_SLAVE 0x0800 /* Enable slave accesses */
42 1.1 rumble #define CTL_CPUCTRL_WDOG 0x4000 /* Watchdog enable */
43 1.1 rumble
44 1.1 rumble #define CTL_LAN_PAR_CLR 0x002a0000 /* Clear LAN parity error (8) */
45 1.1 rumble #define CTL_DMA_PAR_CLR 0x002a0001 /* Clear DMA parity error (8) */
46 1.1 rumble #define CTL_CPU_PAR_CLR 0x002a0002 /* Clear CPU parity error (8) */
47 1.1 rumble #define CTL_VME_PAR_CLR 0x002a0003 /* Clear VME parity error (8) */
48 1.1 rumble
49 1.1 rumble #define CTL_AUX_CPUCTRL 0x000e0000 /* Aux. cpu control reg (8) */
50 1.1 rumble #define CTL_AUX_CPUCTRL_CONSLED 0x10 /* Enable console led */
51 1.1 rumble #define CTL_AUX_CPUCTRL_HRTBEAT 0x01 /* Heartbeat */
52 1.1 rumble
53 1.1 rumble #endif /* _ARCH_SGIMIPS_DEV_CTLREG_H_ */
54