1111072Sjake/*- 2111072Sjake * Copyright (c) 2003 Jake Burkholder. 3111072Sjake * All rights reserved. 4111072Sjake * 5111072Sjake * Redistribution and use in source and binary forms, with or without 6111072Sjake * modification, are permitted provided that the following conditions 7111072Sjake * are met: 8111072Sjake * 1. Redistributions of source code must retain the above copyright 9111072Sjake * notice, this list of conditions and the following disclaimer. 10111072Sjake * 2. Redistributions in binary form must reproduce the above copyright 11111072Sjake * notice, this list of conditions and the following disclaimer in the 12111072Sjake * documentation and/or other materials provided with the distribution. 13111072Sjake * 14111072Sjake * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15111072Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16111072Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17111072Sjake * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18111072Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19111072Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20111072Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21111072Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22111072Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23111072Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24111072Sjake * SUCH DAMAGE. 25143825Smarius */ 26143825Smarius/*- 27143825Smarius * Copyright (c) 2004 Jason L. Wright (jason@thought.net). 28143825Smarius * All rights reserved. 29111072Sjake * 30143825Smarius * Redistribution and use in source and binary forms, with or without 31143825Smarius * modification, are permitted provided that the following conditions 32143825Smarius * are met: 33143825Smarius * 1. Redistributions of source code must retain the above copyright 34143825Smarius * notice, this list of conditions and the following disclaimer. 35143825Smarius * 2. Redistributions in binary form must reproduce the above copyright 36143825Smarius * notice, this list of conditions and the following disclaimer in the 37143825Smarius * documentation and/or other materials provided with the distribution. 38143825Smarius * 39143825Smarius * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 40143825Smarius * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 41143825Smarius * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 42143825Smarius * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 43143825Smarius * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 44143825Smarius * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 45143825Smarius * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 46143825Smarius * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 47143825Smarius * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 48143825Smarius * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 49143825Smarius * POSSIBILITY OF SUCH DAMAGE. 50143825Smarius * 51143825Smarius * from: OpenBSD: fhcreg.h,v 1.3 2004/09/28 16:26:03 jason Exp 52143825Smarius * 53111072Sjake * $FreeBSD$ 54111072Sjake */ 55111072Sjake 56111072Sjake#ifndef _SPARC64_FHC_FHCREG_H_ 57111072Sjake#define _SPARC64_FHC_FHCREG_H_ 58111072Sjake 59111072Sjake#define FHC_NREG (6) 60111072Sjake 61111072Sjake#define FHC_INTERNAL (0) 62111072Sjake#define FHC_IGN (1) 63111072Sjake#define FHC_FANFAIL (2) 64111072Sjake#define FHC_SYSTEM (3) 65111072Sjake#define FHC_UART (4) 66111072Sjake#define FHC_TOD (5) 67111072Sjake 68111072Sjake#define FHC_IMAP 0x0 69111072Sjake#define FHC_ICLR 0x10 70111072Sjake 71143825Smarius#define FHC_ID 0x00000000 /* ID */ 72143825Smarius#define FHC_RCS 0x00000010 /* reset ctrl/status */ 73143825Smarius#define FHC_CTRL 0x00000020 /* control */ 74143825Smarius#define FHC_BSR 0x00000030 /* board status */ 75143825Smarius#define FHC_ECC 0x00000040 /* ECC control */ 76143825Smarius#define FHC_JCTRL 0x000000f0 /* JTAG control */ 77111123Sjake 78143825Smarius#define FHC_CTRL_ICS 0x00100000 /* ignore centerplane sigs */ 79143825Smarius#define FHC_CTRL_FRST 0x00080000 /* fatal error reset enable */ 80143825Smarius#define FHC_CTRL_LFAT 0x00040000 /* AC/DC local error */ 81143825Smarius#define FHC_CTRL_SLINE 0x00010000 /* firmware sync line */ 82143825Smarius#define FHC_CTRL_DCD 0x00008000 /* DC/DC converter disable */ 83143825Smarius#define FHC_CTRL_POFF 0x00004000 /* AC/DC ctlr PLL disable */ 84143825Smarius#define FHC_CTRL_FOFF 0x00002000 /* FHC ctlr PLL disable */ 85143825Smarius#define FHC_CTRL_AOFF 0x00001000 /* cpu a sram low pwr mode */ 86143825Smarius#define FHC_CTRL_BOFF 0x00000800 /* cpu b sram low pwr mode */ 87143825Smarius#define FHC_CTRL_PSOFF 0x00000400 /* disable fhc power supply */ 88143825Smarius#define FHC_CTRL_IXIST 0x00000200 /* fhc notifies clock-board */ 89143825Smarius#define FHC_CTRL_XMSTR 0x00000100 /* xir master enable */ 90143825Smarius#define FHC_CTRL_LLED 0x00000040 /* left led (reversed) */ 91143825Smarius#define FHC_CTRL_MLED 0x00000020 /* middle led */ 92143825Smarius#define FHC_CTRL_RLED 0x00000010 /* right led */ 93143825Smarius#define FHC_CTRL_BPINS 0x00000003 /* spare bidir pins */ 94143825Smarius 95143825Smarius#endif /* !_SPARC64_FHC_FHCREG_H_ */ 96