summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/spicreg.h
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>2000-12-11 19:41:48 +0000
committernsayer <nsayer@FreeBSD.org>2000-12-11 19:41:48 +0000
commit86b705b83b56a996243970cf50cb5f4aa8e2edf3 (patch)
tree935ffa4b0ed6aa8a5512fb130c96b2ca08c3f761 /sys/i386/isa/spicreg.h
parent5f9e9b2d9d0e8cd0873e100cb221e09f6ada8e38 (diff)
downloadFreeBSD-src-86b705b83b56a996243970cf50cb5f4aa8e2edf3.zip
FreeBSD-src-86b705b83b56a996243970cf50cb5f4aa8e2edf3.tar.gz
Add the spic driver, which is a simple first attempt at providing access
to the jog dial device.
Diffstat (limited to 'sys/i386/isa/spicreg.h')
-rw-r--r--sys/i386/isa/spicreg.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys/i386/isa/spicreg.h b/sys/i386/isa/spicreg.h
new file mode 100644
index 0000000..fff8b3c
--- /dev/null
+++ b/sys/i386/isa/spicreg.h
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) 2000 Nick Sayer
+ * 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$
+ *
+ */
+
+#define CDEV_MAJOR 160
+
+/*
+ * Find the PCI device that holds the G10 register needed to map in the SPIC
+ */
+#define PIIX4_BUS 0
+#define PIIX4_SLOT 7
+#define PIIX4_FUNC 3
+#define PIIX4_DEVID 0x71138086
+
+#define G10A (0x64)
+#define G10L (G10A + 2)
+
+#define SPIC_IRQ_PORT 0x8034
+#define SPIC_IRQ_SHIFT 22
OpenPOWER on IntegriCloud