Deleted Added
full compact
uslcom.c (188413) uslcom.c (188664)
1/* $OpenBSD: uslcom.c,v 1.17 2007/11/24 10:52:12 jsg Exp $ */
2
3#include <sys/cdefs.h>
1/* $OpenBSD: uslcom.c,v 1.17 2007/11/24 10:52:12 jsg Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD: head/sys/dev/usb2/serial/uslcom2.c 188413 2009-02-09 22:05:25Z thompsa $");
4__FBSDID("$FreeBSD: head/sys/dev/usb2/serial/uslcom2.c 188664 2009-02-15 23:38:58Z thompsa $");
5
6/*
7 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
8 *
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
12 *

--- 21 unchanged lines hidden (view full) ---

34#include <dev/usb2/core/usb2_util.h>
35#include <dev/usb2/core/usb2_busdma.h>
36
37#include <dev/usb2/serial/usb2_serial.h>
38
39#if USB_DEBUG
40static int uslcom_debug = 0;
41
5
6/*
7 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
8 *
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
12 *

--- 21 unchanged lines hidden (view full) ---

34#include <dev/usb2/core/usb2_util.h>
35#include <dev/usb2/core/usb2_busdma.h>
36
37#include <dev/usb2/serial/usb2_serial.h>
38
39#if USB_DEBUG
40static int uslcom_debug = 0;
41
42SYSCTL_NODE(_hw_usb2, OID_AUTO, uplcom, CTLFLAG_RW, 0, "USB uplcom");
43SYSCTL_INT(_hw_usb2_uplcom, OID_AUTO, debug, CTLFLAG_RW,
42SYSCTL_NODE(_hw_usb2, OID_AUTO, uslcom, CTLFLAG_RW, 0, "USB uslcom");
43SYSCTL_INT(_hw_usb2_uslcom, OID_AUTO, debug, CTLFLAG_RW,
44 &uslcom_debug, 0, "Debug level");
45#endif
46
47#define USLCOM_BULK_BUF_SIZE 1024
48#define USLCOM_CONFIG_INDEX 0
49#define USLCOM_IFACE_INDEX 0
50
51#define USLCOM_SET_DATA_BITS(x) ((x) << 8)

--- 131 unchanged lines hidden (view full) ---

183 DEVMETHOD(device_attach, uslcom_attach),
184 DEVMETHOD(device_detach, uslcom_detach),
185 {0, 0}
186};
187
188static devclass_t uslcom_devclass;
189
190static driver_t uslcom_driver = {
44 &uslcom_debug, 0, "Debug level");
45#endif
46
47#define USLCOM_BULK_BUF_SIZE 1024
48#define USLCOM_CONFIG_INDEX 0
49#define USLCOM_IFACE_INDEX 0
50
51#define USLCOM_SET_DATA_BITS(x) ((x) << 8)

--- 131 unchanged lines hidden (view full) ---

183 DEVMETHOD(device_attach, uslcom_attach),
184 DEVMETHOD(device_detach, uslcom_detach),
185 {0, 0}
186};
187
188static devclass_t uslcom_devclass;
189
190static driver_t uslcom_driver = {
191 .name = "uplcom",
191 .name = "uslcom",
192 .methods = uslcom_methods,
193 .size = sizeof(struct uslcom_softc),
194};
195
192 .methods = uslcom_methods,
193 .size = sizeof(struct uslcom_softc),
194};
195
196DRIVER_MODULE(uplcom, ushub, uslcom_driver, uslcom_devclass, NULL, 0);
197MODULE_DEPEND(uplcom, usb2_serial, 1, 1, 1);
198MODULE_DEPEND(uplcom, usb2_core, 1, 1, 1);
199MODULE_VERSION(uplcom, 1);
196DRIVER_MODULE(uslcom, ushub, uslcom_driver, uslcom_devclass, NULL, 0);
197MODULE_DEPEND(uslcom, usb2_serial, 1, 1, 1);
198MODULE_DEPEND(uslcom, usb2_core, 1, 1, 1);
199MODULE_VERSION(uslcom, 1);
200
201static int
202uslcom_probe(device_t dev)
203{
204 struct usb2_attach_arg *uaa = device_get_ivars(dev);
205
206 DPRINTFN(11, "\n");
207

--- 332 unchanged lines hidden ---
200
201static int
202uslcom_probe(device_t dev)
203{
204 struct usb2_attach_arg *uaa = device_get_ivars(dev);
205
206 DPRINTFN(11, "\n");
207

--- 332 unchanged lines hidden ---