aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhcreg.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-02-18 09:01:01 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-02-18 09:01:01 +0000
commit012d9539bfa8cc29c835e76f8703cb940b76e4a8 (patch)
tree6092668c14ab501895f3a06d20d96d9c3d33875c /sys/sparc64/fhc/fhcreg.h
parent0bbd84e2d01e5e51fa57b8bbbfae6f1d1bdec74c (diff)
Add drivers for the central and fhc busses found in enterprise class
UltraSPARCs, and an eeprom attachment for fhc, which allows the date to be set properly on these machines. Central is a wierd bus which seems to only ever have 1 fhc attached to it. FHC (FireHose Controller) is another wierd bus with various things on it depending where its attached. The fhc attached to central has eeprom and zs, and the fhcs which attach directly to nexus have simm-status, environment and other nodes, none of which I'll probably ever have documentation for. Thanks to Ade Lovett for providing access to an 8 cpu e4500.
Notes
Notes: svn path=/head/; revision=111072
Diffstat (limited to 'sys/sparc64/fhc/fhcreg.h')
-rw-r--r--sys/sparc64/fhc/fhcreg.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys/sparc64/fhc/fhcreg.h b/sys/sparc64/fhc/fhcreg.h
new file mode 100644
index 000000000000..f8801e2e7d5c
--- /dev/null
+++ b/sys/sparc64/fhc/fhcreg.h
@@ -0,0 +1,44 @@
+/*-
+ * Copyright (c) 2003 Jake Burkholder.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef _SPARC64_FHC_FHCREG_H_
+#define _SPARC64_FHC_FHCREG_H_
+
+#define FHC_NREG (6)
+
+#define FHC_INTERNAL (0)
+#define FHC_IGN (1)
+#define FHC_FANFAIL (2)
+#define FHC_SYSTEM (3)
+#define FHC_UART (4)
+#define FHC_TOD (5)
+
+#define FHC_IMAP 0x0
+#define FHC_ICLR 0x10
+
+#endif