Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sun Include "ioconf.h" instead of extern struct cfdr...



details:   https://anonhg.NetBSD.org/src/rev/4d3f8339965c
branches:  trunk
changeset: 747526:4d3f8339965c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Sep 19 07:07:42 2009 +0000

description:
Include "ioconf.h" instead of extern struct cfdriver foo_cd decls.

diffstat:

 sys/dev/sun/bwtwo.c   |  6 +++---
 sys/dev/sun/cgsix.c   |  8 ++++----
 sys/dev/sun/cgthree.c |  8 ++++----
 3 files changed, 11 insertions(+), 11 deletions(-)

diffs (93 lines):

diff -r 731e9c2fe30d -r 4d3f8339965c sys/dev/sun/bwtwo.c
--- a/sys/dev/sun/bwtwo.c       Sat Sep 19 07:06:55 2009 +0000
+++ b/sys/dev/sun/bwtwo.c       Sat Sep 19 07:07:42 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bwtwo.c,v 1.27 2009/09/19 04:52:44 tsutsui Exp $ */
+/*     $NetBSD: bwtwo.c,v 1.28 2009/09/19 07:07:42 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.27 2009/09/19 04:52:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.28 2009/09/19 07:07:42 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -109,7 +109,7 @@
 #include "opt_wsemul.h"
 #endif
 
-extern struct cfdriver bwtwo_cd;
+#include "ioconf.h"
 
 dev_type_open(bwtwoopen);
 dev_type_ioctl(bwtwoioctl);
diff -r 731e9c2fe30d -r 4d3f8339965c sys/dev/sun/cgsix.c
--- a/sys/dev/sun/cgsix.c       Sat Sep 19 07:06:55 2009 +0000
+++ b/sys/dev/sun/cgsix.c       Sat Sep 19 07:07:42 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix.c,v 1.45 2009/08/20 02:49:30 macallan Exp $ */
+/*     $NetBSD: cgsix.c,v 1.46 2009/09/19 07:07:43 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.45 2009/08/20 02:49:30 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.46 2009/09/19 07:07:43 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -116,11 +116,11 @@
 #include <dev/sun/cgsixreg.h>
 #include <dev/sun/cgsixvar.h>
 
+#include "ioconf.h"
+
 static void    cg6_unblank(device_t);
 static void    cg6_blank(struct cgsix_softc *, int);
 
-extern struct cfdriver cgsix_cd;
-
 dev_type_open(cgsixopen);
 dev_type_close(cgsixclose);
 dev_type_ioctl(cgsixioctl);
diff -r 731e9c2fe30d -r 4d3f8339965c sys/dev/sun/cgthree.c
--- a/sys/dev/sun/cgthree.c     Sat Sep 19 07:06:55 2009 +0000
+++ b/sys/dev/sun/cgthree.c     Sat Sep 19 07:07:42 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgthree.c,v 1.24 2009/09/18 16:43:19 tsutsui Exp $ */
+/*     $NetBSD: cgthree.c,v 1.25 2009/09/19 07:07:43 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.24 2009/09/18 16:43:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.25 2009/09/19 07:07:43 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -69,13 +69,13 @@
 #include "opt_wsemul.h"
 #endif
 
+#include "ioconf.h"
+
 static void    cgthreeunblank(device_t);
 static void    cgthreeloadcmap(struct cgthree_softc *, int, int);
 static void    cgthree_set_video(struct cgthree_softc *, int);
 static int     cgthree_get_video(struct cgthree_softc *);
 
-extern struct cfdriver cgthree_cd;
-
 dev_type_open(cgthreeopen);
 dev_type_ioctl(cgthreeioctl);
 dev_type_mmap(cgthreemmap);



Home | Main Index | Thread Index | Old Index