FreeBSD kernel usb device Code
usb_hub.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usb_port
 
struct  usb_hub
 

Macros

#define USB_RESTART_MAX   5
 

Functions

void usb_hs_bandwidth_alloc (struct usb_xfer *xfer)
 
void usb_hs_bandwidth_free (struct usb_xfer *xfer)
 
void usb_bus_port_set_device (struct usb_bus *bus, struct usb_port *up, struct usb_device *udev, uint8_t device_index)
 
struct usb_deviceusb_bus_port_get_device (struct usb_bus *bus, struct usb_port *up)
 
void usb_needs_explore (struct usb_bus *bus, uint8_t do_probe)
 
void usb_needs_explore_all (void)
 
void usb_bus_power_update (struct usb_bus *bus)
 
void usb_bus_powerd (struct usb_bus *bus)
 
void uhub_root_intr (struct usb_bus *, const uint8_t *, uint8_t)
 
usb_error_t uhub_query_info (struct usb_device *, uint8_t *, uint8_t *)
 
void uhub_explore_handle_re_enumerate (struct usb_device *)
 

Macro Definition Documentation

◆ USB_RESTART_MAX

#define USB_RESTART_MAX   5

Definition at line 37 of file usb_hub.h.

Function Documentation

◆ uhub_explore_handle_re_enumerate()

◆ uhub_query_info()

◆ uhub_root_intr()

void uhub_root_intr ( struct usb_bus bus,
const uint8_t *  ptr,
uint8_t  len 
)

Definition at line 960 of file usb_hub.c.

References usb_device::bus, USB_BUS_LOCK_ASSERT, and usb_needs_explore().

Referenced by atmegadci_root_intr(), avr32dci_root_intr(), dwc_otg_root_intr(), ehci_root_intr(), musbotg_root_intr(), ohci_root_intr(), uhci_root_intr(), uss820dci_root_intr(), and xhci_root_intr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usb_bus_port_get_device()

struct usb_device * usb_bus_port_get_device ( struct usb_bus bus,
struct usb_port up 
)

◆ usb_bus_port_set_device()

void usb_bus_port_set_device ( struct usb_bus bus,
struct usb_port up,
struct usb_device udev,
uint8_t  device_index 
)

Definition at line 2212 of file usb_hub.c.

References usb_device::bus, usb_device::device_index, usb_port::device_index, usb_bus::devices, and usb_ref_lock.

Referenced by usb_alloc_device(), and usb_free_device().

Here is the caller graph for this function:

◆ usb_bus_power_update()

void usb_bus_power_update ( struct usb_bus bus)

Referenced by usb_handle_remote_wakeup(), usb_power_wdog(), and usbd_set_power_mode().

Here is the caller graph for this function:

◆ usb_bus_powerd()

void usb_bus_powerd ( struct usb_bus bus)

Referenced by usb_bus_explore().

Here is the caller graph for this function:

◆ usb_hs_bandwidth_alloc()

◆ usb_hs_bandwidth_free()

◆ usb_needs_explore()

void usb_needs_explore ( struct usb_bus bus,
uint8_t  do_probe 
)

◆ usb_needs_explore_all()

void usb_needs_explore_all ( void  )

Definition at line 2300 of file usb_hub.c.

References bus, dev, usb_devclass_ptr, and usb_needs_explore().

Referenced by uhub_driver_added(), and usb_needs_explore_init().

Here is the call graph for this function:
Here is the caller graph for this function: