Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Change some 'struct device' to 'bdevice'. From ...



details:   https://anonhg.NetBSD.org/src/rev/978d6a17d491
branches:  trunk
changeset: 475876:978d6a17d491
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Aug 28 21:42:35 1999 +0000

description:
Change some 'struct device' to 'bdevice'.  From FreeBSD.

diffstat:

 sys/dev/usb/ugen.c     |  6 +++---
 sys/dev/usb/uhid.c     |  6 +++---
 sys/dev/usb/uhub.c     |  6 +++---
 sys/dev/usb/ukbd.c     |  6 +++---
 sys/dev/usb/ulpt.c     |  6 +++---
 sys/dev/usb/umodem.c   |  6 +++---
 sys/dev/usb/ums.c      |  6 +++---
 sys/dev/usb/usb.c      |  6 +++---
 sys/dev/usb/usb_subr.c |  4 ++--
 sys/dev/usb/usbdivar.h |  4 ++--
 10 files changed, 28 insertions(+), 28 deletions(-)

diffs (252 lines):

diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/ugen.c
--- a/sys/dev/usb/ugen.c        Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/ugen.c        Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ugen.c,v 1.19 1999/08/28 10:01:59 augustss Exp $       */
+/*     $NetBSD: ugen.c,v 1.20 1999/08/28 21:42:35 augustss Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -586,7 +586,7 @@
 
 int
 ugen_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        struct ugen_softc *sc = (struct ugen_softc *)self;
@@ -605,7 +605,7 @@
 
 int
 ugen_detach(self, flags)
-       struct device  *self;
+       bdevice *self;
        int flags;
 {
        struct ugen_softc *sc = (struct ugen_softc *)self;
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/uhid.c
--- a/sys/dev/usb/uhid.c        Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/uhid.c        Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhid.c,v 1.21 1999/08/23 22:55:14 augustss Exp $       */
+/*     $NetBSD: uhid.c,v 1.22 1999/08/28 21:42:35 augustss Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -239,7 +239,7 @@
 
 int
 uhid_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        struct uhid_softc *sc = (struct uhid_softc *)self;
@@ -258,7 +258,7 @@
 
 int
 uhid_detach(self, flags)
-       struct device *self;
+       bdevice *self;
        int flags;
 {
        struct uhid_softc *sc = (struct uhid_softc *)self;
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c        Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/uhub.c        Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhub.c,v 1.23 1999/08/23 22:55:14 augustss Exp $       */
+/*     $NetBSD: uhub.c,v 1.24 1999/08/28 21:42:35 augustss Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -487,7 +487,7 @@
 
 int
 uhub_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        switch (act) {
@@ -507,7 +507,7 @@
  */
 int
 uhub_detach(self, flags)
-       struct device *self;
+       bdevice *self;
        int flags;
 {
        struct uhub_softc *sc = (struct uhub_softc *)self;
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/ukbd.c
--- a/sys/dev/usb/ukbd.c        Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/ukbd.c        Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ukbd.c,v 1.40 1999/08/23 22:55:14 augustss Exp $        */
+/*      $NetBSD: ukbd.c,v 1.41 1999/08/28 21:42:35 augustss Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -390,7 +390,7 @@
 
 int
 ukbd_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        struct ukbd_softc *sc = (struct ukbd_softc *)self;
@@ -409,7 +409,7 @@
 
 int
 ukbd_detach(self, flags)
-       struct device  *self;
+       bdevice *self;
        int flags;
 {
        struct ukbd_softc *sc = (struct ukbd_softc *)self;
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/ulpt.c
--- a/sys/dev/usb/ulpt.c        Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/ulpt.c        Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ulpt.c,v 1.17 1999/08/23 22:55:14 augustss Exp $       */
+/*     $NetBSD: ulpt.c,v 1.18 1999/08/28 21:42:35 augustss Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -221,7 +221,7 @@
 
 int
 ulpt_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        struct ulpt_softc *sc = (struct ulpt_softc *)self;
@@ -240,7 +240,7 @@
 
 int
 ulpt_detach(self, flags)
-       struct device  *self;
+       bdevice *self;
        int flags;
 {
        struct ulpt_softc *sc = (struct ulpt_softc *)self;
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/umodem.c
--- a/sys/dev/usb/umodem.c      Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/umodem.c      Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umodem.c,v 1.10 1999/08/22 20:12:39 augustss Exp $     */
+/*     $NetBSD: umodem.c,v 1.11 1999/08/28 21:42:35 augustss Exp $     */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -995,7 +995,7 @@
 
 int
 umodem_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        struct umodem_softc *sc = (struct umodem_softc *)self;
@@ -1014,7 +1014,7 @@
 
 int
 umodem_detach(self, flags)
-       struct device *self;
+       bdevice *self;
        int flags;
 {
        struct umodem_softc *sc = (struct umodem_softc *)self;
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/ums.c
--- a/sys/dev/usb/ums.c Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/ums.c Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ums.c,v 1.28 1999/08/23 22:55:14 augustss Exp $        */
+/*     $NetBSD: ums.c,v 1.29 1999/08/28 21:42:35 augustss Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -297,7 +297,7 @@
 
 int
 ums_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        struct ums_softc *sc = (struct ums_softc *)self;
@@ -316,7 +316,7 @@
 
 int
 ums_detach(self, flags)
-       struct device  *self;
+       bdevice *self;
        int flags;
 {
        struct ums_softc *sc = (struct ums_softc *)self;
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/usb.c Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.c,v 1.17 1999/08/17 16:06:21 augustss Exp $        */
+/*     $NetBSD: usb.c,v 1.18 1999/08/28 21:42:35 augustss Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -448,7 +448,7 @@
 
 int
 usb_activate(self, act)
-       struct device *self;
+       bdevice *self;
        enum devact act;
 {
        panic("usb_activate\n");
@@ -457,7 +457,7 @@
 
 int
 usb_detach(self, flags)
-       struct device  *self;
+       bdevice *self;
        int flags;
 {
        panic("usb_detach\n");
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c    Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/usb_subr.c    Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_subr.c,v 1.40 1999/08/22 20:12:39 augustss Exp $   */
+/*     $NetBSD: usb_subr.c,v 1.41 1999/08/28 21:42:35 augustss Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -733,7 +733,7 @@
        struct usb_attach_arg uaa;
        usb_device_descriptor_t *dd = &dev->ddesc;
        int r, found, i, confi, nifaces;
-       struct device *dv;
+       bdevice *dv;
        usbd_interface_handle ifaces[256]; /* 256 is the absolute max */
 
 #if defined(__FreeBSD__)
diff -r eb3c1f2d15d1 -r 978d6a17d491 sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h    Sat Aug 28 16:49:49 1999 +0000
+++ b/sys/dev/usb/usbdivar.h    Sat Aug 28 21:42:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdivar.h,v 1.25 1999/08/22 20:12:40 augustss Exp $   */
+/*     $NetBSD: usbdivar.h,v 1.26 1999/08/28 21:42:35 augustss Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -111,7 +111,7 @@
        usb_config_descriptor_t *cdesc; /* full config descr */
        struct usbd_quirks     *quirks;
        struct usbd_hub        *hub; /* only if this is a hub */
-       struct device         **subdevs;        /* sub-devices, 0 terminated */
+       bdevice               **subdevs;        /* sub-devices, 0 terminated */
 };
 
 struct usbd_interface {



Home | Main Index | Thread Index | Old Index