usb_device.h (250207) | usb_device.h (257206) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_device.h 250207 2013-05-03 11:10:04Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_device.h 257206 2013-10-27 10:09:53Z 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. --- 223 unchanged lines hidden (view full) --- 233 uint8_t depth; /* distance from root HUB */ 234 uint8_t port_index; /* parent HUB port index */ 235 uint8_t port_no; /* parent HUB port number */ 236 uint8_t hs_hub_addr; /* high-speed HUB address */ 237 uint8_t hs_port_no; /* high-speed HUB port number */ 238 uint8_t driver_added_refcount; /* our driver added generation count */ 239 uint8_t power_mode; /* see USB_POWER_XXX */ 240 uint8_t re_enumerate_wait; /* set if re-enum. is in progress */ | 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. --- 223 unchanged lines hidden (view full) --- 233 uint8_t depth; /* distance from root HUB */ 234 uint8_t port_index; /* parent HUB port index */ 235 uint8_t port_no; /* parent HUB port number */ 236 uint8_t hs_hub_addr; /* high-speed HUB address */ 237 uint8_t hs_port_no; /* high-speed HUB port number */ 238 uint8_t driver_added_refcount; /* our driver added generation count */ 239 uint8_t power_mode; /* see USB_POWER_XXX */ 240 uint8_t re_enumerate_wait; /* set if re-enum. is in progress */ |
241#define USB_RE_ENUM_DONE 0 242#define USB_RE_ENUM_START 1 243#define USB_RE_ENUM_PWR_OFF 2 |
|
241 uint8_t ifaces_max; /* number of interfaces present */ 242 uint8_t endpoints_max; /* number of endpoints present */ 243 244 /* the "flags" field is write-protected by "bus->mtx" */ 245 246 struct usb_device_flags flags; 247 248 struct usb_endpoint_descriptor ctrl_ep_desc; /* for endpoint 0 */ --- 68 unchanged lines hidden --- | 244 uint8_t ifaces_max; /* number of interfaces present */ 245 uint8_t endpoints_max; /* number of endpoints present */ 246 247 /* the "flags" field is write-protected by "bus->mtx" */ 248 249 struct usb_device_flags flags; 250 251 struct usb_endpoint_descriptor ctrl_ep_desc; /* for endpoint 0 */ --- 68 unchanged lines hidden --- |