Deleted Added
full compact
urio.c (207077) urio.c (212122)
1/*-
2 * Copyright (c) 2000 Iwasa Kazmi
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

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

24 * SUCH DAMAGE.
25 *
26 * This code is based on ugen.c and ulpt.c developed by Lennart Augustsson.
27 * This code includes software developed by the NetBSD Foundation, Inc. and
28 * its contributors.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000 Iwasa Kazmi
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

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

24 * SUCH DAMAGE.
25 *
26 * This code is based on ugen.c and ulpt.c developed by Lennart Augustsson.
27 * This code includes software developed by the NetBSD Foundation, Inc. and
28 * its contributors.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/usb/storage/urio.c 207077 2010-04-22 21:31:34Z thompsa $");
32__FBSDID("$FreeBSD: head/sys/dev/usb/storage/urio.c 212122 2010-09-01 23:47:53Z thompsa $");
33
34
35/*
36 * 2000/3/24 added NetBSD/OpenBSD support (from Alex Nemirovsky)
37 * 2000/3/07 use two bulk-pipe handles for read and write (Dirk)
38 * 2000/3/06 change major number(143), and copyright header
39 * some fix for 4.0 (Dirk)
40 * 2000/3/05 codes for FreeBSD 4.x - CURRENT (Thanks to Dirk-Willem van Gulik)

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

192static driver_t urio_driver = {
193 .name = "urio",
194 .methods = urio_methods,
195 .size = sizeof(struct urio_softc),
196};
197
198DRIVER_MODULE(urio, uhub, urio_driver, urio_devclass, NULL, 0);
199MODULE_DEPEND(urio, usb, 1, 1, 1);
33
34
35/*
36 * 2000/3/24 added NetBSD/OpenBSD support (from Alex Nemirovsky)
37 * 2000/3/07 use two bulk-pipe handles for read and write (Dirk)
38 * 2000/3/06 change major number(143), and copyright header
39 * some fix for 4.0 (Dirk)
40 * 2000/3/05 codes for FreeBSD 4.x - CURRENT (Thanks to Dirk-Willem van Gulik)

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

192static driver_t urio_driver = {
193 .name = "urio",
194 .methods = urio_methods,
195 .size = sizeof(struct urio_softc),
196};
197
198DRIVER_MODULE(urio, uhub, urio_driver, urio_devclass, NULL, 0);
199MODULE_DEPEND(urio, usb, 1, 1, 1);
200MODULE_VERSION(urio, 1);
200
201static int
202urio_probe(device_t dev)
203{
204 struct usb_attach_arg *uaa = device_get_ivars(dev);
205
206 if (uaa->usb_mode != USB_MODE_HOST) {
207 return (ENXIO);

--- 285 unchanged lines hidden ---
201
202static int
203urio_probe(device_t dev)
204{
205 struct usb_attach_arg *uaa = device_get_ivars(dev);
206
207 if (uaa->usb_mode != USB_MODE_HOST) {
208 return (ENXIO);

--- 285 unchanged lines hidden ---