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

This commit is contained in:
augustss 1999-08-28 21:42:35 +00:00
parent 5d7288c24d
commit 036a9c6974
10 changed files with 28 additions and 28 deletions

View File

@ -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 @@ ugenwrite(dev, uio, flag)
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 @@ ugen_activate(self, act)
int
ugen_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
struct ugen_softc *sc = (struct ugen_softc *)self;

View File

@ -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 @@ USB_ATTACH(uhid)
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 @@ uhid_activate(self, act)
int
uhid_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
struct uhid_softc *sc = (struct uhid_softc *)self;

View File

@ -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 @@ uhub_disconnect_port(up)
int
uhub_activate(self, act)
struct device *self;
bdevice *self;
enum devact act;
{
switch (act) {
@ -507,7 +507,7 @@ uhub_activate(self, act)
*/
int
uhub_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
struct uhub_softc *sc = (struct uhub_softc *)self;

View File

@ -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 @@ ukbd_enable(v, on)
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 @@ ukbd_activate(self, act)
int
ukbd_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
struct ukbd_softc *sc = (struct ukbd_softc *)self;

View File

@ -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 @@ USB_ATTACH(ulpt)
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 @@ ulpt_activate(self, act)
int
ulpt_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
struct ulpt_softc *sc = (struct ulpt_softc *)self;

View File

@ -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 @@ umodem_set_line_coding(sc, state)
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 @@ umodem_activate(self, act)
int
umodem_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
struct umodem_softc *sc = (struct umodem_softc *)self;

View File

@ -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 @@ USB_ATTACH(ums)
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 @@ ums_activate(self, act)
int
ums_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
struct ums_softc *sc = (struct ums_softc *)self;

View File

@ -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 @@ usb_needs_explore(bus)
int
usb_activate(self, act)
struct device *self;
bdevice *self;
enum devact act;
{
panic("usb_activate\n");
@ -457,7 +457,7 @@ usb_activate(self, act)
int
usb_detach(self, flags)
struct device *self;
bdevice *self;
int flags;
{
panic("usb_detach\n");

View File

@ -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 @@ usbd_probe_and_attach(parent, dev, port, addr)
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__)

View File

@ -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 @@ struct usbd_device {
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 {