summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-03-16 20:44:19 +0000
committerimp <imp@FreeBSD.org>2005-03-16 20:44:19 +0000
commit0794b3a70d6fa3543d0dbd38d097f9b09330a357 (patch)
tree176e377cc29856e0a983af22f43c04881ffcd5b8
parentc0c5a03a41a96c6a9b75b0814e5b44555f340e11 (diff)
downloadFreeBSD-src-0794b3a70d6fa3543d0dbd38d097f9b09330a357.zip
FreeBSD-src-0794b3a70d6fa3543d0dbd38d097f9b09330a357.tar.gz
Define IRQ_NPX for the irq used for the npx. Define macro for a full
reset of of npx, as appropriate for the platform.
-rw-r--r--sys/i386/isa/isa.h11
-rw-r--r--sys/pc98/cbus/cbus.h11
-rw-r--r--sys/pc98/pc98/pc98.h11
3 files changed, 33 insertions, 0 deletions
diff --git a/sys/i386/isa/isa.h b/sys/i386/isa/isa.h
index a9d7abb..1173628 100644
--- a/sys/i386/isa/isa.h
+++ b/sys/i386/isa/isa.h
@@ -107,4 +107,15 @@
#define RAM_SIZE (RAM_END - RAM_BEGIN)
#endif /* !RAM_BEGIN */
+/*
+ * IRQs
+ */
+#define IRQ_NPX 13
+
+/*
+ * Npx MD defines
+ */
+/* full reset on some systems, NOP on others */
+#define npx_full_reset() outb(IO_NPX + 1, 0)
+
#endif /* !_I386_ISA_ISA_H_ */
diff --git a/sys/pc98/cbus/cbus.h b/sys/pc98/cbus/cbus.h
index 9788cb0..627c0e9 100644
--- a/sys/pc98/cbus/cbus.h
+++ b/sys/pc98/cbus/cbus.h
@@ -106,6 +106,17 @@
#define RAM_SIZE (RAM_END - RAM_BEGIN)
#endif /* !RAM_BEGIN */
+/*
+ * IRQs
+ */
+#define IRQ_NPX 8
+
+/*
+ * Npx MD defines
+ */
+/* full reset of npx: not needed on pc98 */
+#define npx_full_reset()
+
#define M_NEC_PC98 0x0001
#define M_EPSON_PC98 0x0002
#define M_NOT_H98 0x0010
diff --git a/sys/pc98/pc98/pc98.h b/sys/pc98/pc98/pc98.h
index 9788cb0..627c0e9 100644
--- a/sys/pc98/pc98/pc98.h
+++ b/sys/pc98/pc98/pc98.h
@@ -106,6 +106,17 @@
#define RAM_SIZE (RAM_END - RAM_BEGIN)
#endif /* !RAM_BEGIN */
+/*
+ * IRQs
+ */
+#define IRQ_NPX 8
+
+/*
+ * Npx MD defines
+ */
+/* full reset of npx: not needed on pc98 */
+#define npx_full_reset()
+
#define M_NEC_PC98 0x0001
#define M_EPSON_PC98 0x0002
#define M_NOT_H98 0x0010
OpenPOWER on IntegriCloud