Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic com(4): Add include guards.



details:   https://anonhg.NetBSD.org/src/rev/bea5e8b819c5
branches:  trunk
changeset: 371760:bea5e8b819c5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Oct 06 19:59:55 2022 +0000

description:
com(4): Add include guards.

diffstat:

 sys/dev/ic/comreg.h     |  7 ++++++-
 sys/dev/ic/comvar.h     |  7 ++++++-
 sys/dev/ic/ns16550reg.h |  7 ++++++-
 sys/dev/ic/st16650reg.h |  7 ++++++-
 4 files changed, 24 insertions(+), 4 deletions(-)

diffs (100 lines):

diff -r 14bd5f9817c2 -r bea5e8b819c5 sys/dev/ic/comreg.h
--- a/sys/dev/ic/comreg.h       Thu Oct 06 19:59:35 2022 +0000
+++ b/sys/dev/ic/comreg.h       Thu Oct 06 19:59:55 2022 +0000
@@ -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 -r 14bd5f9817c2 -r bea5e8b819c5 sys/dev/ic/comvar.h
--- a/sys/dev/ic/comvar.h       Thu Oct 06 19:59:35 2022 +0000
+++ b/sys/dev/ic/comvar.h       Thu Oct 06 19:59:55 2022 +0000
@@ -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 @@
 #define        IPL_SERIAL      IPL_TTY
 #define        splserial()     spltty()
 #endif
+
+#endif /* _SYS_DEV_IC_COMVAR_H_ */
diff -r 14bd5f9817c2 -r bea5e8b819c5 sys/dev/ic/ns16550reg.h
--- a/sys/dev/ic/ns16550reg.h   Thu Oct 06 19:59:35 2022 +0000
+++ b/sys/dev/ic/ns16550reg.h   Thu Oct 06 19:59:55 2022 +0000
@@ -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 -r 14bd5f9817c2 -r bea5e8b819c5 sys/dev/ic/st16650reg.h
--- a/sys/dev/ic/st16650reg.h   Thu Oct 06 19:59:35 2022 +0000
+++ b/sys/dev/ic/st16650reg.h   Thu Oct 06 19:59:55 2022 +0000
@@ -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_ */



Home | Main Index | Thread Index | Old Index