the 'dying' flag.
-/* $OpenBSD: uark.c,v 1.19 2013/11/15 08:25:31 pirofti Exp $ */
+/* $OpenBSD: uark.c,v 1.20 2014/07/12 20:26:33 mpi Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
{ USB_VENDOR_ARKMICRO, USB_PRODUCT_ARKMICRO_ARK3116 }
};
-int uark_match(struct device *, void *, void *);
-void uark_attach(struct device *, struct device *, void *);
-int uark_detach(struct device *, int);
-int uark_activate(struct device *, int);
-
-struct cfdriver uark_cd = {
- NULL, "uark", DV_DULL
-};
-
-const struct cfattach uark_ca = {
- sizeof(struct uark_softc),
- uark_match,
- uark_attach,
- uark_detach,
- uark_activate,
+int uark_match(struct device *, void *, void *);
+void uark_attach(struct device *, struct device *, void *);
+int uark_detach(struct device *, int);
+
+struct cfdriver uark_cd = {
+ NULL, "uark", DV_DULL
+};
+
+const struct cfattach uark_ca = {
+ sizeof(struct uark_softc), uark_match, uark_attach, uark_detach
};
int
return (rv);
}
-int
-uark_activate(struct device *self, int act)
-{
- struct uark_softc *sc = (struct uark_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
void
uark_set(void *vsc, int portno, int reg, int onoff)
{
-/* $OpenBSD: uberry.c,v 1.21 2013/04/15 09:23:02 mglocker Exp $ */
+/* $OpenBSD: uberry.c,v 1.22 2014/07/12 20:26:33 mpi Exp $ */
/*-
* Copyright (c) 2006 Theo de Raadt <deraadt@openbsd.org>
{ USB_VENDOR_RIM, USB_PRODUCT_RIM_PEARL }
};
-int uberry_match(struct device *, void *, void *);
-void uberry_attach(struct device *, struct device *, void *);
-int uberry_detach(struct device *, int);
-int uberry_activate(struct device *, int);
+int uberry_match(struct device *, void *, void *);
+void uberry_attach(struct device *, struct device *, void *);
+int uberry_detach(struct device *, int);
void uberry_pearlmode(struct uberry_softc *);
void uberry_charge(struct uberry_softc *);
-struct cfdriver uberry_cd = {
- NULL, "uberry", DV_DULL
-};
+struct cfdriver uberry_cd = {
+ NULL, "uberry", DV_DULL
+};
-const struct cfattach uberry_ca = {
- sizeof(struct uberry_softc),
- uberry_match,
- uberry_attach,
- uberry_detach,
- uberry_activate,
+const struct cfattach uberry_ca = {
+ sizeof(struct uberry_softc), uberry_match, uberry_attach, uberry_detach
};
int
return 0;
}
-int
-uberry_activate(struct device *self, int act)
-{
- struct uberry_softc *sc = (struct uberry_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return 0;
-}
-
void
uberry_pearlmode(struct uberry_softc *sc)
{
-/* $OpenBSD: ubsa.c,v 1.62 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: ubsa.c,v 1.63 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: ubsa.c,v 1.5 2002/11/25 00:51:33 fvdl Exp $ */
/*-
* Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>.
{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_AC8700 },
};
-int ubsa_match(struct device *, void *, void *);
-void ubsa_attach(struct device *, struct device *, void *);
-int ubsa_detach(struct device *, int);
-int ubsa_activate(struct device *, int);
-
-struct cfdriver ubsa_cd = {
- NULL, "ubsa", DV_DULL
-};
-
-const struct cfattach ubsa_ca = {
- sizeof(struct ubsa_softc),
- ubsa_match,
- ubsa_attach,
- ubsa_detach,
- ubsa_activate,
+int ubsa_match(struct device *, void *, void *);
+void ubsa_attach(struct device *, struct device *, void *);
+int ubsa_detach(struct device *, int);
+
+struct cfdriver ubsa_cd = {
+ NULL, "ubsa", DV_DULL
+};
+
+const struct cfattach ubsa_ca = {
+ sizeof(struct ubsa_softc), ubsa_match, ubsa_attach, ubsa_detach
};
int
return (rv);
}
-int
-ubsa_activate(struct device *self, int act)
-{
- struct ubsa_softc *sc = (struct ubsa_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
ubsa_request(struct ubsa_softc *sc, u_int8_t request, u_int16_t value)
{
-/* $OpenBSD: uchcom.c,v 1.21 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: uchcom.c,v 1.22 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: uchcom.c,v 1.1 2007/09/03 17:57:37 tshiozak Exp $ */
/*
int uchcom_setup_intr_pipe(struct uchcom_softc *);
-int uchcom_match(struct device *, void *, void *);
-void uchcom_attach(struct device *, struct device *, void *);
-int uchcom_detach(struct device *, int);
-int uchcom_activate(struct device *, int);
+int uchcom_match(struct device *, void *, void *);
+void uchcom_attach(struct device *, struct device *, void *);
+int uchcom_detach(struct device *, int);
struct ucom_methods uchcom_methods = {
uchcom_get_status,
{ USB_VENDOR_WCH2, USB_PRODUCT_WCH2_CH341A }
};
-struct cfdriver uchcom_cd = {
- NULL, "uchcom", DV_DULL
-};
+struct cfdriver uchcom_cd = {
+ NULL, "uchcom", DV_DULL
+};
-const struct cfattach uchcom_ca = {
- sizeof(struct uchcom_softc),
- uchcom_match,
- uchcom_attach,
- uchcom_detach,
- uchcom_activate,
+const struct cfattach uchcom_ca = {
+ sizeof(struct uchcom_softc), uchcom_match, uchcom_attach, uchcom_detach
};
/* ----------------------------------------------------------------------
return rv;
}
-int
-uchcom_activate(struct device *self, int act)
-{
- struct uchcom_softc *sc = (struct uchcom_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- uchcom_close_intr_pipe(sc);
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return 0;
-}
-
int
uchcom_set_config(struct uchcom_softc *sc)
{
-/* $OpenBSD: ucycom.c,v 1.28 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: ucycom.c,v 1.29 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: ucycom.c,v 1.3 2005/08/05 07:27:47 skrll Exp $ */
/*
{ USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EMLT20 },
};
-int ucycom_match(struct device *, void *, void *);
-void ucycom_attach(struct device *, struct device *, void *);
-int ucycom_detach(struct device *, int);
-int ucycom_activate(struct device *, int);
-
-struct cfdriver ucycom_cd = {
- NULL, "ucycom", DV_DULL
-};
-
-const struct cfattach ucycom_ca = {
- sizeof(struct ucycom_softc),
- ucycom_match,
- ucycom_attach,
- ucycom_detach,
- ucycom_activate,
+int ucycom_match(struct device *, void *, void *);
+void ucycom_attach(struct device *, struct device *, void *);
+int ucycom_detach(struct device *, int);
+
+struct cfdriver ucycom_cd = {
+ NULL, "ucycom", DV_DULL
+};
+
+const struct cfattach ucycom_ca = {
+ sizeof(struct ucycom_softc), ucycom_match, ucycom_attach, ucycom_detach
};
int
return (0);
}
-
-int
-ucycom_activate(struct device *self, int act)
-{
- struct ucycom_softc *sc = (struct ucycom_softc *)self;
-
- DPRINTFN(5,("ucycom_activate: %d\n", act));
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-/* $OpenBSD: udcf.c,v 1.57 2013/04/15 09:23:02 mglocker Exp $ */
+/* $OpenBSD: udcf.c,v 1.58 2014/07/12 20:26:33 mpi Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Marc Balmer <mbalmer@openbsd.org>
void udcf_sl_probe(void *);
void udcf_ct_probe(void *);
-int udcf_match(struct device *, void *, void *);
-void udcf_attach(struct device *, struct device *, void *);
-int udcf_detach(struct device *, int);
-int udcf_activate(struct device *, int);
+int udcf_match(struct device *, void *, void *);
+void udcf_attach(struct device *, struct device *, void *);
+int udcf_detach(struct device *, int);
int udcf_nc_signal(struct udcf_softc *);
int udcf_nc_init_hw(struct udcf_softc *);
};
const struct cfattach udcf_ca = {
- sizeof(struct udcf_softc),
- udcf_match,
- udcf_attach,
- udcf_detach,
- udcf_activate
+ sizeof(struct udcf_softc), udcf_match, udcf_attach, udcf_detach,
};
static const struct usb_devno udcf_devs[] = {
clockname[CLOCK_HBG] : clockname[CLOCK_DCF77]));
}
-int
-udcf_activate(struct device *self, int act)
-{
- struct udcf_softc *sc = (struct udcf_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return 0;
-}
-/* $OpenBSD: uftdi.c,v 1.71 2014/02/04 12:03:12 mpi Exp $ */
+/* $OpenBSD: uftdi.c,v 1.72 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: uftdi.c,v 1.14 2003/02/23 04:20:07 simonb Exp $ */
/*
uftdi_write,
};
-int uftdi_match(struct device *, void *, void *);
-void uftdi_attach(struct device *, struct device *, void *);
-int uftdi_detach(struct device *, int);
-int uftdi_activate(struct device *, int);
-
-struct cfdriver uftdi_cd = {
- NULL, "uftdi", DV_DULL
-};
-
-const struct cfattach uftdi_ca = {
- sizeof(struct uftdi_softc),
- uftdi_match,
- uftdi_attach,
- uftdi_detach,
- uftdi_activate,
+int uftdi_match(struct device *, void *, void *);
+void uftdi_attach(struct device *, struct device *, void *);
+int uftdi_detach(struct device *, int);
+
+struct cfdriver uftdi_cd = {
+ NULL, "uftdi", DV_DULL
+};
+
+const struct cfattach uftdi_ca = {
+ sizeof(struct uftdi_softc), uftdi_match, uftdi_attach, uftdi_detach
};
static const struct usb_devno uftdi_devs[] = {
usbd_deactivate(sc->sc_udev);
}
-int
-uftdi_activate(struct device *self, int act)
-{
- struct uftdi_softc *sc = (struct uftdi_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
uftdi_detach(struct device *self, int flags)
{
-/* $OpenBSD: ugen.c,v 1.78 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: ugen.c,v 1.79 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: ugen.c,v 1.63 2002/11/26 18:49:48 christos Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
int ugen_match(struct device *, void *, void *);
void ugen_attach(struct device *, struct device *, void *);
int ugen_detach(struct device *, int);
-int ugen_activate(struct device *, int);
struct cfdriver ugen_cd = {
NULL, "ugen", DV_DULL
};
const struct cfattach ugen_ca = {
- sizeof(struct ugen_softc), ugen_match, ugen_attach, ugen_detach,
- ugen_activate,
+ sizeof(struct ugen_softc), ugen_match, ugen_attach, ugen_detach
};
int
return (error);
}
-int
-ugen_activate(struct device *self, int act)
-{
- struct ugen_softc *sc = (struct ugen_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
ugen_detach(struct device *self, int flags)
{
-/* $OpenBSD: uipaq.c,v 1.23 2013/11/15 08:25:31 pirofti Exp $ */
+/* $OpenBSD: uipaq.c,v 1.24 2014/07/12 20:26:33 mpi Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
#define uipaq_lookup(v, p) ((struct uipaq_type *)usb_lookup(uipaq_devs, v, p))
-int uipaq_match(struct device *, void *, void *);
-void uipaq_attach(struct device *, struct device *, void *);
-int uipaq_detach(struct device *, int);
-int uipaq_activate(struct device *, int);
-
-struct cfdriver uipaq_cd = {
- NULL, "uipaq", DV_DULL
-};
-
-const struct cfattach uipaq_ca = {
- sizeof(struct uipaq_softc),
- uipaq_match,
- uipaq_attach,
- uipaq_detach,
- uipaq_activate,
+int uipaq_match(struct device *, void *, void *);
+void uipaq_attach(struct device *, struct device *, void *);
+int uipaq_detach(struct device *, int);
+
+struct cfdriver uipaq_cd = {
+ NULL, "uipaq", DV_DULL
+};
+
+const struct cfattach uipaq_ca = {
+ sizeof(struct uipaq_softc), uipaq_match, uipaq_attach, uipaq_detach
};
int
}
-int
-uipaq_activate(struct device *self, int act)
-{
- struct uipaq_softc *sc = (struct uipaq_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
uipaq_detach(struct device *self, int flags)
{
-/* $OpenBSD: ulpt.c,v 1.46 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: ulpt.c,v 1.47 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: ulpt.c,v 1.57 2003/01/05 10:19:42 scw Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
#define ULPTFLAGS(s) (minor(s) & 0xe0)
-int ulpt_match(struct device *, void *, void *);
-void ulpt_attach(struct device *, struct device *, void *);
-int ulpt_detach(struct device *, int);
-int ulpt_activate(struct device *, int);
+int ulpt_match(struct device *, void *, void *);
+void ulpt_attach(struct device *, struct device *, void *);
+int ulpt_detach(struct device *, int);
-struct cfdriver ulpt_cd = {
- NULL, "ulpt", DV_DULL
-};
+struct cfdriver ulpt_cd = {
+ NULL, "ulpt", DV_DULL
+};
-const struct cfattach ulpt_ca = {
- sizeof(struct ulpt_softc),
- ulpt_match,
- ulpt_attach,
- ulpt_detach,
- ulpt_activate,
+const struct cfattach ulpt_ca = {
+ sizeof(struct ulpt_softc), ulpt_match, ulpt_attach, ulpt_detach
};
int
#endif
}
-int
-ulpt_activate(struct device *self, int act)
-{
- struct ulpt_softc *sc = (struct ulpt_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
ulpt_detach(struct device *self, int flags)
{
-/* $OpenBSD: umbg.c,v 1.22 2013/11/15 10:17:39 pirofti Exp $ */
+/* $OpenBSD: umbg.c,v 1.23 2014/07/12 20:26:33 mpi Exp $ */
/*
* Copyright (c) 2007 Marc Balmer <mbalmer@openbsd.org>
void umbg_intr(void *);
void umbg_it_intr(void *);
-int umbg_match(struct device *, void *, void *);
-void umbg_attach(struct device *, struct device *, void *);
-int umbg_detach(struct device *, int);
-int umbg_activate(struct device *, int);
+int umbg_match(struct device *, void *, void *);
+void umbg_attach(struct device *, struct device *, void *);
+int umbg_detach(struct device *, int);
void umbg_task(void *);
};
const struct cfattach umbg_ca = {
- sizeof(struct umbg_softc),
- umbg_match,
- umbg_attach,
- umbg_detach,
- umbg_activate
+ sizeof(struct umbg_softc), umbg_match, umbg_attach, umbg_detach
};
int
} else
sc->sc_timedelta.status = SENSOR_S_CRIT;
}
-
-int
-umbg_activate(struct device *self, int act)
-{
- struct umbg_softc *sc = (struct umbg_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return 0;
-}
-/* $OpenBSD: umct.c,v 1.40 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: umct.c,v 1.41 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: umct.c,v 1.10 2003/02/23 04:20:07 simonb Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
{ USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F5U409 },
};
-int umct_match(struct device *, void *, void *);
-void umct_attach(struct device *, struct device *, void *);
-int umct_detach(struct device *, int);
-int umct_activate(struct device *, int);
-
-struct cfdriver umct_cd = {
- NULL, "umct", DV_DULL
-};
-
-const struct cfattach umct_ca = {
- sizeof(struct umct_softc),
- umct_match,
- umct_attach,
- umct_detach,
- umct_activate,
+int umct_match(struct device *, void *, void *);
+void umct_attach(struct device *, struct device *, void *);
+int umct_detach(struct device *, int);
+
+struct cfdriver umct_cd = {
+ NULL, "umct", DV_DULL
+};
+
+const struct cfattach umct_ca = {
+ sizeof(struct umct_softc), umct_match, umct_attach, umct_detach
};
int
return (rv);
}
-int
-umct_activate(struct device *self, int act)
-{
- struct umct_softc *sc = (struct umct_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
void
umct_set_line_state(struct umct_softc *sc)
{
-/* $OpenBSD: umodem.c,v 1.56 2014/05/01 03:45:08 sasano Exp $ */
+/* $OpenBSD: umodem.c,v 1.57 2014/07/12 20:26:33 mpi Exp $ */
/* $NetBSD: umodem.c,v 1.45 2002/09/23 05:51:23 simonb Exp $ */
/*
NULL,
};
-int umodem_match(struct device *, void *, void *);
-void umodem_attach(struct device *, struct device *, void *);
-int umodem_detach(struct device *, int);
-int umodem_activate(struct device *, int);
+int umodem_match(struct device *, void *, void *);
+void umodem_attach(struct device *, struct device *, void *);
+int umodem_detach(struct device *, int);
void umodem_get_caps(struct usb_attach_arg *, int, int *, int *, int *);
-struct cfdriver umodem_cd = {
- NULL, "umodem", DV_DULL
-};
+struct cfdriver umodem_cd = {
+ NULL, "umodem", DV_DULL
+};
-const struct cfattach umodem_ca = {
- sizeof(struct umodem_softc),
- umodem_match,
- umodem_attach,
- umodem_detach,
- umodem_activate,
+const struct cfattach umodem_ca = {
+ sizeof(struct umodem_softc), umodem_match, umodem_attach, umodem_detach
};
void
return (USBD_NORMAL_COMPLETION);
}
-int
-umodem_activate(struct device *self, int act)
-{
- struct umodem_softc *sc = (struct umodem_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
umodem_detach(struct device *self, int flags)
{