summaryrefslogtreecommitdiffstats
path: root/sys/pc98/include
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-04-03 23:27:11 +0000
committerimp <imp@FreeBSD.org>2005-04-03 23:27:11 +0000
commit8a1e88ee778d86d0ebb0e49433b025e457e0be0f (patch)
treed52fa09dbeddc249098118f61fb2c6b3fb5a39c3 /sys/pc98/include
parent0eef91eae930fc1e84c9508e2421c185003a6559 (diff)
downloadFreeBSD-src-8a1e88ee778d86d0ebb0e49433b025e457e0be0f.zip
FreeBSD-src-8a1e88ee778d86d0ebb0e49433b025e457e0be0f.tar.gz
Move pc98 specific parts to the pc98 specific file.
Diffstat (limited to 'sys/pc98/include')
-rw-r--r--sys/pc98/include/apm_bios.h53
-rw-r--r--sys/pc98/include/md_var.h39
-rw-r--r--sys/pc98/include/pci_cfgreg.h37
3 files changed, 123 insertions, 6 deletions
diff --git a/sys/pc98/include/apm_bios.h b/sys/pc98/include/apm_bios.h
index 742631e..261ae37 100644
--- a/sys/pc98/include/apm_bios.h
+++ b/sys/pc98/include/apm_bios.h
@@ -1,6 +1,55 @@
/*-
- * This file is in the public domain.
+ * Copyright (C) 2005 M. Warner Losh. 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 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 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$
*/
-/* $FreeBSD$ */
+#ifndef _PC98_INCLUDE_APM_BIOS_H_
+#define _PC98_INCLUDE_APM_BIOS_H_
+
+/*
+ * PC98 machines implement APM bios in nearly the same was as i386 machines,
+ * so include the i386 version and note the changes here.
+ */
#include <i386/apm_bios.h>
+
+/*
+ * APM BIOS and interrupt are different on pc98
+ */
+#undef APM_BIOS
+#undef APM_INT
+#define APM_BIOS 0x9a
+#define APM_INT 0x1f
+
+
+/*
+ * PC98 also has different GETPWSTATUS and DRVVERSION calls. I believe that
+ * these only work on newer APM BIOSes, but haven't confirmed that recently
+ */
+#undef APM_GETPWSTATUS
+#undef APM_DRVVERSION
+#define APM_GETPWSTATUS 0x3a
+#define APM_DRVVERSION 0x3e
+
+#endif /* ! _PC98_INCLUDE_APM_BIOS_H_ */
diff --git a/sys/pc98/include/md_var.h b/sys/pc98/include/md_var.h
index 1f674fe..7d0fb72 100644
--- a/sys/pc98/include/md_var.h
+++ b/sys/pc98/include/md_var.h
@@ -1,6 +1,41 @@
/*-
- * This file is in the public domain.
+ * Copyright (C) 2005 M. Warner Losh. 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 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 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$
*/
-/* $FreeBSD$ */
+
+#ifndef _PC98_INCLUDE_MD_VAR_H_
+#define _PC98_INCLUDE_MD_VAR_H_
#include <i386/md_var.h>
+
+/*
+ * PC98 machines are based on Intel CPUs. Some add-in boards offer
+ * different CPUs than came with the processor. These CPUs sometimes
+ * require additional flushing before and/or after DMAs.
+ */
+extern int need_pre_dma_flush;
+extern int need_post_dma_flush;
+
+#endif /* !_PC98_INCLUDE_MD_VAR_H_ */
diff --git a/sys/pc98/include/pci_cfgreg.h b/sys/pc98/include/pci_cfgreg.h
index 9a54be3..dc9207d 100644
--- a/sys/pc98/include/pci_cfgreg.h
+++ b/sys/pc98/include/pci_cfgreg.h
@@ -1,6 +1,39 @@
/*-
- * This file is in the public domain.
+ * Copyright (C) 2005 M. Warner Losh. 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 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 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$
*/
-/* $FreeBSD$ */
+
+#ifndef _PC98_INCLUDE_PCI_CFGREG_H_
+#define _PC98_INCLUDE_PCI_CFGREG_H_
#include <i386/pci_cfgreg.h>
+
+/*
+ * PC98 uses a non-standard CONF2_FORWARD port, so redefine it here.
+ */
+#undef CONF2_FORWARD_PORT
+#define CONF2_FORWARD_PORT 0x0cf9
+
+#endif /* !_PC98_INCLUDE_PCI_CFGREG_H_ */
OpenPOWER on IntegriCloud