Source-Changes-HG archive

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

[src/trunk]: src/sys/arch MD rnd.h cleanups. Please let me know if I broke a...



details:   https://anonhg.NetBSD.org/src/rev/d4fd0ccdf701
branches:  trunk
changeset: 807537:d4fd0ccdf701
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 13 21:18:40 2015 +0000

description:
MD rnd.h cleanups.  Please let me know if I broke anything!

diffstat:

 sys/arch/acorn26/ioc/arckbd.c             |   7 +++----
 sys/arch/acorn32/eb7500atx/if_cs.c        |   7 ++-----
 sys/arch/alpha/sableio/fdc_sableio.c      |   5 ++---
 sys/arch/arm/allwinner/awin_eth.c         |   4 ++--
 sys/arch/arm/amlogic/amlogic_rng.c        |   7 ++++---
 sys/arch/arm/at91/at91dbgu.c              |   8 ++++----
 sys/arch/arm/at91/at91usart.c             |   9 ++++-----
 sys/arch/arm/broadcom/bcm2835_rng.c       |   7 ++++---
 sys/arch/arm/broadcom/bcm53xx_rng.c       |   4 ++--
 sys/arch/arm/clps711x/clpscom.c           |   6 +++---
 sys/arch/arm/ep93xx/epcom.c               |   7 +++----
 sys/arch/arm/imx/if_enet.c                |   6 +++---
 sys/arch/arm/imx/imxuart.c                |   7 +++----
 sys/arch/arm/ixp12x0/ixp12x0_com.c        |   7 +++----
 sys/arch/arm/s3c2xx0/sscom.c              |   7 +++----
 sys/arch/arm/sa11x0/sa1111_kbc.c          |   6 +++---
 sys/arch/arm/sa11x0/sa11x0_com.c          |   7 +++----
 sys/arch/arm/samsung/sscom.c              |   7 +++----
 sys/arch/arm/xscale/ixp425_if_npe.c       |   6 +++---
 sys/arch/arm/zynq/zynq_uart.c             |   8 +++-----
 sys/arch/emips/ebus/ace_ebus.c            |   6 +++---
 sys/arch/emips/ebus/flash_ebus.c          |   6 +++---
 sys/arch/emips/ebus/if_le_ebus.c          |   6 +++---
 sys/arch/epoc32/windermere/wmcom.c        |   6 +++---
 sys/arch/evbarm/dev/plcom.c               |   8 +++-----
 sys/arch/evbarm/dev/plcomvar.h            |   5 ++---
 sys/arch/evbarm/smdk2xx0/if_cs_smdk24x0.c |   6 ++----
 sys/arch/evbppc/pmppc/dev/if_cs_mainbus.c |   6 ++----
 sys/arch/hp300/dev/rd.c                   |   6 +++---
 sys/arch/hppa/gsc/harmony.c               |   4 ++--
 sys/arch/macppc/dev/if_gm.c               |   6 +++---
 sys/arch/mips/alchemy/dev/if_aumac.c      |   6 +++---
 sys/arch/mips/atheros/dev/aevar.h         |   4 ++--
 sys/arch/mips/sibyte/dev/sbjcnvar.h       |   5 ++---
 sys/arch/mips/sibyte/dev/sbscn.c          |   7 +++----
 sys/arch/mips/sibyte/dev/sbscnvar.h       |   5 ++---
 sys/arch/next68k/dev/mb8795.c             |   6 +++---
 sys/arch/next68k/dev/mb8795var.h          |   4 ++--
 sys/arch/playstation2/dev/if_smap.c       |  18 ++++--------------
 sys/arch/prep/pnpbus/fdc_pnpbus.c         |   5 ++---
 sys/arch/sgimips/hpc/sqvar.h              |   4 ++--
 sys/arch/shark/ofw/if_cs_ofisa_machdep.c  |   6 +++---
 sys/arch/sun2/dev/if_ec.c                 |   6 +++---
 sys/arch/x68k/dev/fd.c                    |   6 +++---
 sys/arch/xen/xen/if_xennet_xenbus.c       |   6 +++---
 sys/arch/xen/xen/xbd_xenbus.c             |   6 +++---
 46 files changed, 129 insertions(+), 162 deletions(-)

diffs (truncated from 1243 to 300 lines):

diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/acorn26/ioc/arckbd.c
--- a/sys/arch/acorn26/ioc/arckbd.c     Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/acorn26/ioc/arckbd.c     Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arckbd.c,v 1.23 2014/08/10 16:44:32 tls Exp $ */
+/* $NetBSD: arckbd.c,v 1.24 2015/04/13 21:18:40 riastradh Exp $ */
 /*-
  * Copyright (c) 1998, 1999, 2000 Ben Harris
  * All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arckbd.c,v 1.23 2014/08/10 16:44:32 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arckbd.c,v 1.24 2015/04/13 21:18:40 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -70,8 +70,7 @@
 #include "wskbd.h"
 #include "wsmouse.h"
 
-
-#include <sys/rnd.h>
+#include <sys/rndsource.h>
 
 /* #define ARCKBD_DEBUG */
 
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/acorn32/eb7500atx/if_cs.c
--- a/sys/arch/acorn32/eb7500atx/if_cs.c        Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/acorn32/eb7500atx/if_cs.c        Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_cs.c,v 1.9 2012/05/10 10:27:10 skrll Exp $  */
+/*     $NetBSD: if_cs.c,v 1.10 2015/04/13 21:18:40 riastradh Exp $     */
 
 /*
  * Copyright (c) 2004 Christopher Gilbert
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs.c,v 1.9 2012/05/10 10:27:10 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs.c,v 1.10 2015/04/13 21:18:40 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,9 +66,6 @@
 #include <sys/device.h>
 #include <sys/bus.h>
 
-
-#include <sys/rnd.h>
-
 #include <net/if.h>
 #include <net/if_ether.h>
 #include <net/if_media.h>
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/alpha/sableio/fdc_sableio.c
--- a/sys/arch/alpha/sableio/fdc_sableio.c      Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/alpha/sableio/fdc_sableio.c      Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdc_sableio.c,v 1.14 2014/03/29 19:28:25 christos Exp $ */
+/* $NetBSD: fdc_sableio.c,v 1.15 2015/04/13 21:18:40 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -31,14 +31,13 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: fdc_sableio.c,v 1.14 2014/03/29 19:28:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdc_sableio.c,v 1.15 2015/04/13 21:18:40 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/callout.h>
 #include <sys/device.h>
 #include <sys/buf.h>
-#include <sys/rnd.h>
 
 #include <sys/bus.h>
 #include <machine/intr.h>
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/allwinner/awin_eth.c
--- a/sys/arch/arm/allwinner/awin_eth.c Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_eth.c Mon Apr 13 21:18:40 2015 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.8 2015/03/15 13:15:26 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.9 2015/04/13 21:18:40 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -39,7 +39,7 @@
 #include <sys/intr.h>
 #include <sys/ioctl.h>
 #include <sys/mutex.h>
-#include <sys/rnd.h>
+#include <sys/rndsource.h>
 #include <sys/systm.h>
 
 #include <net/if.h>
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/amlogic/amlogic_rng.c
--- a/sys/arch/arm/amlogic/amlogic_rng.c        Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/amlogic/amlogic_rng.c        Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amlogic_rng.c,v 1.2 2015/04/03 14:02:06 jmcneill Exp $ */
+/* $NetBSD: amlogic_rng.c,v 1.3 2015/04/13 21:18:40 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amlogic_rng.c,v 1.2 2015/04/03 14:02:06 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_rng.c,v 1.3 2015/04/13 21:18:40 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -38,7 +38,8 @@
 #include <sys/kernel.h>
 #include <sys/mutex.h>
 #include <sys/callout.h>
-#include <sys/rnd.h>
+#include <sys/rndpool.h>
+#include <sys/rndsource.h>
 
 #include <arm/amlogic/amlogic_reg.h>
 #include <arm/amlogic/amlogic_var.h>
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/at91/at91dbgu.c
--- a/sys/arch/arm/at91/at91dbgu.c      Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/at91/at91dbgu.c      Mon Apr 13 21:18:40 2015 +0000
@@ -1,5 +1,5 @@
-/*     $Id: at91dbgu.c,v 1.13 2014/11/15 19:20:01 christos Exp $       */
-/*     $NetBSD: at91dbgu.c,v 1.13 2014/11/15 19:20:01 christos Exp $ */
+/*     $Id: at91dbgu.c,v 1.14 2015/04/13 21:18:40 riastradh Exp $      */
+/*     $NetBSD: at91dbgu.c,v 1.14 2015/04/13 21:18:40 riastradh Exp $ */
 
 /*
  *
@@ -83,14 +83,14 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at91dbgu.c,v 1.13 2014/11/15 19:20:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91dbgu.c,v 1.14 2015/04/13 21:18:40 riastradh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
 
 #include "rnd.h"
 #ifdef RND_COM
-#include <sys/rnd.h>
+#include <sys/rndsource.h>
 #endif
 
 /*
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/at91/at91usart.c
--- a/sys/arch/arm/at91/at91usart.c     Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/at91/at91usart.c     Mon Apr 13 21:18:40 2015 +0000
@@ -1,5 +1,5 @@
-/*     $Id: at91usart.c,v 1.12 2014/11/15 19:20:01 christos Exp $      */
-/*     $NetBSD: at91usart.c,v 1.12 2014/11/15 19:20:01 christos Exp $ */
+/*     $Id: at91usart.c,v 1.13 2015/04/13 21:18:40 riastradh Exp $     */
+/*     $NetBSD: at91usart.c,v 1.13 2015/04/13 21:18:40 riastradh Exp $ */
 
 /*
  * Copyright (c) 2007 Embedtronics Oy. All rights reserved.
@@ -77,14 +77,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at91usart.c,v 1.12 2014/11/15 19:20:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91usart.c,v 1.13 2015/04/13 21:18:40 riastradh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
 
-#include "rnd.h"
 #ifdef RND_COM
-#include <sys/rnd.h>
+#include <sys/rndsource.h>
 #endif
 
 #ifdef NOTYET
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/broadcom/bcm2835_rng.c
--- a/sys/arch/arm/broadcom/bcm2835_rng.c       Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_rng.c       Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835_rng.c,v 1.10 2014/08/10 16:44:33 tls Exp $ */
+/*     $NetBSD: bcm2835_rng.c,v 1.11 2015/04/13 21:18:40 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,14 +30,15 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_rng.c,v 1.10 2014/08/10 16:44:33 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_rng.c,v 1.11 2015/04/13 21:18:40 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/device.h>
 #include <sys/kernel.h>
 #include <sys/bus.h>
-#include <sys/rnd.h>
+#include <sys/rndpool.h>
+#include <sys/rndsource.h>
 #include <sys/atomic.h>
 #include <sys/intr.h>
 
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/broadcom/bcm53xx_rng.c
--- a/sys/arch/arm/broadcom/bcm53xx_rng.c       Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/broadcom/bcm53xx_rng.c       Mon Apr 13 21:18:40 2015 +0000
@@ -33,14 +33,14 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_rng.c,v 1.7 2014/08/10 16:44:33 tls Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_rng.c,v 1.8 2015/04/13 21:18:40 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
 #include <sys/callout.h>
 #include <sys/device.h>
 #include <sys/intr.h>
-#include <sys/rnd.h>
+#include <sys/rndsource.h>
 #include <sys/systm.h>
 
 #include <arm/broadcom/bcm53xx_reg.h>
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/clps711x/clpscom.c
--- a/sys/arch/arm/clps711x/clpscom.c   Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/clps711x/clpscom.c   Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: clpscom.c,v 1.5 2014/11/15 19:20:01 christos Exp $      */
+/*      $NetBSD: clpscom.c,v 1.6 2015/04/13 21:18:41 riastradh Exp $      */
 /*
  * Copyright (c) 2013 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clpscom.c,v 1.5 2014/11/15 19:20:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clpscom.c,v 1.6 2015/04/13 21:18:41 riastradh Exp $");
 
 #include "rnd.h"
 
@@ -50,7 +50,7 @@
 #include <dev/cons.h>
 
 #ifdef RND_COM
-#include <sys/rnd.h>
+#include <sys/rndsource.h>
 #endif
 
 #include "ioconf.h"
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/ep93xx/epcom.c
--- a/sys/arch/arm/ep93xx/epcom.c       Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/ep93xx/epcom.c       Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: epcom.c,v 1.29 2014/11/15 19:20:01 christos Exp $ */
+/*     $NetBSD: epcom.c,v 1.30 2015/04/13 21:18:41 riastradh Exp $ */
 /*
  * Copyright (c) 1998, 1999, 2001, 2002, 2004 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -73,15 +73,14 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epcom.c,v 1.29 2014/11/15 19:20:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epcom.c,v 1.30 2015/04/13 21:18:41 riastradh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
 #include "epcom.h"
 
-#include "rnd.h"
 #ifdef RND_COM
-#include <sys/rnd.h>
+#include <sys/rndsource.h>
 #endif
 
 /*
diff -r 15eb61cdfb1b -r d4fd0ccdf701 sys/arch/arm/imx/if_enet.c
--- a/sys/arch/arm/imx/if_enet.c        Mon Apr 13 18:32:50 2015 +0000
+++ b/sys/arch/arm/imx/if_enet.c        Mon Apr 13 21:18:40 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_enet.c,v 1.2 2015/03/15 04:12:07 ryo Exp $  */
+/*     $NetBSD: if_enet.c,v 1.3 2015/04/13 21:18:41 riastradh Exp $    */
 
 /*
  * Copyright (c) 2014 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>



Home | Main Index | Thread Index | Old Index