drop #ifdef _KERNEL (these are kernel-only headers)

add some comments for the multiple inclusion protection #endif's
This commit is contained in:
jdolecek 2004-01-28 17:11:48 +00:00
parent 7f9f8e3309
commit 9e77fbccf8
8 changed files with 13 additions and 28 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lptreg.h,v 1.3 2004/01/25 00:28:01 bjh21 Exp $ */
/* $NetBSD: lptreg.h,v 1.4 2004/01/28 17:11:48 jdolecek Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -75,4 +75,4 @@
#define LPS_MASK (LPS_NBSY | LPS_NACK | LPS_OUT | LPS_SEL | LPS_NERR)
#define NOT_READY(ppbus) ((ppbus_rstr(ppbus)^LPS_INVERT)&LPS_MASK)
#endif
#endif /* __DEV_PPBUS_LPTREG_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lptvar.h,v 1.2 2004/01/21 00:33:37 bjh21 Exp $ */
/* $NetBSD: lptvar.h,v 1.3 2004/01/28 17:11:48 jdolecek Exp $ */
#ifndef __DEV_PPBUS_LPTVAR_H
#define __DEV_PPBUS_LPTVAR_H
@ -70,8 +70,6 @@ struct lpt_softc {
#define MAX_SLEEP (hz*5) /* Timeout while waiting for device ready */
#define MAX_SPIN 20 /* Max delay for device ready in usecs */
#ifdef _KERNEL
#ifdef LPT_DEBUG
static volatile int lptdebug = 1;
#ifndef LPT_DPRINTF
@ -96,5 +94,4 @@ static volatile int lptverbose = 1;
#define LPT_VPRINTF(arg)
#endif /* LPT_VERBOSE */
#endif /* _KERNEL */
#endif
#endif /* __DEV_PPBUS_LPTVAR_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ppbus_1284.h,v 1.4 2004/01/25 00:41:02 bjh21 Exp $ */
/* $NetBSD: ppbus_1284.h,v 1.5 2004/01/28 17:11:48 jdolecek Exp $ */
/*-
* Copyright (c) 1997 Nicolas Souchu
@ -110,8 +110,6 @@
#define PPBUS_PERIPHERAL_TRANSFER 13
#define PPBUS_PERIPHERAL_TERMINATION 14
#ifdef _KERNEL
/* Function prototypes */
/* Host functions */
@ -126,6 +124,4 @@ int ppbus_peripheral_terminate(struct device *, int);
int ppbus_peripheral_negotiate(struct device *, int, int);
int byte_peripheral_write(struct device *, char *, int, int *);
#endif /*_KERNEL*/
#endif /* __PPBUS_1284_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ppbus_conf.h,v 1.3 2004/01/25 00:41:02 bjh21 Exp $ */
/* $NetBSD: ppbus_conf.h,v 1.4 2004/01/28 17:11:48 jdolecek Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 Nicolas Souchu
@ -132,4 +132,4 @@ struct ppbus_softc {
PARPORT_REMOVE_HANDLER_T ppbus_remove_handler;
};
#endif
#endif /* __PPBUS_CONF_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ppbus_device.h,v 1.2 2004/01/21 00:33:37 bjh21 Exp $ */
/* $NetBSD: ppbus_device.h,v 1.3 2004/01/28 17:11:48 jdolecek Exp $ */
#ifndef __PPBUS_DEVICE_H
#define __PPBUS_DEVICE_H
@ -48,4 +48,4 @@ struct ppbus_attach_args {
u_int16_t flags;*/
};
#endif
#endif /* __PPBUS_DEVICE_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ppbus_io.h,v 1.3 2004/01/25 00:28:01 bjh21 Exp $ */
/* $NetBSD: ppbus_io.h,v 1.4 2004/01/28 17:11:48 jdolecek Exp $ */
/*-
* Copyright (c) 1999 Nicolas Souchu
@ -55,8 +55,6 @@
#define PPBUS_WFIFO 20
#ifdef _KERNEL
/*
* Set of ppbus i/o routines callable from ppbus device drivers
*/
@ -121,6 +119,4 @@
#define ppbus_wctr(dev,byte) \
ppbus_io((dev), PPBUS_WCTR, NULL, 0, (byte))
#endif /* _KERNEL */
#endif /* __PPBUS_IO_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ppbus_msq.h,v 1.3 2004/01/25 00:28:01 bjh21 Exp $ */
/* $NetBSD: ppbus_msq.h,v 1.4 2004/01/28 17:11:48 jdolecek Exp $ */
/*-
* Copyright (c) 1998 Nicolas Souchu
@ -183,8 +183,6 @@ struct ppbus_xfer {
#define MS_SUBRET(code) { MS_OP_SUBRET, {{ code }}}
#define MS_RET(code) { MS_OP_RET, {{ code }}}
#ifdef _KERNEL
/*
* Function abstraction level
*/
@ -234,6 +232,4 @@ int ppbus_MS_microseq(
int * /* returned value */
);
#endif /* _KERNEL */
#endif /* __PPBUS_MSQ_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ppbus_var.h,v 1.2 2004/01/21 00:33:37 bjh21 Exp $ */
/* $NetBSD: ppbus_var.h,v 1.3 2004/01/28 17:11:48 jdolecek Exp $ */
#ifndef __PPBUS_VAR_H
#define __PPBUS_VAR_H
@ -51,4 +51,4 @@
/* Parallel Port Bus sleep/wakeup queue. */
#define PPBUSPRI (PZERO+8)
#endif
#endif /* __PPBUS_VAR_H */