]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/sparc64/fhc/clkbrdreg.h
Remove iBCS2: also remove xenix syscall function support.
[FreeBSD/FreeBSD.git] / sys / sparc64 / fhc / clkbrdreg.h
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2004 Jason L. Wright (jason@thought.net)
5  * Copyright (c) 2006 Marius Strobl <marius@FreeBSD.org>
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
21  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  *
29  *      from: OpenBSD: clkbrdreg.h,v 1.2 2004/10/01 15:36:30 jason Exp
30  *
31  * $FreeBSD$
32  */
33
34 #ifndef _SPARC64_FHC_CLKBRDREG_H_
35 #define _SPARC64_FHC_CLKBRDREG_H_
36
37 /* register bank 0 */
38 #define CLK_CF_REG2             0x20    /* clock frequency register 2 */
39 #define  CLK_CF_REG2_REN_RCONS  0x80    /* reset enable: remote console */
40 #define  CLK_CF_REG2_REN_GEN    0x40    /* reset enable: frequency change */
41 #define  CLK_CF_REG2_REN_WDOG   0x20    /* reset enable: watchdog */
42 #define  CLK_CF_REG2_DIV1       0x10    /* CPU module divisor bit 1 */
43 #define  CLK_CF_REG2_RANGE      0x0c    /* clock range */
44 #define  CLK_CF_REG2_DIV0       0x02    /* CPU module divisor bit 0 */
45 #define  CLK_CF_REG2_FREQ8      0x01    /* frequency bit 8 */
46
47 /* register bank 1 */
48 #define CLK_CTRL                0x00    /* system control register */
49 #define  CLK_CTRL_IEN_FAN       0x80    /* intr enable: fan failure */
50 #define  CLK_CTRL_IEN_DC        0x40    /* intr enable: power supply DC */
51 #define  CLK_CTRL_IEN_AC        0x20    /* intr enable: AC power */
52 #define  CLK_CTRL_IEN_BRD       0x10    /* intr enable: board insert */
53 #define  CLK_CTRL_POFF          0x08    /* turn off system power */
54 #define  CLK_CTRL_LLED          0x04    /* left led (reversed) */
55 #define  CLK_CTRL_MLED          0x02    /* middle led */
56 #define  CLK_CTRL_RLED          0x01    /* right led */
57 #define CLK_STS1                0x10    /* system status register 1 */
58 #define  CLK_STS1_SLOTS_MASK    0xc0    /* system status 1 slots mask */
59 #define  CLK_STS1_SLOTS_16      0x40    /* 16 slots */
60 #define  CLK_STS1_SLOTS_8       0xc0    /* 8 slots */
61 #define  CLK_STS1_SLOTS_4       0x80    /* 4 slots */
62 #define  CLK_STS1_SLOTS_TESTBED 0x00    /* test machine */
63 #define  CLK_STS1_SECURE        0x20    /* key in position secure (reversed) */
64 #define  CLK_STS1_FAN           0x10    /* fan tray present (reversed) */
65 #define  CLK_STS1_BRD           0x08    /* board inserted (reversed) */
66 #define  CLK_STS1_PS0           0x04    /* power supply 0 present (reversed) */
67 #define  CLK_STS1_RST_WDOG      0x02    /* rst by: watchdog (reversed) */
68 #define  CLK_STS1_RST_GEN       0x01    /* rst by: freq change (reversed) */
69 #define CLK_STS2                0x20    /* system status register 2 */
70 #define  CLK_STS2_RST_RCONS     0x80    /* rst by: remote console (reversed) */
71 #define  CLK_STS2_OK_PS0        0x40    /* ok: power supply 0 */
72 #define  CLK_STS2_OK_33V        0x20    /* ok: 3.3V on clock board */
73 #define  CLK_STS2_OK_50V        0x10    /* ok: 5.0V on clock board */
74 #define  CLK_STS2_FAIL_AC       0x08    /* failed: AC power */
75 #define  CLK_STS2_FAIL_FAN      0x04    /* failed: rack fans */
76 #define  CLK_STS2_OK_ACFAN      0x02    /* ok: 4 AC box fans */
77 #define  CLK_STS2_OK_KEYFAN     0x01    /* ok: keyswitch fans */
78 #define CLK_PSTS1               0x30    /* power supply 1 status register */
79 #define  CLK_PSTS1_PS           0x80    /* power supply 1 present (reversed) */
80 #define CLK_PPRES               0x40    /* power supply presence register */
81 #define  CLK_PPRES_CSHARE       0x80    /* current share backplane */
82 #define  CLK_PPRES_OK_MASK      0x7f    /* precharge and peripheral pwr mask */
83 #define  CLK_PPRES_OK_P_5V      0x40    /* ok: peripheral 5V */
84 #define  CLK_PPRES_OK_P_12V     0x20    /* ok: peripheral 12V */
85 #define  CLK_PPRES_OK_AUX_5V    0x10    /* ok: auxiliary 5V */
86 #define  CLK_PPRES_OK_PP_5V     0x08    /* ok: peripheral 5V precharge */
87 #define  CLK_PPRES_OK_PP_12V    0x04    /* ok: peripheral 12V precharge */
88 #define  CLK_PPRES_OK_SP_3V     0x02    /* ok: system 3.3V precharge */
89 #define  CLK_PPRES_OK_SP_5V     0x01    /* ok: system 5V precharge */
90 #define CLK_TEMP                0x50    /* temperature register */
91 #define CLK_IDIAG               0x60    /* interrupt diagnostic register */
92 #define CLK_PSTS2               0x70    /* power supply 2 status register */
93
94 /* register bank 2 */
95 #define CLKVER_SLOTS            0x00    /* clock version slots register */
96 #define  CLKVER_SLOTS_MASK      0x80    /* clock version slots mask */
97 #define  CLKVER_SLOTS_PLUS      0x00    /* plus system (reversed) */
98
99 #endif /* !_SPARC64_FHC_CLKBRDREG_H_ */