Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add header guards and necessary includes.
details: https://anonhg.NetBSD.org/src/rev/982d1220dbf0
branches: trunk
changeset: 337365:982d1220dbf0
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Apr 13 15:43:43 2015 +0000
description:
Add header guards and necessary includes.
diffstat:
sys/dev/pci/ubsec.c | 6 ++++--
sys/dev/pci/ubsecreg.h | 7 ++++++-
sys/dev/pci/ubsecvar.h | 10 +++++++++-
3 files changed, 19 insertions(+), 4 deletions(-)
diffs (80 lines):
diff -r f3799918a430 -r 982d1220dbf0 sys/dev/pci/ubsec.c
--- a/sys/dev/pci/ubsec.c Mon Apr 13 15:39:19 2015 +0000
+++ b/sys/dev/pci/ubsec.c Mon Apr 13 15:43:43 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ubsec.c,v 1.41 2014/08/10 16:44:36 tls Exp $ */
+/* $NetBSD: ubsec.c,v 1.42 2015/04/13 15:43:43 riastradh Exp $ */
/* $FreeBSD: src/sys/dev/ubsec/ubsec.c,v 1.6.2.6 2003/01/23 21:06:43 sam Exp $ */
/* $OpenBSD: ubsec.c,v 1.143 2009/03/27 13:31:30 reyk Exp$ */
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ubsec.c,v 1.41 2014/08/10 16:44:36 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ubsec.c,v 1.42 2015/04/13 15:43:43 riastradh Exp $");
#undef UBSEC_DEBUG
@@ -69,6 +69,8 @@
#else
#include <sys/cprng.h>
#include <sys/md5.h>
+ #include <sys/rndpool.h>
+ #include <sys/rndsource.h>
#endif
#include <sys/sha1.h>
diff -r f3799918a430 -r 982d1220dbf0 sys/dev/pci/ubsecreg.h
--- a/sys/dev/pci/ubsecreg.h Mon Apr 13 15:39:19 2015 +0000
+++ b/sys/dev/pci/ubsecreg.h Mon Apr 13 15:43:43 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ubsecreg.h,v 1.4 2014/04/19 12:29:24 bad Exp $ */
+/* $NetBSD: ubsecreg.h,v 1.5 2015/04/13 15:43:43 riastradh Exp $ */
/* $OpenBSD: ubsecreg.h,v 1.29 2009/03/25 12:17:30 reyk Exp $ */
/*
@@ -32,6 +32,9 @@
*
*/
+#ifndef _DEV_PCI_UBSECREG_H
+#define _DEV_PCI_UBSECREG_H
+
/*
* Register definitions for 5601 BlueSteel Networks Ubiquitous Broadband
* Security "uBSec" chip. Definitions from revision 2.8 of the product
@@ -251,3 +254,5 @@
u_int8_t rpr_buf[5 * 1024 / 8]; /* parameters: */
/* p, q, dp, dq, pinv */
};
+
+#endif /* _DEV_PCI_UBSECREG_H */
diff -r f3799918a430 -r 982d1220dbf0 sys/dev/pci/ubsecvar.h
--- a/sys/dev/pci/ubsecvar.h Mon Apr 13 15:39:19 2015 +0000
+++ b/sys/dev/pci/ubsecvar.h Mon Apr 13 15:43:43 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ubsecvar.h,v 1.9 2014/04/19 12:29:24 bad Exp $ */
+/* $NetBSD: ubsecvar.h,v 1.10 2015/04/13 15:43:43 riastradh Exp $ */
/* $OpenBSD: ubsecvar.h,v 1.38 2009/03/27 13:31:30 reyk Exp $ */
/*
@@ -32,6 +32,12 @@
*
*/
+#ifndef _DEV_PCI_UBSECVAR_H
+#define _DEV_PCI_UBSECVAR_H
+
+#include <sys/types.h>
+#include <sys/rndsource.h>
+
/* Maximum queue length */
#ifndef UBS_MAX_NQUEUE
#define UBS_MAX_NQUEUE 60
@@ -240,3 +246,5 @@
u_int32_t hst_modexp; /* MOD EXP requests */
u_int32_t hst_modexpcrt; /* MOD EXP CRT requests */
};
+
+#endif /* _DEV_PCI_UBSECVAR_H */
Home |
Main Index |
Thread Index |
Old Index