Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/gpib This driver is incomplete and doens't even comp...



details:   https://anonhg.NetBSD.org/src/rev/70deec445bc5
branches:  trunk
changeset: 933486:70deec445bc5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 25 19:01:15 2020 +0000

description:
This driver is incomplete and doens't even compile, but make it
use CFATTACH_DECL_NEW() anyway.

diffstat:

 sys/dev/gpib/hil_gpib.c |  29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)

diffs (69 lines):

diff -r 6ae981e8fc6a -r 70deec445bc5 sys/dev/gpib/hil_gpib.c
--- a/sys/dev/gpib/hil_gpib.c   Mon May 25 18:29:25 2020 +0000
+++ b/sys/dev/gpib/hil_gpib.c   Mon May 25 19:01:15 2020 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: hil_gpib.c,v 1.12 2012/10/27 17:18:16 chs Exp $        */
+/*     $NetBSD: hil_gpib.c,v 1.13 2020/05/25 19:01:15 thorpej Exp $    */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hil_gpib.c,v 1.12 2012/10/27 17:18:16 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hil_gpib.c,v 1.13 2020/05/25 19:01:15 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -38,17 +38,20 @@
 #define HILF_DELAY     0x10
 };
 
-int     hilmatch(device_t, cfdata_t, void *);
-void    hilattach(device_t, device_t, void *);
+static int     hilmatch(device_t, cfdata_t, void *);
+static void    hilattach(device_t, device_t, void *);
 
-const struct cfattach hil_ca = {
-       sizeof(struct hil_softc), hilmatch, hilattach,
-};
+CFATTACH_DECL_NEW(hil_gpib,
+       sizeof(struct hil_softc),
+       hilmatch,
+       hilattach,
+       NULL,
+       NULL);
 
-void   hilcallback(void *, int);
-void   hilstart(void *);
+static void    hilcallback(void *, int);
+static void    hilstart(void *);
 
-int
+static int
 hilmatch(device_t parent, cfdata_t match, void *aux)
 {
        struct gpib_attach_args *ga = aux;
@@ -63,7 +66,7 @@
        return (1);
 }
 
-void
+static void
 hilattach(device_t parent, device_t self, void *aux)
 {
        struct hil_softc *sc = device_private(self);
@@ -83,7 +86,7 @@
        sc->sc_flags = HILF_ALIVE;
 }
 
-void
+static void
 hilcallback(void *v, int action)
 {
        struct hil_softc *sc = v;
@@ -105,7 +108,7 @@
        }
 }
 
-void
+static void
 hilstart(void *v)
 {
        struct hil_softc *sc = v;



Home | Main Index | Thread Index | Old Index