From 5c2106e7d4ea48dbde851e51ae9a14717355a402 Mon Sep 17 00:00:00 2001 From: nyan Date: Thu, 11 May 2000 11:09:50 +0000 Subject: Supported PC-98. --- sys/isa/pnpreg.h | 3 +-- usr.sbin/pnpinfo/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/isa/pnpreg.h b/sys/isa/pnpreg.h index c5324f6..04d6131 100644 --- a/sys/isa/pnpreg.h +++ b/sys/isa/pnpreg.h @@ -48,8 +48,7 @@ #endif /* Static ports to access PnP state machine */ -#if defined(PC98) && defined(_KERNEL) -/* pnp.h is included from pnpinfo.c. */ +#ifdef PC98 #define _PNP_ADDRESS 0x259 #define _PNP_WRITE_DATA 0xa59 #else diff --git a/usr.sbin/pnpinfo/Makefile b/usr.sbin/pnpinfo/Makefile index 6cc8c97..ca49b4b 100644 --- a/usr.sbin/pnpinfo/Makefile +++ b/usr.sbin/pnpinfo/Makefile @@ -6,6 +6,10 @@ SRCS= pnpinfo.c CFLAGS+=-I${.CURDIR}/../../sys MAN8= pnpinfo.8 +.if ${MACHINE} == "pc98" +CFLAGS+= -DPC98 +.endif + .if ${MACHINE_ARCH} == "alpha" LDADD+= -lio .endif -- cgit v1.1