diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-10-06 19:59:55 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-10-06 19:59:55 +0000 |
| commit | 940da6d729d1676512b39e9339bbbba4aff2a85d (patch) | |
| tree | 7e90b69b547c4f36292b4515acdcd9848de4bc53 /sys/dev | |
| parent | 552983e4db7b780c5865e3f8c509c5f812a3b28e (diff) | |
com(4): Add include guards.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/comreg.h | 7 | ||||
| -rw-r--r-- | sys/dev/ic/comvar.h | 7 | ||||
| -rw-r--r-- | sys/dev/ic/ns16550reg.h | 7 | ||||
| -rw-r--r-- | sys/dev/ic/st16650reg.h | 7 |
4 files changed, 24 insertions, 4 deletions
diff --git a/sys/dev/ic/comreg.h b/sys/dev/ic/comreg.h index 5c2fe9a153b..0a1d73a5022 100644 --- a/sys/dev/ic/comreg.h +++ b/sys/dev/ic/comreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: comreg.h,v 1.27 2020/09/28 11:33:15 jmcneill Exp $ */ +/* $NetBSD: comreg.h,v 1.28 2022/10/06 19:59:55 riastradh Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -31,6 +31,9 @@ * @(#)comreg.h 7.2 (Berkeley) 5/9/91 */ +#ifndef _SYS_DEV_IC_COMREG_H_ +#define _SYS_DEV_IC_COMREG_H_ + #include <dev/ic/ns16550reg.h> #ifdef _KERNEL_OPT @@ -168,3 +171,5 @@ /* XXX ISA-specific. */ #define COM_NPORTS 8 + +#endif /* _SYS_DEV_IC_COMREG_H_ */ diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index 9aeda39c786..ce16e62489a 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: comvar.h,v 1.96 2021/11/12 21:57:13 jmcneill Exp $ */ +/* $NetBSD: comvar.h,v 1.97 2022/10/06 19:59:55 riastradh Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -30,6 +30,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _SYS_DEV_IC_COMVAR_H_ +#define _SYS_DEV_IC_COMVAR_H_ + #include "opt_multiprocessor.h" #include "opt_lockdebug.h" #include "opt_com.h" @@ -230,3 +233,5 @@ bool com_suspend(device_t, const pmf_qual_t *); #define IPL_SERIAL IPL_TTY #define splserial() spltty() #endif + +#endif /* _SYS_DEV_IC_COMVAR_H_ */ diff --git a/sys/dev/ic/ns16550reg.h b/sys/dev/ic/ns16550reg.h index 1fd594ab30c..35dd12cc3dc 100644 --- a/sys/dev/ic/ns16550reg.h +++ b/sys/dev/ic/ns16550reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: ns16550reg.h,v 1.13 2019/01/11 23:10:41 thorpej Exp $ */ +/* $NetBSD: ns16550reg.h,v 1.14 2022/10/06 19:59:55 riastradh Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -31,6 +31,9 @@ * @(#)ns16550.h 7.1 (Berkeley) 5/9/91 */ +#ifndef _SYS_DEV_IC_NS16550REG_H_ +#define _SYS_DEV_IC_NS16550REG_H_ + /* * NS16550 UART registers */ @@ -65,3 +68,5 @@ #define com_tfl 32 /* transmit fifo level (R) (SUNXI) */ #define com_rfl 33 /* receive fifo level (R) (SUNXI) */ #define com_halt 41 /* halt tx (R/W) (SUNXI) */ + +#endif /* _SYS_DEV_IC_NS16550REG_H_ */ diff --git a/sys/dev/ic/st16650reg.h b/sys/dev/ic/st16650reg.h index ee5c3bad5f8..8cb61693a21 100644 --- a/sys/dev/ic/st16650reg.h +++ b/sys/dev/ic/st16650reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: st16650reg.h,v 1.3 2005/12/11 12:21:28 christos Exp $ */ +/* $NetBSD: st16650reg.h,v 1.4 2022/10/06 19:59:55 riastradh Exp $ */ /* * Copyright (c) 1991 The Regents of the University of California. @@ -31,6 +31,9 @@ * @(#)ns16550.h 7.1 (Berkeley) 5/9/91 */ +#ifndef _SYS_DEV_IC_ST16650REG_H_ +#define _SYS_DEV_IC_ST16650REG_H_ + /* * ST16650A UART registers */ @@ -52,3 +55,5 @@ #define com_xoff1 6 /* XOFF 1 character (R/W) */ #define com_scratch 7 /* scratch register (R/W) */ #define com_xoff2 7 /* XOFF 2 character (R/W) */ + +#endif /* _SYS_DEV_IC_ST16650REG_H_ */ |
