summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
committerpeter <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
commitd53e4c1d809338e9b317d95bdded2f7f7a986556 (patch)
tree916004bdaa3cf47d2a92effe8c981e7d1ff5ccec /sys/isa
parent15b9bcb121e1f3735a2c98a11afdb52a03301d7e (diff)
downloadFreeBSD-src-d53e4c1d809338e9b317d95bdded2f7f7a986556.zip
FreeBSD-src-d53e4c1d809338e9b317d95bdded2f7f7a986556.tar.gz
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/isavar.h4
-rw-r--r--sys/isa/pnpreg.h2
-rw-r--r--sys/isa/pnpvar.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/isa/isavar.h b/sys/isa/isavar.h
index a8e137c..2403681 100644
--- a/sys/isa/isavar.h
+++ b/sys/isa/isavar.h
@@ -36,7 +36,7 @@ typedef void isa_config_cb(void *arg, struct isa_config *config, int enable);
#include "isa_if.h"
#include <isa/pnpvar.h>
-#ifdef KERNEL
+#ifdef _KERNEL
/*
* ISA devices are partially ordered to ensure that devices which are
@@ -157,6 +157,6 @@ extern void isa_dma_release __P((int chan));
extern int isa_dmastatus __P((int chan));
extern int isa_dmastop __P((int chan));
-#endif /* KERNEL */
+#endif /* _KERNEL */
#endif /* !_ISA_ISAVAR_H_ */
diff --git a/sys/isa/pnpreg.h b/sys/isa/pnpreg.h
index 9c9b6f3..c5324f6 100644
--- a/sys/isa/pnpreg.h
+++ b/sys/isa/pnpreg.h
@@ -48,7 +48,7 @@
#endif
/* Static ports to access PnP state machine */
-#if defined(PC98) && defined(KERNEL)
+#if defined(PC98) && defined(_KERNEL)
/* pnp.h is included from pnpinfo.c. */
#define _PNP_ADDRESS 0x259
#define _PNP_WRITE_DATA 0xa59
diff --git a/sys/isa/pnpvar.h b/sys/isa/pnpvar.h
index 5f1a6dc..0e7dee9 100644
--- a/sys/isa/pnpvar.h
+++ b/sys/isa/pnpvar.h
@@ -29,7 +29,7 @@
#ifndef _ISA_PNPVAR_H_
#define _ISA_PNPVAR_H_
-#ifdef KERNEL
+#ifdef _KERNEL
#if 0
void pnp_write(int d, u_char r); /* used by Luigi's sound driver */
@@ -55,6 +55,6 @@ u_char pnp_read(int d); /* currently unused, but who knows... */
char *pnp_eisaformat(u_int32_t id);
void pnp_parse_resources(device_t dev, u_char *resources, int len);
-#endif /* KERNEL */
+#endif /* _KERNEL */
#endif /* !_ISA_PNPVAR_H_ */
OpenPOWER on IntegriCloud