usb_device.h (246759) | usb_device.h (250204) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_device.h 246759 2013-02-13 12:35:17Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_device.h 250204 2013-05-03 09:23:06Z hselasky $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. 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 9 * notice, this list of conditions and the following disclaimer. --- 171 unchanged lines hidden (view full) --- 181struct usb_device { 182 struct usb_clear_stall_msg cs_msg[2]; /* generic clear stall 183 * messages */ 184 struct sx enum_sx; 185 struct sx sr_sx; 186 struct mtx device_mtx; 187 struct cv ctrlreq_cv; 188 struct cv ref_cv; | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. 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 9 * notice, this list of conditions and the following disclaimer. --- 171 unchanged lines hidden (view full) --- 181struct usb_device { 182 struct usb_clear_stall_msg cs_msg[2]; /* generic clear stall 183 * messages */ 184 struct sx enum_sx; 185 struct sx sr_sx; 186 struct mtx device_mtx; 187 struct cv ctrlreq_cv; 188 struct cv ref_cv; |
189#if (USB_HAVE_FIXED_IFACE == 0) |
|
189 struct usb_interface *ifaces; | 190 struct usb_interface *ifaces; |
191#else 192 struct usb_interface ifaces[USB_IFACE_MAX]; 193#endif |
|
190 struct usb_endpoint ctrl_ep; /* Control Endpoint 0 */ | 194 struct usb_endpoint ctrl_ep; /* Control Endpoint 0 */ |
195#if (USB_HAVE_FIXED_ENDPOINT == 0) |
|
191 struct usb_endpoint *endpoints; | 196 struct usb_endpoint *endpoints; |
197#else 198 struct usb_endpoint endpoints[USB_MAX_EP_UNITS]; 199#endif |
|
192 struct usb_power_save pwr_save;/* power save data */ 193 struct usb_bus *bus; /* our USB BUS */ 194 device_t parent_dev; /* parent device */ 195 struct usb_device *parent_hub; 196 struct usb_device *parent_hs_hub; /* high-speed parent HUB */ 197 struct usb_config_descriptor *cdesc; /* full config descr */ 198 struct usb_hub *hub; /* only if this is a hub */ 199 struct usb_xfer *ctrl_xfer[USB_CTRL_XFER_MAX]; --- 105 unchanged lines hidden --- | 200 struct usb_power_save pwr_save;/* power save data */ 201 struct usb_bus *bus; /* our USB BUS */ 202 device_t parent_dev; /* parent device */ 203 struct usb_device *parent_hub; 204 struct usb_device *parent_hs_hub; /* high-speed parent HUB */ 205 struct usb_config_descriptor *cdesc; /* full config descr */ 206 struct usb_hub *hub; /* only if this is a hub */ 207 struct usb_xfer *ctrl_xfer[USB_CTRL_XFER_MAX]; --- 105 unchanged lines hidden --- |