Deleted Added
full compact
ufm.c (190749) ufm.c (192499)
1/*-
2 * Copyright (c) 2001 M. Warner Losh
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) 2001 M. Warner Losh
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/misc/ufm.c 190749 2009-04-05 21:24:15Z piso $");
32__FBSDID("$FreeBSD: head/sys/dev/usb/misc/ufm.c 192499 2009-05-21 00:04:17Z thompsa $");
33
34
35#include "usbdevs.h"
36#include <dev/usb/usb.h>
37#include <dev/usb/usb_mfunc.h>
38#include <dev/usb/usb_error.h>
39#include <dev/usb/ufm_ioctl.h>
40

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

107DRIVER_MODULE(ufm, uhub, ufm_driver, ufm_devclass, NULL, 0);
108MODULE_DEPEND(ufm, usb, 1, 1, 1);
109
110static int
111ufm_probe(device_t dev)
112{
113 struct usb2_attach_arg *uaa = device_get_ivars(dev);
114
33
34
35#include "usbdevs.h"
36#include <dev/usb/usb.h>
37#include <dev/usb/usb_mfunc.h>
38#include <dev/usb/usb_error.h>
39#include <dev/usb/ufm_ioctl.h>
40

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

107DRIVER_MODULE(ufm, uhub, ufm_driver, ufm_devclass, NULL, 0);
108MODULE_DEPEND(ufm, usb, 1, 1, 1);
109
110static int
111ufm_probe(device_t dev)
112{
113 struct usb2_attach_arg *uaa = device_get_ivars(dev);
114
115 if (uaa->usb2_mode != USB_MODE_HOST) {
115 if (uaa->usb_mode != USB_MODE_HOST) {
116 return (ENXIO);
117 }
118 if ((uaa->info.idVendor == USB_VENDOR_CYPRESS) &&
119 (uaa->info.idProduct == USB_PRODUCT_CYPRESS_FMRADIO)) {
120 return (0);
121 }
122 return (ENXIO);
123}

--- 203 unchanged lines hidden ---
116 return (ENXIO);
117 }
118 if ((uaa->info.idVendor == USB_VENDOR_CYPRESS) &&
119 (uaa->info.idProduct == USB_PRODUCT_CYPRESS_FMRADIO)) {
120 return (0);
121 }
122 return (ENXIO);
123}

--- 203 unchanged lines hidden ---