32#ifndef USB_GLOBAL_INCLUDE_FILE
45#define USB_CTRL_XFER_MAX 2
49#define USB_CFG_ALLOC 0
55#define USB_UNCFG_FLAG_NONE 0x00
56#define USB_UNCFG_FLAG_FREE_EP0 0x02
204#if (USB_HAVE_FIXED_IFACE == 0)
210#if (USB_HAVE_FIXED_ENDPOINT == 0)
237#define USB_DEV_REF_MAX 0xffff
257#define USB_RE_ENUM_DONE 0
258#define USB_RE_ENUM_START 1
259#define USB_RE_ENUM_PWR_OFF 2
260#define USB_RE_ENUM_SET_CONFIG 3
276#if USB_HAVE_COMPAT_LINUX
291#if (USB_HAVE_FIXED_CONFIG != 0)
309 int,
int,
int, uid_t, gid_t,
int);
314 uint8_t iface_index);
317 uint8_t iface_index);
336uint8_t usbd_enum_lock_sig(
struct usb_device *);
345#if USB_HAVE_TT_SUPPORT
enum usb_hc_mode usb_mode
struct usb_config_descriptor * cdesc
struct usb_endpoint ctrl_ep
struct usb_device * parent_hs_hub
union usb_device_scratch scratch
struct usb_xfer * ctrl_xfer[USB_CTRL_XFER_MAX]
struct usb_device_statistics stats_err
struct usb_interface * ifaces
struct usb_power_save pwr_save
struct usb_device_statistics stats_ok
struct usb_device_descriptor ddesc
uint8_t curr_config_index
uint32_t clear_stall_errors
struct usb_temp_data * usb_template_ptr
uint16_t autoQuirk[USB_MAX_AUTO_QUIRK]
uint8_t controller_slot_id
struct usb_device * parent_hub
struct usb_endpoint * ep_curr
uint8_t next_config_index
uint8_t re_enumerate_wait
struct usb_endpoint_ss_comp_descriptor ctrl_ep_comp_desc
struct usb_device_statistics stats_cancelled
struct usb_endpoint * endpoints
struct usb_udev_msg cs_msg[2]
uint8_t driver_added_refcount
struct usb_device_flags flags
struct usb_endpoint_descriptor ctrl_ep_desc
TAILQ_HEAD(, urb) bsd_urb_list
struct usb_xfer * bsd_xfer[2]
usb_frlength_t fbsd_buf_size
struct usb_endpoint_descriptor desc
struct usb_host_endpoint * endpoint
struct usb_interface_descriptor desc
const struct usb_hw_ep_profile * pf
struct usb_hw_ep_scratch_sub ep[USB_EP_MAX]
struct usb_config_descriptor * cd
const struct usb_bus_methods * methods
uint8_t bmInAlloc[(USB_EP_MAX+15)/16]
uint8_t bmOutAlloc[(USB_EP_MAX+15)/16]
struct usb_hw_ep_scratch_sub * ep_max
usb_ticks_t last_xfer_time
uint8_t bAlternateSetting
enum usb_dev_speed usb_speed
uint8_t bConfigurationValue
struct usb_setup_params parm
struct usb_temp_setup temp_setup[1]
struct usb_device_scratch::@85 xfer_setup[1]
struct usb_hw_ep_scratch hw_ep_scratch[1]
void usb_detach_device(struct usb_device *, uint8_t, uint8_t)
uint8_t uhub_count_active_host_ports(struct usb_device *, enum usb_dev_speed)
void usb_free_device(struct usb_device *, uint8_t)
uint8_t usbd_ctrl_lock(struct usb_device *)
#define USB_CTRL_XFER_MAX
void usbd_ctrl_unlock(struct usb_device *)
void usbd_enum_unlock(struct usb_device *)
void usb_set_device_strings(struct usb_device *)
usb_error_t usbd_set_endpoint_stall(struct usb_device *udev, struct usb_endpoint *ep, uint8_t do_stall)
void usbd_sr_lock(struct usb_device *)
void usb_set_device_state(struct usb_device *, enum usb_dev_state)
usb_error_t usb_probe_and_attach(struct usb_device *udev, uint8_t iface_index)
void usb_devinfo(struct usb_device *udev, char *dst_ptr, uint16_t dst_len)
void usb_get_langid(struct usb_device *)
usb_error_t usb_reset_iface_endpoints(struct usb_device *udev, uint8_t iface_index)
struct usb_endpoint * usb_endpoint_foreach(struct usb_device *udev, struct usb_endpoint *ep)
usb_error_t usbd_set_config_index(struct usb_device *udev, uint8_t index)
void usb_linux_free_device(struct usb_device *dev)
uint8_t usb_peer_can_wakeup(struct usb_device *udev)
usb_error_t usb_suspend_resume(struct usb_device *udev, uint8_t do_suspend)
const char * usb_statestr(enum usb_dev_state state)
void usbd_sr_unlock(struct usb_device *)
enum usb_dev_state usb_get_device_state(struct usb_device *)
struct usb_device * usb_alloc_device(device_t parent_dev, struct usb_bus *bus, struct usb_device *parent_hub, uint8_t depth, uint8_t port_index, uint8_t port_no, enum usb_dev_speed speed, enum usb_hc_mode mode)
uint8_t usbd_enum_lock(struct usb_device *)
uint8_t usbd_enum_is_locked(struct usb_device *)
struct usb_device_flags __aligned
#define USB_MAX_AUTO_QUIRK