Deleted Added
full compact
urio.c (190749) urio.c (192499)
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 190749 2009-04-05 21:24:15Z piso $");
32__FBSDID("$FreeBSD: head/sys/dev/usb/storage/urio.c 192499 2009-05-21 00:04:17Z 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)

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

184DRIVER_MODULE(urio, uhub, urio_driver, urio_devclass, NULL, 0);
185MODULE_DEPEND(urio, usb, 1, 1, 1);
186
187static int
188urio_probe(device_t dev)
189{
190 struct usb2_attach_arg *uaa = device_get_ivars(dev);
191
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)

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

184DRIVER_MODULE(urio, uhub, urio_driver, urio_devclass, NULL, 0);
185MODULE_DEPEND(urio, usb, 1, 1, 1);
186
187static int
188urio_probe(device_t dev)
189{
190 struct usb2_attach_arg *uaa = device_get_ivars(dev);
191
192 if (uaa->usb2_mode != USB_MODE_HOST) {
192 if (uaa->usb_mode != USB_MODE_HOST) {
193 return (ENXIO);
194 }
195 if ((((uaa->info.idVendor == USB_VENDOR_DIAMOND) &&
196 (uaa->info.idProduct == USB_PRODUCT_DIAMOND_RIO500USB)) ||
197 ((uaa->info.idVendor == USB_VENDOR_DIAMOND2) &&
198 ((uaa->info.idProduct == USB_PRODUCT_DIAMOND2_RIO600USB) ||
199 (uaa->info.idProduct == USB_PRODUCT_DIAMOND2_RIO800USB)))))
200 return (0);

--- 275 unchanged lines hidden ---
193 return (ENXIO);
194 }
195 if ((((uaa->info.idVendor == USB_VENDOR_DIAMOND) &&
196 (uaa->info.idProduct == USB_PRODUCT_DIAMOND_RIO500USB)) ||
197 ((uaa->info.idVendor == USB_VENDOR_DIAMOND2) &&
198 ((uaa->info.idProduct == USB_PRODUCT_DIAMOND2_RIO600USB) ||
199 (uaa->info.idProduct == USB_PRODUCT_DIAMOND2_RIO800USB)))))
200 return (0);

--- 275 unchanged lines hidden ---