aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/ncr.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
commitc447342094276b4d604449bb776063c7b88c4992 (patch)
treeef56d86971063bc4ba98e49e723dab1d7ebf8a56 /sys/pci/ncr.c
parent664a31e4967a61ec61870f45adc2f1400617993e (diff)
downloadsrc-c447342094276b4d604449bb776063c7b88c4992.tar.gz
src-c447342094276b4d604449bb776063c7b88c4992.zip
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.
Notes
Notes: svn path=/head/; revision=55206
Diffstat (limited to 'sys/pci/ncr.c')
-rw-r--r--sys/pci/ncr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 7cc760f56acd..26de939fcc82 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -46,9 +46,9 @@
#define NCR_GETCC_WITHMSG
-#if defined (__FreeBSD__) && defined(KERNEL)
+#if defined (__FreeBSD__) && defined(_KERNEL)
#include "opt_ncr.h"
-#endif /* defined(KERNEL) */
+#endif
/*==========================================================
**
@@ -175,7 +175,7 @@
#include <sys/param.h>
#include <sys/time.h>
-#ifdef KERNEL
+#ifdef _KERNEL
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/buf.h>
@@ -186,7 +186,7 @@
#include <vm/vm.h>
#include <vm/pmap.h>
#include <vm/vm_extern.h>
-#endif /* KERNEL */
+#endif
#include <pci/pcivar.h>
#include <pci/pcireg.h>
@@ -1304,7 +1304,7 @@ struct scripth {
**==========================================================
*/
-#ifdef KERNEL
+#ifdef _KERNEL
static nccb_p ncr_alloc_nccb (ncb_p np, u_long target, u_long lun);
static void ncr_complete (ncb_p np, nccb_p cp);
static int ncr_delta (int * from, int * to);
@@ -1346,7 +1346,7 @@ static void ncr_wakeup (ncb_p np, u_long code);
static const char* ncr_probe (pcici_t tag, pcidi_t type);
static void ncr_attach (pcici_t tag, int unit);
-#endif /* KERNEL */
+#endif /* _KERNEL */
/*==========================================================
**
@@ -1369,7 +1369,7 @@ static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct lcb) * 3
+ (u_long) sizeof (struct tcb) * 2;
-#ifdef KERNEL
+#ifdef _KERNEL
static const int nncr=MAX_UNITS; /* XXX to be replaced by SYSCTL */
static ncb_p ncrp [MAX_UNITS]; /* XXX to be replaced by SYSCTL */
@@ -7198,4 +7198,4 @@ printf ("Sum = %04x\n", sum);
#endif /* NCR_TEKRAM_EEPROM */
/*=========================================================================*/
-#endif /* KERNEL */
+#endif /* _KERNEL */