diff options
author | kato <kato@FreeBSD.org> | 1999-04-18 14:30:55 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1999-04-18 14:30:55 +0000 |
commit | 3da450ec1058be924cb926d380b849d4b11f28c7 (patch) | |
tree | 59ce34b5431eb5921901a28417e0a2c7500904a5 /sys/amd64 | |
parent | 4dc249e48efff17b891e85a3827e91412d90e189 (diff) | |
download | FreeBSD-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/amd64')
-rw-r--r-- | sys/amd64/amd64/legacy.c | 13 | ||||
-rw-r--r-- | sys/amd64/amd64/nexus.c | 13 |
2 files changed, 24 insertions, 2 deletions
diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c index 7df4387..dab0e65 100644 --- a/sys/amd64/amd64/legacy.c +++ b/sys/amd64/amd64/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/amd64/amd64/nexus.c b/sys/amd64/amd64/nexus.c index 7df4387..dab0e65 100644 --- a/sys/amd64/amd64/nexus.c +++ b/sys/amd64/amd64/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; } |