summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1999-04-18 14:30:55 +0000
committerkato <kato@FreeBSD.org>1999-04-18 14:30:55 +0000
commit3da450ec1058be924cb926d380b849d4b11f28c7 (patch)
tree59ce34b5431eb5921901a28417e0a2c7500904a5 /sys/i386
parent4dc249e48efff17b891e85a3827e91412d90e189 (diff)
downloadFreeBSD-src-3da450ec1058be924cb926d380b849d4b11f28c7.zip
FreeBSD-src-3da450ec1058be924cb926d380b849d4b11f28c7.tar.gz
Added PC98 code.
Submitted by: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/legacy.c13
-rw-r--r--sys/i386/i386/nexus.c13
2 files changed, 24 insertions, 2 deletions
diff --git a/sys/i386/i386/legacy.c b/sys/i386/i386/legacy.c
index 7df4387..dab0e65 100644
--- a/sys/i386/i386/legacy.c
+++ b/sys/i386/i386/legacy.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: nexus.c,v 1.1 1999/04/16 21:22:14 peter Exp $
*/
/*
@@ -63,7 +63,11 @@
#include <machine/mpapic.h>
#endif
+#ifdef PC98
+#include <pc98/pc98/pc98.h>
+#else
#include <i386/isa/isa.h>
+#endif
#include <i386/isa/icu.h>
#include <i386/isa/intr_machdep.h>
@@ -194,6 +198,12 @@ nexus_probe(device_t dev)
panic("nexus_probe eisa");
#endif
#if NISA > 0
+#ifdef PC98
+ /* Add an ISA bus directly */
+ child = device_add_child(dev, "isa", 0, 0);
+ if (child == 0)
+ panic("nexus_probe isa");
+#else
/* Add an ISA bus directly if pci bus is not present */
if (pci_cfgopen() == 0) {
child = device_add_child(dev, "isa", 0, 0);
@@ -201,6 +211,7 @@ nexus_probe(device_t dev)
panic("nexus_probe isa");
}
#endif
+#endif
return 0;
}
diff --git a/sys/i386/i386/nexus.c b/sys/i386/i386/nexus.c
index 7df4387..dab0e65 100644
--- a/sys/i386/i386/nexus.c
+++ b/sys/i386/i386/nexus.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: nexus.c,v 1.1 1999/04/16 21:22:14 peter Exp $
*/
/*
@@ -63,7 +63,11 @@
#include <machine/mpapic.h>
#endif
+#ifdef PC98
+#include <pc98/pc98/pc98.h>
+#else
#include <i386/isa/isa.h>
+#endif
#include <i386/isa/icu.h>
#include <i386/isa/intr_machdep.h>
@@ -194,6 +198,12 @@ nexus_probe(device_t dev)
panic("nexus_probe eisa");
#endif
#if NISA > 0
+#ifdef PC98
+ /* Add an ISA bus directly */
+ child = device_add_child(dev, "isa", 0, 0);
+ if (child == 0)
+ panic("nexus_probe isa");
+#else
/* Add an ISA bus directly if pci bus is not present */
if (pci_cfgopen() == 0) {
child = device_add_child(dev, "isa", 0, 0);
@@ -201,6 +211,7 @@ nexus_probe(device_t dev)
panic("nexus_probe isa");
}
#endif
+#endif
return 0;
}
OpenPOWER on IntegriCloud