summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uchcom.c
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2013-04-15 09:23:03 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2013-04-15 09:23:03 +0000
commit5cef08fefab2a1e12eeb54bbb0608448920630e8 (patch)
tree54b4b49685c176f00e369f015a0e43fd73199777 /sys/dev/usb/uchcom.c
parentef6d59f94200628194940cb20aa4986edec4b629 (diff)
Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
Diffstat (limited to 'sys/dev/usb/uchcom.c')
-rw-r--r--sys/dev/usb/uchcom.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/sys/dev/usb/uchcom.c b/sys/dev/usb/uchcom.c
index 3bacf17c553..21cce2cd147 100644
--- a/sys/dev/usb/uchcom.c
+++ b/sys/dev/usb/uchcom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uchcom.c,v 1.15 2011/07/03 15:47:17 matthew Exp $ */
+/* $OpenBSD: uchcom.c,v 1.16 2013/04/15 09:23:02 mglocker Exp $ */
/* $NetBSD: uchcom.c,v 1.1 2007/09/03 17:57:37 tshiozak Exp $ */
/*
@@ -109,14 +109,14 @@ int uchcomdebug = 0;
struct uchcom_softc
{
struct device sc_dev;
- usbd_device_handle sc_udev;
+ struct usbd_device *sc_udev;
struct device *sc_subdev;
- usbd_interface_handle sc_iface;
+ struct usbd_interface *sc_iface;
int sc_dying;
/* */
int sc_intr_endpoint;
int sc_intr_size;
- usbd_pipe_handle sc_intr_pipe;
+ struct usbd_pipe *sc_intr_pipe;
u_char *sc_intr_buf;
/* */
uint8_t sc_version;
@@ -166,12 +166,11 @@ void uchcom_set(void *, int, int, int);
int uchcom_param(void *, int, struct termios *);
int uchcom_open(void *, int);
void uchcom_close(void *, int);
-void uchcom_intr(usbd_xfer_handle, usbd_private_handle,
- usbd_status);
+void uchcom_intr(struct usbd_xfer *, void *, usbd_status);
int uchcom_set_config(struct uchcom_softc *);
int uchcom_find_ifaces(struct uchcom_softc *,
- usbd_interface_handle *);
+ struct usbd_interface **);
int uchcom_find_endpoints(struct uchcom_softc *,
struct uchcom_endpoints *);
void uchcom_close_intr_pipe(struct uchcom_softc *);
@@ -259,7 +258,7 @@ uchcom_attach(struct device *parent, struct device *self, void *aux)
struct uchcom_softc *sc = (struct uchcom_softc *)self;
struct usb_attach_arg *uaa = aux;
struct ucom_attach_args uca;
- usbd_device_handle dev = uaa->device;
+ struct usbd_device *dev = uaa->device;
struct uchcom_endpoints endpoints;
sc->sc_udev = dev;
@@ -363,7 +362,7 @@ uchcom_set_config(struct uchcom_softc *sc)
}
int
-uchcom_find_ifaces(struct uchcom_softc *sc, usbd_interface_handle *riface)
+uchcom_find_ifaces(struct uchcom_softc *sc, struct usbd_interface **riface)
{
usbd_status err;
@@ -1009,8 +1008,7 @@ uchcom_close(void *arg, int portno)
* callback when the modem status is changed.
*/
void
-uchcom_intr(usbd_xfer_handle xfer, usbd_private_handle priv,
- usbd_status status)
+uchcom_intr(struct usbd_xfer *xfer, void *priv, usbd_status status)
{
struct uchcom_softc *sc = priv;
u_char *buf = sc->sc_intr_buf;