Deleted Added
full compact
ubsa.c (207077) ubsa.c (212122)
1/*-
2 * Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/usb/serial/ubsa.c 207077 2010-04-22 21:31:34Z thompsa $");
28__FBSDID("$FreeBSD: head/sys/dev/usb/serial/ubsa.c 212122 2010-09-01 23:47:53Z thompsa $");
29/*-
30 * Copyright (c) 2001 The NetBSD Foundation, Inc.
31 * All rights reserved.
32 *
33 * This code is derived from software contributed to The NetBSD Foundation
34 * by Ichiro FUKUHARA (ichiro@ichiro.org).
35 *
36 * Redistribution and use in source and binary forms, with or without

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

272 .name = "ubsa",
273 .methods = ubsa_methods,
274 .size = sizeof(struct ubsa_softc),
275};
276
277DRIVER_MODULE(ubsa, uhub, ubsa_driver, ubsa_devclass, NULL, 0);
278MODULE_DEPEND(ubsa, ucom, 1, 1, 1);
279MODULE_DEPEND(ubsa, usb, 1, 1, 1);
29/*-
30 * Copyright (c) 2001 The NetBSD Foundation, Inc.
31 * All rights reserved.
32 *
33 * This code is derived from software contributed to The NetBSD Foundation
34 * by Ichiro FUKUHARA (ichiro@ichiro.org).
35 *
36 * Redistribution and use in source and binary forms, with or without

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

272 .name = "ubsa",
273 .methods = ubsa_methods,
274 .size = sizeof(struct ubsa_softc),
275};
276
277DRIVER_MODULE(ubsa, uhub, ubsa_driver, ubsa_devclass, NULL, 0);
278MODULE_DEPEND(ubsa, ucom, 1, 1, 1);
279MODULE_DEPEND(ubsa, usb, 1, 1, 1);
280MODULE_VERSION(ubsa, 1);
280
281static int
282ubsa_probe(device_t dev)
283{
284 struct usb_attach_arg *uaa = device_get_ivars(dev);
285
286 if (uaa->usb_mode != USB_MODE_HOST) {
287 return (ENXIO);

--- 383 unchanged lines hidden ---
281
282static int
283ubsa_probe(device_t dev)
284{
285 struct usb_attach_arg *uaa = device_get_ivars(dev);
286
287 if (uaa->usb_mode != USB_MODE_HOST) {
288 return (ENXIO);

--- 383 unchanged lines hidden ---