Source-Changes-HG archive

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

[src/trunk]: src/sys include "ioconf.h" to get the 'void <driver>attach(int c...



details:   https://anonhg.NetBSD.org/src/rev/cda788b9aaf2
branches:  trunk
changeset: 810177:cda788b9aaf2
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 20 14:40:16 2015 +0000

description:
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

diffstat:

 sys/arch/amiga/dev/view.c          |   7 +++----
 sys/arch/atari/dev/view.c          |   8 ++++----
 sys/arch/i386/isa/cmos.c           |   7 ++++---
 sys/arch/luna68k/dev/siotty.c      |   5 ++---
 sys/arch/mac68k/dev/grf_compat.c   |   7 ++++---
 sys/arch/mac68k/dev/ite_compat.c   |   8 ++++----
 sys/arch/x68k/dev/opmbell.c        |   8 ++++----
 sys/arch/xen/xen/xenevt.c          |   7 ++++---
 sys/coda/coda_psdev.c              |   8 ++++----
 sys/dev/ata/ata_raid.c             |   7 +++----
 sys/dev/bio.c                      |   8 ++++----
 sys/dev/bluetooth/bcsp.c           |   5 ++---
 sys/dev/bluetooth/btuart.c         |   5 ++---
 sys/dev/ccd.c                      |   7 ++++---
 sys/dev/cgd.c                      |   8 ++++----
 sys/dev/dm/device-mapper.c         |   4 ++--
 sys/dev/dmover/dmover_io.c         |   8 ++++----
 sys/dev/dmover/swdmover.c          |   8 ++++----
 sys/dev/filemon/filemon.c          |   5 ++---
 sys/dev/fss.c                      |   6 +++---
 sys/dev/gpio/gpiosim.c             |   4 ++--
 sys/dev/hpc/biconsdev.c            |   7 ++++---
 sys/dev/ir/irframe_tty.c           |   8 ++++----
 sys/dev/isa/weasel_isa.c           |   8 ++++----
 sys/dev/iscsi/iscsi_main.c         |   3 +--
 sys/dev/kttcp.c                    |   8 ++++----
 sys/dev/lockstat.c                 |   7 ++++---
 sys/dev/md.c                       |   7 +++----
 sys/dev/nand/nandemulator.c        |   7 ++++---
 sys/dev/raidframe/rf_netbsdkintf.c |   7 ++++---
 sys/dev/rndpseudo.c                |   9 +++++----
 sys/dev/sequencer.c                |   7 ++++---
 sys/dev/tprof/tprof.c              |   8 ++++----
 sys/dev/vnd.c                      |   8 ++++----
 sys/dev/wscons/wsmux.c             |   8 ++++----
 sys/dev/wsfont/wsfontdev.c         |   6 +++---
 sys/dist/pf/net/if_pflog.c         |   7 ++++---
 sys/dist/pf/net/if_pfsync.c        |   7 ++++---
 sys/dist/pf/net/pf_ioctl.c         |   7 ++++---
 sys/net/agr/if_agr.c               |   6 +++---
 sys/net/if_bridge.c                |   8 ++++----
 sys/net/if_etherip.c               |   8 ++++----
 sys/net/if_faith.c                 |   8 ++++----
 sys/net/if_gif.c                   |   8 ++++----
 sys/net/if_gre.c                   |   9 +++++----
 sys/net/if_mpls.c                  |   8 ++++----
 sys/net/if_pppoe.c                 |   6 +++---
 sys/net/if_spppsubr.c              |  11 ++---------
 sys/net/if_stf.c                   |   8 ++++----
 sys/net/if_tap.c                   |   8 ++++----
 sys/net/if_tun.c                   |   7 ++++---
 sys/net/if_vlan.c                  |   8 ++++----
 sys/net/npf/npf.c                  |   8 ++++----
 sys/netinet/accf_data.c            |   9 ++++-----
 sys/netinet/accf_http.c            |   9 ++++-----
 sys/netinet/ip_carp.c              |   7 ++++---
 sys/netsmb/smb_dev.c               |   7 ++++---
 sys/opencrypto/cryptodev.c         |   8 ++++----
 sys/opencrypto/cryptosoft.c        |   7 ++++---
 59 files changed, 214 insertions(+), 213 deletions(-)

diffs (truncated from 1971 to 300 lines):

diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/amiga/dev/view.c
--- a/sys/arch/amiga/dev/view.c Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/amiga/dev/view.c Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: view.c,v 1.31 2014/07/25 08:10:31 dholland Exp $ */
+/*     $NetBSD: view.c,v 1.32 2015/08/20 14:40:16 christos Exp $ */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -38,7 +38,7 @@
  * a interface to graphics. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: view.c,v 1.31 2014/07/25 08:10:31 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: view.c,v 1.32 2015/08/20 14:40:16 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -55,6 +55,7 @@
 #include <amiga/dev/viewvar.h>
 
 #include "view.h"
