-/* $OpenBSD: moscom.c,v 1.19 2013/11/15 08:25:30 pirofti Exp $ */
+/* $OpenBSD: moscom.c,v 1.20 2014/07/12 21:24:33 mpi Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
{ USB_VENDOR_MOSCHIP, USB_PRODUCT_MOSCHIP_MCS7703 }
};
-int moscom_match(struct device *, void *, void *);
-void moscom_attach(struct device *, struct device *, void *);
-int moscom_detach(struct device *, int);
-int moscom_activate(struct device *, int);
-
-struct cfdriver moscom_cd = {
- NULL, "moscom", DV_DULL
-};
-
-const struct cfattach moscom_ca = {
- sizeof(struct moscom_softc),
- moscom_match,
- moscom_attach,
- moscom_detach,
- moscom_activate,
+int moscom_match(struct device *, void *, void *);
+void moscom_attach(struct device *, struct device *, void *);
+int moscom_detach(struct device *, int);
+
+struct cfdriver moscom_cd = {
+ NULL, "moscom", DV_DULL
+};
+
+const struct cfattach moscom_ca = {
+ sizeof(struct moscom_softc), moscom_match, moscom_attach, moscom_detach
};
int
return (rv);
}
-int
-moscom_activate(struct device *self, int act)
-{
- struct moscom_softc *sc = (struct moscom_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
moscom_open(void *vsc, int portno)
{
-/* $OpenBSD: umsm.c,v 1.99 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: umsm.c,v 1.100 2014/07/12 21:24:33 mpi Exp $ */
/*
* Copyright (c) 2008 Yojiro UO <yuo@nui.org>
int umsm_match(struct device *, void *, void *);
void umsm_attach(struct device *, struct device *, void *);
int umsm_detach(struct device *, int);
-int umsm_activate(struct device *, int);
int umsm_open(void *, int);
void umsm_close(void *, int);
};
const struct cfattach umsm_ca = {
- sizeof(struct umsm_softc),
- umsm_match,
- umsm_attach,
- umsm_detach,
- umsm_activate,
+ sizeof(struct umsm_softc), umsm_match, umsm_attach, umsm_detach
};
int
return (rv);
}
-int
-umsm_activate(struct device *self, int act)
-{
- struct umsm_softc *sc = (struct umsm_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
umsm_open(void *addr, int portno)
{
-/* $OpenBSD: uplcom.c,v 1.63 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: uplcom.c,v 1.64 2014/07/12 21:24:33 mpi Exp $ */
/* $NetBSD: uplcom.c,v 1.29 2002/09/23 05:51:23 simonb Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
};
#define uplcom_lookup(v, p) usb_lookup(uplcom_devs, v, p)
-int uplcom_match(struct device *, void *, void *);
-void uplcom_attach(struct device *, struct device *, void *);
-int uplcom_detach(struct device *, int);
-int uplcom_activate(struct device *, int);
-
-struct cfdriver uplcom_cd = {
- NULL, "uplcom", DV_DULL
-};
-
-const struct cfattach uplcom_ca = {
- sizeof(struct uplcom_softc),
- uplcom_match,
- uplcom_attach,
- uplcom_detach,
- uplcom_activate,
+int uplcom_match(struct device *, void *, void *);
+void uplcom_attach(struct device *, struct device *, void *);
+int uplcom_detach(struct device *, int);
+
+struct cfdriver uplcom_cd = {
+ NULL, "uplcom", DV_DULL
+};
+
+const struct cfattach uplcom_ca = {
+ sizeof(struct uplcom_softc), uplcom_match, uplcom_attach, uplcom_detach
};
int
return (rv);
}
-int
-uplcom_activate(struct device *self, int act)
-{
- struct uplcom_softc *sc = (struct uplcom_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
usbd_status
uplcom_reset(struct uplcom_softc *sc)
{
-/* $OpenBSD: urio.c,v 1.45 2014/07/12 18:48:52 tedu Exp $ */
+/* $OpenBSD: urio.c,v 1.46 2014/07/12 21:24:33 mpi Exp $ */
/* $NetBSD: urio.c,v 1.15 2002/10/23 09:14:02 jdolecek Exp $ */
/*
{ USB_VENDOR_DIAMOND2, USB_PRODUCT_DIAMOND2_PSAPLAY120},
};
-int urio_match(struct device *, void *, void *);
-void urio_attach(struct device *, struct device *, void *);
-int urio_detach(struct device *, int);
-int urio_activate(struct device *, int);
-
-struct cfdriver urio_cd = {
- NULL, "urio", DV_DULL
-};
-
-const struct cfattach urio_ca = {
- sizeof(struct urio_softc),
- urio_match,
- urio_attach,
- urio_detach,
- urio_activate,
+int urio_match(struct device *, void *, void *);
+void urio_attach(struct device *, struct device *, void *);
+int urio_detach(struct device *, int);
+
+struct cfdriver urio_cd = {
+ NULL, "urio", DV_DULL
+};
+
+const struct cfattach urio_ca = {
+ sizeof(struct urio_softc), urio_match, urio_attach, urio_detach
};
int
return (0);
}
-int
-urio_activate(struct device *self, int act)
-{
- struct urio_softc *sc = (struct urio_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
urioopen(dev_t dev, int flag, int mode, struct proc *p)
{
-/* $OpenBSD: uscom.c,v 1.1 2014/03/25 03:29:23 jsg Exp $ */
+/* $OpenBSD: uscom.c,v 1.2 2014/07/12 21:24:33 mpi Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
{ USB_VENDOR_HP, USB_PRODUCT_HP_HPX9GP }
};
-int uscom_match(struct device *, void *, void *);
-void uscom_attach(struct device *, struct device *, void *);
-int uscom_detach(struct device *, int);
-int uscom_activate(struct device *, int);
-
-struct cfdriver uscom_cd = {
- NULL, "uscom", DV_DULL
-};
-
-const struct cfattach uscom_ca = {
- sizeof(struct uscom_softc),
- uscom_match,
- uscom_attach,
- uscom_detach,
- uscom_activate,
+int uscom_match(struct device *, void *, void *);
+void uscom_attach(struct device *, struct device *, void *);
+int uscom_detach(struct device *, int);
+
+struct cfdriver uscom_cd = {
+ NULL, "uscom", DV_DULL
+};
+
+const struct cfattach uscom_ca = {
+ sizeof(struct uscom_softc), uscom_match, uscom_attach, uscom_detach
};
int
return (rv);
}
-
-int
-uscom_activate(struct device *self, int act)
-{
- struct uscom_softc *sc = (struct uscom_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-/* $OpenBSD: uslcom.c,v 1.30 2013/11/15 08:25:31 pirofti Exp $ */
+/* $OpenBSD: uslcom.c,v 1.31 2014/07/12 21:24:33 mpi Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
{ USB_VENDOR_WIENERPLEINBAUS, USB_PRODUCT_WIENERPLEINBAUS_RCM },
};
-int uslcom_match(struct device *, void *, void *);
-void uslcom_attach(struct device *, struct device *, void *);
-int uslcom_detach(struct device *, int);
-int uslcom_activate(struct device *, int);
-
-struct cfdriver uslcom_cd = {
- NULL, "uslcom", DV_DULL
-};
-
-const struct cfattach uslcom_ca = {
- sizeof(struct uslcom_softc),
- uslcom_match,
- uslcom_attach,
- uslcom_detach,
- uslcom_activate,
+int uslcom_match(struct device *, void *, void *);
+void uslcom_attach(struct device *, struct device *, void *);
+int uslcom_detach(struct device *, int);
+
+struct cfdriver uslcom_cd = {
+ NULL, "uslcom", DV_DULL
+};
+
+const struct cfattach uslcom_ca = {
+ sizeof(struct uslcom_softc), uslcom_match, uslcom_attach, uslcom_detach
};
int
return (rv);
}
-int
-uslcom_activate(struct device *self, int act)
-{
- struct uslcom_softc *sc = (struct uslcom_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
uslcom_open(void *vsc, int portno)
{
-/* $OpenBSD: usps.c,v 1.6 2014/07/12 18:48:53 tedu Exp $ */
+/* $OpenBSD: usps.c,v 1.7 2014/07/12 21:24:33 mpi Exp $ */
/*
* Copyright (c) 2011 Yojiro UO <yuo@nui.org>
int usps_match(struct device *, void *, void *);
void usps_attach(struct device *, struct device *, void *);
int usps_detach(struct device *, int);
-int usps_activate(struct device *, int);
void usps_intr(struct usbd_xfer *, void *, usbd_status);
usbd_status usps_cmd(struct usps_softc *, uint8_t, uint16_t, uint16_t);
};
const struct cfattach usps_ca = {
- sizeof(struct usps_softc),
- usps_match,
- usps_attach,
- usps_detach,
- usps_activate,
+ sizeof(struct usps_softc), usps_match, usps_attach, usps_detach
};
int
return (rv);
}
-int
-usps_activate(struct device *self, int act)
-{
- struct usps_softc *sc = (struct usps_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
usbd_status
usps_cmd(struct usps_softc *sc, uint8_t cmd, uint16_t val, uint16_t len)
{
-/* $OpenBSD: uticom.c,v 1.25 2014/07/12 18:48:53 tedu Exp $ */
+/* $OpenBSD: uticom.c,v 1.26 2014/07/12 21:24:33 mpi Exp $ */
/*
* Copyright (c) 2005 Dmitry Komissaroff <dxi@mail.ru>.
*
int uticom_match(struct device *, void *, void *);
void uticom_attach(struct device *, struct device *, void *);
int uticom_detach(struct device *, int);
-int uticom_activate(struct device *, int);
struct cfdriver uticom_cd = {
NULL, "uticom", DV_DULL
};
const struct cfattach uticom_ca = {
- sizeof(struct uticom_softc),
- uticom_match,
- uticom_attach,
- uticom_detach,
- uticom_activate,
+ sizeof(struct uticom_softc), uticom_match, uticom_attach, uticom_detach
};
static const struct usb_devno uticom_devs[] = {
sc->sc_subdev = config_found_sm((struct device *)sc, &uca, ucomprint, ucomsubmatch);
}
-int
-uticom_activate(struct device *self, int act)
-{
- struct uticom_softc *sc = (struct uticom_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
uticom_detach(struct device *self, int flags)
{
-/* $OpenBSD: uvisor.c,v 1.48 2013/11/15 08:25:31 pirofti Exp $ */
+/* $OpenBSD: uvisor.c,v 1.49 2014/07/12 21:24:33 mpi Exp $ */
/* $NetBSD: uvisor.c,v 1.21 2003/08/03 21:59:26 nathanw Exp $ */
/*
};
#define uvisor_lookup(v, p) ((struct uvisor_type *)usb_lookup(uvisor_devs, v, p))
-int uvisor_match(struct device *, void *, void *);
-void uvisor_attach(struct device *, struct device *, void *);
-int uvisor_detach(struct device *, int);
-int uvisor_activate(struct device *, int);
-
-struct cfdriver uvisor_cd = {
- NULL, "uvisor", DV_DULL
-};
-
-const struct cfattach uvisor_ca = {
- sizeof(struct uvisor_softc),
- uvisor_match,
- uvisor_attach,
- uvisor_detach,
- uvisor_activate,
+int uvisor_match(struct device *, void *, void *);
+void uvisor_attach(struct device *, struct device *, void *);
+int uvisor_detach(struct device *, int);
+
+struct cfdriver uvisor_cd = {
+ NULL, "uvisor", DV_DULL
+};
+
+const struct cfattach uvisor_ca = {
+ sizeof(struct uvisor_softc), uvisor_match, uvisor_attach, uvisor_detach
};
int
usbd_deactivate(sc->sc_udev);
}
-int
-uvisor_activate(struct device *self, int act)
-{
- struct uvisor_softc *sc = (struct uvisor_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
int
uvisor_detach(struct device *self, int flags)
{
-/* $OpenBSD: uvscom.c,v 1.31 2014/07/12 18:48:53 tedu Exp $ */
+/* $OpenBSD: uvscom.c,v 1.32 2014/07/12 21:24:33 mpi Exp $ */
/* $NetBSD: uvscom.c,v 1.9 2003/02/12 15:36:20 ichiro Exp $ */
/*-
* Copyright (c) 2001-2002, Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
{ USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_IS96U },
};
-int uvscom_match(struct device *, void *, void *);
-void uvscom_attach(struct device *, struct device *, void *);
-int uvscom_detach(struct device *, int);
-int uvscom_activate(struct device *, int);
-
-struct cfdriver uvscom_cd = {
- NULL, "uvscom", DV_DULL
-};
-
-const struct cfattach uvscom_ca = {
- sizeof(struct uvscom_softc),
- uvscom_match,
- uvscom_attach,
- uvscom_detach,
- uvscom_activate,
+int uvscom_match(struct device *, void *, void *);
+void uvscom_attach(struct device *, struct device *, void *);
+int uvscom_detach(struct device *, int);
+
+struct cfdriver uvscom_cd = {
+ NULL, "uvscom", DV_DULL
+};
+
+const struct cfattach uvscom_ca = {
+ sizeof(struct uvscom_softc), uvscom_match, uvscom_attach, uvscom_detach
};
int
return (rv);
}
-int
-uvscom_activate(struct device *self, int act)
-{
- struct uvscom_softc *sc = (struct uvscom_softc *)self;
-
- switch (act) {
- case DVACT_DEACTIVATE:
- usbd_deactivate(sc->sc_udev);
- break;
- }
- return (0);
-}
-
usbd_status
uvscom_readstat(struct uvscom_softc *sc)
{