summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/npx.h
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2005-05-12 12:47:41 +0000
committernyan <nyan@FreeBSD.org>2005-05-12 12:47:41 +0000
commit8f8dbdc2da58f049fb51366a3e331262cc8c4fe5 (patch)
tree478dc16086d3f36619e384c45a83b005bf957823 /sys/i386/include/npx.h
parenteb01a496438696a5b93ff647df5b9236900d5afe (diff)
downloadFreeBSD-src-8f8dbdc2da58f049fb51366a3e331262cc8c4fe5.zip
FreeBSD-src-8f8dbdc2da58f049fb51366a3e331262cc8c4fe5.tar.gz
- Move the NPX_DEBUG option to options.{i386,pc98} and use opt_npx.h.
- Move npx related defines to {i386,pc98}/include/npx.h to remove #include {isa,cbus}.h.
Diffstat (limited to 'sys/i386/include/npx.h')
-rw-r--r--sys/i386/include/npx.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/i386/include/npx.h b/sys/i386/include/npx.h
index 484061e..894b06d 100644
--- a/sys/i386/include/npx.h
+++ b/sys/i386/include/npx.h
@@ -137,6 +137,15 @@ union savefpu {
#define __INITIAL_MXCSR__ 0x1F80
#ifdef _KERNEL
+
+#define IO_NPX 0x0F0 /* Numeric Coprocessor */
+#define IO_NPXSIZE 16 /* 80387/80487 NPX registers */
+
+#define IRQ_NPX 13
+
+/* full reset on some systems, NOP on others */
+#define npx_full_reset() outb(IO_NPX + 1, 0)
+
int npxdna(void);
void npxdrop(void);
void npxexit(struct thread *td);
OpenPOWER on IntegriCloud