]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/sparc64/fhc/fhcreg.h
Update clang, llvm, lld, lldb, compiler-rt and libc++ version number to
[FreeBSD/FreeBSD.git] / sys / sparc64 / fhc / fhcreg.h
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND BSD-2-Clause
3  *
4  * Copyright (c) 2003 Jake Burkholder.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26  * SUCH DAMAGE.
27  */
28 /*-
29  * Copyright (c) 2004 Jason L. Wright (jason@thought.net).
30  * All rights reserved.
31  *
32  * Redistribution and use in source and binary forms, with or without
33  * modification, are permitted provided that the following conditions
34  * are met:
35  * 1. Redistributions of source code must retain the above copyright
36  *    notice, this list of conditions and the following disclaimer.
37  * 2. Redistributions in binary form must reproduce the above copyright
38  *    notice, this list of conditions and the following disclaimer in the
39  *    documentation and/or other materials provided with the distribution.
40  *
41  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
42  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
43  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
44  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
45  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
46  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
47  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
50  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
51  * POSSIBILITY OF SUCH DAMAGE.
52  *
53  *      from: OpenBSD: fhcreg.h,v 1.3 2004/09/28 16:26:03 jason Exp
54  *
55  * $FreeBSD$
56  */
57
58 #ifndef _SPARC64_FHC_FHCREG_H_
59 #define _SPARC64_FHC_FHCREG_H_
60
61 #define FHC_NREG        (6)
62
63 #define FHC_INTERNAL    (0)
64 #define FHC_IGN         (1)
65 #define FHC_FANFAIL     (2)
66 #define FHC_SYSTEM      (3)
67 #define FHC_UART        (4)
68 #define FHC_TOD         (5)
69
70 #define FHC_IMAP        0x0
71 #define FHC_ICLR        0x10
72
73 #define FHC_ID          0x00000000      /* ID */
74 #define FHC_RCS         0x00000010      /* reset ctrl/status */
75 #define FHC_CTRL        0x00000020      /* control */
76 #define FHC_BSR         0x00000030      /* board status */
77 #define FHC_ECC         0x00000040      /* ECC control */
78 #define FHC_JCTRL       0x000000f0      /* JTAG control */
79
80 #define FHC_CTRL_ICS    0x00100000      /* ignore centerplane sigs */
81 #define FHC_CTRL_FRST   0x00080000      /* fatal error reset enable */
82 #define FHC_CTRL_LFAT   0x00040000      /* AC/DC local error */
83 #define FHC_CTRL_SLINE  0x00010000      /* firmware sync line */
84 #define FHC_CTRL_DCD    0x00008000      /* DC/DC converter disable */
85 #define FHC_CTRL_POFF   0x00004000      /* AC/DC ctlr PLL disable */
86 #define FHC_CTRL_FOFF   0x00002000      /* FHC ctlr PLL disable */
87 #define FHC_CTRL_AOFF   0x00001000      /* cpu a sram low pwr mode */
88 #define FHC_CTRL_BOFF   0x00000800      /* cpu b sram low pwr mode */
89 #define FHC_CTRL_PSOFF  0x00000400      /* disable fhc power supply */
90 #define FHC_CTRL_IXIST  0x00000200      /* fhc notifies clock-board */
91 #define FHC_CTRL_XMSTR  0x00000100      /* xir master enable */
92 #define FHC_CTRL_LLED   0x00000040      /* left led (reversed) */
93 #define FHC_CTRL_MLED   0x00000020      /* middle led */
94 #define FHC_CTRL_RLED   0x00000010      /* right led */
95 #define FHC_CTRL_BPINS  0x00000003      /* spare bidir pins */
96
97 #endif /* !_SPARC64_FHC_FHCREG_H_ */