+#include "ioconf.h"
 
 static void view_display(struct view_softc *);
 static void view_remove(struct view_softc *);
@@ -63,8 +64,6 @@
 int view_get_colormap(struct view_softc *, colormap_t *);
 int view_set_colormap(struct view_softc *, colormap_t *);
 
-void viewattach(int);
-
 struct view_softc views[NVIEW];
 int view_inited;                       /* also checked in ite_cc.c */
 
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/atari/dev/view.c
--- a/sys/arch/atari/dev/view.c Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/atari/dev/view.c Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: view.c,v 1.34 2014/07/25 08:10:32 dholland Exp $       */
+/*     $NetBSD: view.c,v 1.35 2015/08/20 14:40:16 christos Exp $       */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -38,7 +38,7 @@
  * a interface to graphics. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: view.c,v 1.34 2014/07/25 08:10:32 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: view.c,v 1.35 2015/08/20 14:40:16 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -53,7 +53,9 @@
 #include <atari/dev/grfabs_reg.h>
 #include <atari/dev/viewioctl.h>
 #include <atari/dev/viewvar.h>
+
 #include "view.h"
+#include "ioconf.h"
 
 static void view_display(struct view_softc *);
 static void view_remove(struct view_softc *);
@@ -93,8 +95,6 @@
 /* 
  *  functions for probeing.
  */
