Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Include <sys/rndsource.h> where it is actually used.
details: https://anonhg.NetBSD.org/src/rev/da10bde4fe3f
branches: trunk
changeset: 337452:da10bde4fe3f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 14 20:32:35 2015 +0000
description:
Include <sys/rndsource.h> where it is actually used.
I had removed <sys/rnd.h> from files that didn't mention anything of
the rnd(9) API. But they included other files which assumed
<sys/rnd.h> had already been included.
diffstat:
sys/arch/arm/at91/at91dbguvar.h | 6 +++++-
sys/arch/arm/at91/at91usartvar.h | 5 ++++-
sys/arch/arm/ep93xx/epcomvar.h | 6 +++++-
sys/arch/arm/s3c2xx0/sscom_var.h | 5 ++++-
sys/arch/arm/samsung/sscom_var.h | 5 ++++-
sys/arch/hp300/dev/rdvar.h | 3 ++-
sys/arch/xen/include/xbdvar.h | 4 +++-
sys/dev/ic/mb86950var.h | 4 +++-
sys/dev/marvell/if_gfevar.h | 4 +++-
sys/dev/mca/edvar.h | 3 ++-
sys/dev/pci/hifn7751var.h | 4 +++-
sys/dev/pci/if_bgevar.h | 3 ++-
sys/dev/pci/if_casvar.h | 3 ++-
sys/dev/pci/if_vtevar.h | 4 +++-
sys/dev/scsipi/cdvar.h | 4 +++-
sys/dev/usb/if_auereg.h | 4 +++-
sys/dev/usb/if_axenreg.h | 4 +++-
sys/dev/usb/if_axereg.h | 3 ++-
sys/dev/usb/if_kuereg.h | 4 +++-
sys/dev/usb/if_smscvar.h | 4 +++-
sys/dev/usb/if_udavreg.h | 4 +++-
sys/dev/usb/if_urlreg.h | 4 +++-
22 files changed, 68 insertions(+), 22 deletions(-)
diffs (truncated from 398 to 300 lines):
diff -r cbdb3861f019 -r da10bde4fe3f sys/arch/arm/at91/at91dbguvar.h
--- a/sys/arch/arm/at91/at91dbguvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/arch/arm/at91/at91dbguvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: at91dbguvar.h,v 1.5 2012/02/02 19:42:57 tls Exp $ */
+/* $NetBSD: at91dbguvar.h,v 1.6 2015/04/14 20:32:35 riastradh Exp $ */
/*-
* Copyright (c) 2007 Embedtronics Oy
@@ -31,6 +31,10 @@
#include <sys/tty.h>
+#ifdef RND_COM
+#include <sys/rndsource.h>
+#endif
+
/* Hardware flag masks */
#define COM_HW_NOIEN 0x01
#define COM_HW_DEV_OK 0x20
diff -r cbdb3861f019 -r da10bde4fe3f sys/arch/arm/at91/at91usartvar.h
--- a/sys/arch/arm/at91/at91usartvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/arch/arm/at91/at91usartvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: at91usartvar.h,v 1.6 2012/11/12 18:00:36 skrll Exp $ */
+/* $NetBSD: at91usartvar.h,v 1.7 2015/04/14 20:32:35 riastradh Exp $ */
/*-
* Copyright (c) 2007 Embedtronics Oy. All rights reserved.
@@ -31,6 +31,9 @@
#include <sys/tty.h>
#include <arm/at91/at91pdcvar.h>
+#ifdef RND_COM
+#include <sys/rndsource.h>
+#endif
/* Hardware flag masks */
#define COM_HW_NOIEN 0x01
diff -r cbdb3861f019 -r da10bde4fe3f sys/arch/arm/ep93xx/epcomvar.h
--- a/sys/arch/arm/ep93xx/epcomvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/arch/arm/ep93xx/epcomvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epcomvar.h,v 1.7 2012/10/27 17:17:37 chs Exp $ */
+/* $NetBSD: epcomvar.h,v 1.8 2015/04/14 20:32:35 riastradh Exp $ */
/*-
* Copyright (c) 2004 Jesse Off
*
@@ -28,6 +28,10 @@
#ifndef _EPCOMVAR_H_
#define _EPCOMVAR_H_
+#ifdef RND_COM
+#include <sys/rndsource.h>
+#endif
+
/* Hardware flag masks */
#define COM_HW_NOIEN 0x01
#define COM_HW_DEV_OK 0x20
diff -r cbdb3861f019 -r da10bde4fe3f sys/arch/arm/s3c2xx0/sscom_var.h
--- a/sys/arch/arm/s3c2xx0/sscom_var.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/arch/arm/s3c2xx0/sscom_var.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sscom_var.h,v 1.13 2014/03/14 21:40:48 matt Exp $ */
+/* $NetBSD: sscom_var.h,v 1.14 2015/04/14 20:32:35 riastradh Exp $ */
/*
* Copyright (c) 2002, 2003 Fujitsu Component Limited
@@ -76,6 +76,9 @@
#include <sys/termios.h>
#include <sys/callout.h>
#include <sys/bus.h>
+#ifdef RND_COM
+#include <sys/rndsource.h>
+#endif
#ifdef SSCOM_S3C2410
#include <arm/s3c2xx0/s3c2410reg.h>
diff -r cbdb3861f019 -r da10bde4fe3f sys/arch/arm/samsung/sscom_var.h
--- a/sys/arch/arm/samsung/sscom_var.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/arch/arm/samsung/sscom_var.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sscom_var.h,v 1.3 2014/04/16 21:28:51 reinoud Exp $ */
+/* $NetBSD: sscom_var.h,v 1.4 2015/04/14 20:32:35 riastradh Exp $ */
/*
* Copyright (c) 2002, 2003 Fujitsu Component Limited
@@ -76,6 +76,9 @@
#include <sys/termios.h>
#include <sys/callout.h>
#include <sys/bus.h>
+#ifdef RND_COM
+#include <sys/rndsource.h>
+#endif
#include <arm/samsung/sscom_reg.h>
diff -r cbdb3861f019 -r da10bde4fe3f sys/arch/hp300/dev/rdvar.h
--- a/sys/arch/hp300/dev/rdvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/arch/hp300/dev/rdvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rdvar.h,v 1.22 2012/02/02 19:42:59 tls Exp $ */
+/* $NetBSD: rdvar.h,v 1.23 2015/04/14 20:32:35 riastradh Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,6 +39,7 @@
*/
#include <sys/callout.h>
+#include <sys/rndsource.h>
struct rdidentinfo {
short ri_hwid; /* 2 byte HW id */
diff -r cbdb3861f019 -r da10bde4fe3f sys/arch/xen/include/xbdvar.h
--- a/sys/arch/xen/include/xbdvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/arch/xen/include/xbdvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xbdvar.h,v 1.15 2014/03/20 06:48:54 skrll Exp $ */
+/* $NetBSD: xbdvar.h,v 1.16 2015/04/14 20:32:35 riastradh Exp $ */
/*
*
@@ -30,6 +30,8 @@
#ifndef _XEN_XBDVAR_H_
#define _XEN_XBDVAR_H_
+#include <sys/rndsource.h>
+
struct xbd_softc {
device_t sc_dev; /* base device glue */
struct dk_softc sc_dksc; /* generic disk interface */
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/ic/mb86950var.h
--- a/sys/dev/ic/mb86950var.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/ic/mb86950var.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mb86950var.h,v 1.8 2012/10/27 17:18:21 chs Exp $ */
+/* $NetBSD: mb86950var.h,v 1.9 2015/04/14 20:32:35 riastradh Exp $ */
/*
* Copyright (c) 1995 Mika Kortelainen
@@ -30,6 +30,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/rndsource.h>
+
/*
* Adapted from if_qnreg.h for the amiga port of NetBSD by Dave J. Barnes, 2004.
*/
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/marvell/if_gfevar.h
--- a/sys/dev/marvell/if_gfevar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/marvell/if_gfevar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gfevar.h,v 1.12 2012/02/02 19:43:04 tls Exp $ */
+/* $NetBSD: if_gfevar.h,v 1.13 2015/04/14 20:32:36 riastradh Exp $ */
/*
* Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@@ -39,6 +39,8 @@
#ifndef _IF_GFEVAR_H_
#define _IF_GFEVAR_H_
+#include <sys/rndsource.h>
+
#define GE_RXDESC_MEMSIZE (1 * PAGE_SIZE)
#define GE_RXDESC_MAX 64
#define GE_RXBUF_SIZE 2048
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/mca/edvar.h
--- a/sys/dev/mca/edvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/mca/edvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: edvar.h,v 1.17 2014/03/20 06:48:54 skrll Exp $ */
+/* $NetBSD: edvar.h,v 1.18 2015/04/14 20:32:36 riastradh Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,6 +30,7 @@
*/
#include <sys/mutex.h>
+#include <sys/rndsource.h>
struct edc_mca_softc;
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/pci/hifn7751var.h
--- a/sys/dev/pci/hifn7751var.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/pci/hifn7751var.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hifn7751var.h,v 1.11 2014/01/03 16:09:22 pgoyette Exp $ */
+/* $NetBSD: hifn7751var.h,v 1.12 2015/04/14 20:32:36 riastradh Exp $ */
/* $OpenBSD: hifn7751var.h,v 1.18 2000/06/02 22:36:45 deraadt Exp $ */
/*
@@ -45,6 +45,8 @@
#ifdef _KERNEL
+#include <sys/rndsource.h>
+
/*
* Some configurable values for the driver
*/
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/pci/if_bgevar.h
--- a/sys/dev/pci/if_bgevar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/pci/if_bgevar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bgevar.h,v 1.17 2013/10/31 04:26:40 msaitoh Exp $ */
+/* $NetBSD: if_bgevar.h,v 1.18 2015/04/14 20:32:36 riastradh Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2001
@@ -67,6 +67,7 @@
#define _DEV_PCI_IF_BGEVAR_H_
#include <sys/bus.h>
+#include <sys/rndsource.h>
#include <net/if_ether.h>
#include <dev/pci/pcivar.h>
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/pci/if_casvar.h
--- a/sys/dev/pci/if_casvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/pci/if_casvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_casvar.h,v 1.4 2012/02/02 19:43:05 tls Exp $ */
+/* $NetBSD: if_casvar.h,v 1.5 2015/04/14 20:32:36 riastradh Exp $ */
/* $OpenBSD: if_casvar.h,v 1.6 2009/06/13 12:18:58 kettenis Exp $ */
/*
@@ -36,6 +36,7 @@
#include <sys/queue.h>
#include <sys/callout.h>
+#include <sys/rndsource.h>
/*
* Misc. definitions for Sun Cassini ethernet controllers.
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/pci/if_vtevar.h
--- a/sys/dev/pci/if_vtevar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/pci/if_vtevar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vtevar.h,v 1.3 2012/02/02 19:43:05 tls Exp $ */
+/* $NetBSD: if_vtevar.h,v 1.4 2015/04/14 20:32:36 riastradh Exp $ */
/*-
* Copyright (c) 2010, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -32,6 +32,8 @@
#ifndef _IF_VTEVAR_H
#define _IF_VTEVAR_H
+#include <sys/rndsource.h>
+
#define VTE_TX_RING_CNT 64
#define VTE_TX_RING_ALIGN 16
/*
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/scsipi/cdvar.h
--- a/sys/dev/scsipi/cdvar.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/scsipi/cdvar.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdvar.h,v 1.31 2012/02/02 19:43:06 tls Exp $ */
+/* $NetBSD: cdvar.h,v 1.32 2015/04/14 20:32:36 riastradh Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer. All rights reserved.
@@ -24,6 +24,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/rndsource.h>
+
#define CDRETRIES 4
struct cd_softc {
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/usb/if_auereg.h
--- a/sys/dev/usb/if_auereg.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/usb/if_auereg.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_auereg.h,v 1.25 2012/02/02 19:43:07 tls Exp $ */
+/* $NetBSD: if_auereg.h,v 1.26 2015/04/14 20:32:36 riastradh Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul%ee.columbia.edu@localhost>. All rights reserved.
@@ -47,6 +47,8 @@
* the RX case, the data includes an optional RX status word.
*/
+#include <sys/rndsource.h>
+
#define AUE_UR_READREG 0xF0
#define AUE_UR_WRITEREG 0xF1
diff -r cbdb3861f019 -r da10bde4fe3f sys/dev/usb/if_axenreg.h
--- a/sys/dev/usb/if_axenreg.h Tue Apr 14 19:41:38 2015 +0000
+++ b/sys/dev/usb/if_axenreg.h Tue Apr 14 20:32:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axenreg.h,v 1.1 2013/10/26 09:16:20 nonaka Exp $ */
+/* $NetBSD: if_axenreg.h,v 1.2 2015/04/14 20:32:36 riastradh Exp $ */
/* $OpenBSD: if_axenreg.h,v 1.1 2013/10/07 05:37:41 yuo Exp $ */
/*
Home |
Main Index |
Thread Index |
Old Index