summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/localbus
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-09 14:57:27 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-09 14:57:27 +0000
commit742d43747326c808a6f441af721d78525f69f4a8 (patch)
treedf270ec266f214aeb803b1ee29decdc03b1da0aa /sys/arch/sgi/localbus
parentac8a30a6ca44a9d5f639c96c1c8fb2cf08ca1677 (diff)
Big cleanup. Removed some unused obsolete stuff and fixed copyrights
on some files. Arcbios support is now in, thus detects memorysize and cpu clock frequency.
Diffstat (limited to 'sys/arch/sgi/localbus')
-rw-r--r--sys/arch/sgi/localbus/crimebus.h40
-rw-r--r--sys/arch/sgi/localbus/macebus.h12
2 files changed, 52 insertions, 0 deletions
diff --git a/sys/arch/sgi/localbus/crimebus.h b/sys/arch/sgi/localbus/crimebus.h
index ca4fabd0167..23cb9894bab 100644
--- a/sys/arch/sgi/localbus/crimebus.h
+++ b/sys/arch/sgi/localbus/crimebus.h
@@ -48,6 +48,46 @@
#define CRIME_INT_SOFT 0x0020
#define CRIME_INT_HARD 0x0028
+/*
+ * CRIME_INT_STAT and CRIME_INT_MASK mapping.
+ */
+#define CRIME_INT_VIDEO_IN_1 0x00000001 /* Video in 1 */
+#define CRIME_INT_VIDEO_IN_2 0x00000002 /* Video in 2 */
+#define CRIME_INT_VIDEO_OUT 0x00000004 /* Video out */
+#define CRIME_INT_MACE_ETHER 0x00000008 /* Mace ethernet NIC */
+#define CRIME_INT_SUPER_IO 0x00000010 /* Super I/O sub interrupt */
+#define CRIME_INT_SUB_MISC 0x00000020 /* Misc ??? */
+#define CRIME_INT_SUB_AUDIO 0x00000040 /* Audio sub interrupt */
+#define CRIME_INT_PCI_BRIDGE 0x00000080 /* PCI bridge errors */
+#define CRIME_INT_PCI_SCSI_0 0x00000100 /* AIC SCSI controller 0 */
+#define CRIME_INT_PCI_SCSI_1 0x00000200 /* AIC SCSI controller 1 */
+#define CRIME_INT_PCI_SLOT_0 0x00000400 /* PCI expansion slot 0 */
+#define CRIME_INT_PCI_SLOT_1 0x00000800 /* PCI expansion slot 1 */
+#define CRIME_INT_PCI_SLOT_2 0x00001000 /* PCI expansion slot 2 */
+#define CRIME_INT_PCI_SHARE_0 0x00002000 /* PCI shared 0 */
+#define CRIME_INT_PCI_SHARE_1 0x00004000 /* PCI shared 1 */
+#define CRIME_INT_PCI_SHARE_2 0x00008000 /* PCI shared 2 */
+#define CRIME_INT_GBE_0 0x00010000 /* GBE0 (E) */
+#define CRIME_INT_GBE_1 0x00020000 /* GBE1 (E) */
+#define CRIME_INT_GBE_2 0x00040000 /* GBE2 (E) */
+#define CRIME_INT_GBE_3 0x00080000 /* GBE3 (E) */
+#define CRIME_INT_CPU_ERR 0x00100000 /* CPU Errors */
+#define CRIME_INT_MEM_ERR 0x00200000 /* MEMORY Errors */
+#define CRIME_INT_RE_EDGE_EMPTY 0x00400000 /* RE */
+#define CRIME_INT_RE_EDGE_FULL 0x00800000 /* RE */
+#define CRIME_INT_RE_EDGE_IDLE 0x01000000 /* RE */
+#define CRIME_INT_RE_LEVL_EMPTY 0x02000000 /* RE */
+#define CRIME_INT_RE_LEVL_FULL 0x04000000 /* RE */
+#define CRIME_INT_RE_LEVL_IDLE 0x08000000 /* RE */
+#define CRIME_INT_SOFT_0 0x10000000 /* ??? */
+#define CRIME_INT_SOFT_1 0x20000000 /* ??? */
+#define CRIME_INT_SOFT_2 0x40000000 /* ??? */
+#define CRIME_INT_VICE 0x80000000 /* ??? */
+
+
+/*
+ * Watchdog?
+ */
#define CRIME_KICK_DOG 0x0030
#define CRIME_TIMER 0x0038
diff --git a/sys/arch/sgi/localbus/macebus.h b/sys/arch/sgi/localbus/macebus.h
index d5a3438ebc3..e3675f3e11b 100644
--- a/sys/arch/sgi/localbus/macebus.h
+++ b/sys/arch/sgi/localbus/macebus.h
@@ -91,6 +91,18 @@
#define MACE_ISA_MISC_RLED_OFF 0x0010 /* Turns off RED LED */
#define MACE_ISA_MISC_GLED_OFF 0x0020 /* Turns off GREEN LED */
+/* MACE_ISA_INT_* definitions */
+#define MACE_ISA_INT_AUDIO 0x000000ff /* Audio ints */
+#define MACE_ISA_INT_RTC 0x00000100 /* RTC */
+#define MACE_ISA_INT_KBD 0x00000200 /* Keyboard */
+#define MACE_ISA_INT_KBD_POLL 0x00000400 /* Keyboard polled */
+#define MACE_ISA_INT_MOUSE 0x00000800 /* Mouse */
+#define MACE_ISA_INT_MOUSE_POLL 0x00001000 /* Mouse polled */
+#define MACE_ISA_INT_TIMER 0x0000e000 /* Timer/counter compare */
+#define MACE_ISA_INT_PARALLEL 0x000f0000 /* Parallel port */
+#define MACE_ISA_INT_SERIAL_1 0x03f00000 /* Serial port 1 */
+#define MACE_ISA_INT_SERIAL_2 0xfc000000 /* Serial port 2 */
+
/* ISA Periferials */
#define MACE_ISA_EPP_OFFS (MACE_ISAX_OFFS+0x00000000)