-void   viewattach(int);
-
 void
 viewattach(int cnt)
 {
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/i386/isa/cmos.c
--- a/sys/arch/i386/isa/cmos.c  Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/i386/isa/cmos.c  Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmos.c,v 1.11 2014/07/25 08:10:33 dholland Exp $       */
+/*     $NetBSD: cmos.c,v 1.12 2015/08/20 14:40:16 christos Exp $       */
 
 /*
  * Copyright (C) 2003 JONE System Co., Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cmos.c,v 1.11 2014/07/25 08:10:33 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cmos.c,v 1.12 2015/08/20 14:40:16 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -79,6 +79,8 @@
 #include <dev/ic/mc146818reg.h>
 #include <i386/isa/nvram.h>
 
+#include "ioconf.h"
+
 #define        CMOS_SUM        32
 #define        CMOS_BIOSSPEC   34      /* start of BIOS-specific configuration data */
 
@@ -87,7 +89,6 @@
 
 #define        CMOS_SIZE       NVRAM_BIOSSPEC
 
-void cmosattach(int);
 dev_type_open(cmos_open);
 dev_type_read(cmos_read);
 dev_type_write(cmos_write);
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/luna68k/dev/siotty.c
--- a/sys/arch/luna68k/dev/siotty.c     Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/luna68k/dev/siotty.c     Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siotty.c,v 1.42 2014/07/25 08:10:33 dholland Exp $ */
+/* $NetBSD: siotty.c,v 1.43 2015/08/20 14:40:17 christos Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.42 2014/07/25 08:10:33 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.43 2015/08/20 14:40:17 christos Exp $");
 
 #include "opt_ddb.h"
 
@@ -693,7 +693,6 @@
 
 /*---------------------  console interface ----------------------*/
 
-void syscnattach(int);
 int  syscngetc(dev_t);
 void syscnputc(dev_t, int);
 
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/mac68k/dev/grf_compat.c
--- a/sys/arch/mac68k/dev/grf_compat.c  Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/mac68k/dev/grf_compat.c  Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_compat.c,v 1.27 2014/12/14 23:48:58 chs Exp $      */
+/*     $NetBSD: grf_compat.c,v 1.28 2015/08/20 14:40:17 christos Exp $ */
 
 /*
  * Copyright (C) 1999 Scott Reynolds
@@ -34,7 +34,7 @@
 #include "opt_grf_compat.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_compat.c,v 1.27 2014/12/14 23:48:58 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_compat.c,v 1.28 2015/08/20 14:40:17 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -57,6 +57,8 @@
 
 #include <uvm/uvm_extern.h>
 
+#include "ioconf.h"
+
 dev_type_open(grfopen);
 dev_type_close(grfclose);
 dev_type_ioctl(grfioctl);
@@ -79,7 +81,6 @@
 
 void   grf_scinit(struct grf_softc *, const char *, int);
 void   grf_init(int);
-void   grfattach(int);
 int    grfmap(dev_t, struct macfb_softc *, void **, struct proc *);
 int    grfunmap(dev_t, struct macfb_softc *, void *, struct proc *);
 
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/mac68k/dev/ite_compat.c
--- a/sys/arch/mac68k/dev/ite_compat.c  Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/mac68k/dev/ite_compat.c  Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite_compat.c,v 1.12 2014/07/25 08:10:33 dholland Exp $ */
+/*     $NetBSD: ite_compat.c,v 1.13 2015/08/20 14:40:17 christos Exp $ */
 
 /*
  * Copyright (C) 2000 Scott Reynolds
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ite_compat.c,v 1.12 2014/07/25 08:10:33 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ite_compat.c,v 1.13 2015/08/20 14:40:17 christos Exp $");
 
 #include "ite.h"
 #include "wsdisplay.h"
@@ -53,6 +53,8 @@
 #include <machine/cpu.h>
 #include <machine/iteioctl.h>
 
+#include "ioconf.h"
+
 dev_type_open(iteopen);
 dev_type_close(iteclose);
 dev_type_read(iteread);
@@ -81,8 +83,6 @@
 extern const struct cdevsw wsdisplay_cdevsw;
 #endif
 
-void           iteattach(int);
-
 static int     ite_initted = 0;
 static int     ite_bell_freq = 1880;
 static int     ite_bell_length = 10;
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/x68k/dev/opmbell.c
--- a/sys/arch/x68k/dev/opmbell.c       Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/x68k/dev/opmbell.c       Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: opmbell.c,v 1.25 2014/07/25 08:10:35 dholland Exp $    */
+/*     $NetBSD: opmbell.c,v 1.26 2015/08/20 14:40:17 christos Exp $    */
 
 /*
  * Copyright (c) 1995 MINOURA Makoto, Takuya Harakawa.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: opmbell.c,v 1.25 2014/07/25 08:10:35 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: opmbell.c,v 1.26 2015/08/20 14:40:17 christos Exp $");
 
 #include "bell.h"
 #if NBELL > 0
@@ -65,6 +65,8 @@
 
 #include <x68k/dev/opmvar.h>
 
+#include "ioconfig.h"
+
 /* In opm.c. */
 void opm_set_volume(int, int);
 void opm_set_key(int, int);
@@ -110,8 +112,6 @@
 int opm_bell_setup(struct bell_info *);
 int bellmstohz(int);
 
-void bellattach(int);
-
 dev_type_open(bellopen);
 dev_type_close(bellclose);
 dev_type_ioctl(bellioctl);
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/arch/xen/xen/xenevt.c
--- a/sys/arch/xen/xen/xenevt.c Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/arch/xen/xen/xenevt.c Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xenevt.c,v 1.43 2015/05/30 19:14:46 joerg Exp $      */
+/*      $NetBSD: xenevt.c,v 1.44 2015/08/20 14:40:17 christos Exp $      */
 
 /*
  * Copyright (c) 2005 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.43 2015/05/30 19:14:46 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenevt.c,v 1.44 2015/08/20 14:40:17 christos Exp $");
 
 #include "opt_xen.h"
 #include <sys/param.h>
@@ -52,6 +52,8 @@
 #include <xen/xenio3.h>
 #include <xen/xen.h>
 
+#include "ioconf.h"
+
 /*
  * Interface between the event channel and userland.
  * Each process with a xenevt device instance open can regiter events it
@@ -62,7 +64,6 @@
  * Processes get a device instance by opening a cloning device.
  */
 
-void           xenevtattach(int);
 static int     xenevt_fread(struct file *, off_t *, struct uio *,
     kauth_cred_t, int);
 static int     xenevt_fwrite(struct file *, off_t *, struct uio *,
diff -r 7864a5fe8b19 -r cda788b9aaf2 sys/coda/coda_psdev.c
--- a/sys/coda/coda_psdev.c     Thu Aug 20 14:27:15 2015 +0000
+++ b/sys/coda/coda_psdev.c     Thu Aug 20 14:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_psdev.c,v 1.55 2015/05/06 15:57:08 hannken Exp $  */
+/*     $NetBSD: coda_psdev.c,v 1.56 2015/08/20 14:40:17 christos Exp $ */
 
 /*
  *
@@ -54,7 +54,7 @@
 /* These routines are the device entry points for Venus. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.55 2015/05/06 15:57:08 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.56 2015/08/20 14:40:17 christos Exp $");
 
 extern int coda_nc_initialized;    /* Set if cache has been initialized */
 
@@ -77,6 +77,8 @@
 #include <coda/coda_namecache.h>
 #include <coda/coda_io.h>
 
+#include "ioconf.h"
+
 #define CTL_C



Home | Main Index | Thread Index | Old Index