FreeBSD kernel usb device Code
usb_device Struct Reference

#include <usb_device.h>

Collaboration diagram for usb_device:

Data Fields

struct usb_device_statistics stats_err
 
struct usb_device_statistics stats_ok
 
struct usb_device_statistics stats_cancelled
 
struct usb_udev_msg cs_msg [2]
 
struct sx enum_sx
 
struct sx sr_sx
 
struct sx ctrl_sx
 
struct mtx device_mtx
 
struct cv ctrlreq_cv
 
struct cv ref_cv
 
struct usb_interfaceifaces
 
struct usb_endpoint ctrl_ep
 
struct usb_endpointendpoints
 
struct usb_power_save pwr_save
 
struct usb_busbus
 
device_t parent_dev
 
struct usb_deviceparent_hub
 
struct usb_deviceparent_hs_hub
 
struct usb_config_descriptorcdesc
 
struct usb_hubhub
 
struct usb_xferctrl_xfer [USB_CTRL_XFER_MAX]
 
struct usb_temp_datausb_template_ptr
 
struct usb_endpointep_curr
 
usb_ticks_t plugtime
 
enum usb_dev_state state
 
enum usb_dev_speed speed
 
uint16_t refcount
 
uint16_t power
 
uint16_t langid
 
uint16_t autoQuirk [USB_MAX_AUTO_QUIRK]
 
uint8_t address
 
uint8_t device_index
 
uint8_t controller_slot_id
 
uint8_t next_config_index
 
uint8_t curr_config_index
 
uint8_t curr_config_no
 
uint8_t depth
 
uint8_t port_index
 
uint8_t port_no
 
uint8_t hs_hub_addr
 
uint8_t hs_port_no
 
uint8_t driver_added_refcount
 
uint8_t power_mode
 
uint8_t re_enumerate_wait
 
uint8_t ifaces_max
 
uint8_t endpoints_max
 
struct usb_device_flags flags
 
struct usb_endpoint_descriptor ctrl_ep_desc
 
struct usb_endpoint_ss_comp_descriptor ctrl_ep_comp_desc
 
struct usb_device_descriptor ddesc
 
char * serial
 
char * manufacturer
 
char * product
 
uint32_t clear_stall_errors
 
union usb_device_scratch scratch
 

Detailed Description

Definition at line 190 of file usb_device.h.

Field Documentation

◆ address

◆ autoQuirk

uint16_t usb_device::autoQuirk[USB_MAX_AUTO_QUIRK]

Definition at line 241 of file usb_device.h.

Referenced by usb_test_quirk(), and usbd_add_dynamic_quirk().

◆ bus

struct usb_bus* usb_device::bus

Definition at line 216 of file usb_device.h.

Referenced by atmegadci_clear_stall(), atmegadci_ep_init(), atmegadci_roothub_exec(), atmegadci_set_stall(), atmegadci_xfer_setup(), avr32dci_clear_stall(), avr32dci_ep_init(), avr32dci_roothub_exec(), avr32dci_set_stall(), avr32dci_xfer_setup(), device_set_usb_desc(), dwc_otg_clear_stall(), dwc_otg_device_resume(), dwc_otg_device_state_change(), dwc_otg_ep_init(), dwc_otg_get_hw_ep_profile(), dwc_otg_roothub_exec(), dwc_otg_set_stall(), ehci_device_resume(), ehci_device_suspend(), ehci_ep_init(), ehci_roothub_exec(), ehci_xfer_setup(), musbotg_clear_stall(), musbotg_ep_init(), musbotg_get_dma_delay(), musbotg_get_hw_ep_profile(), musbotg_roothub_exec(), musbotg_set_stall(), musbotg_xfer_setup(), ohci_device_resume(), ohci_device_suspend(), ohci_ep_init(), ohci_roothub_exec(), uhci_device_resume(), uhci_device_suspend(), uhci_ep_init(), uhci_roothub_exec(), uhci_xfer_setup(), uhub_child_location(), uhub_count_active_host_ports(), uhub_detach(), uhub_explore_sub(), uhub_find_iface_index(), uhub_intr_callback(), uhub_reattach_port(), uhub_root_intr(), uhub_suspend_resume_port(), usb_alloc_device(), usb_bus_attach(), usb_bus_detach(), usb_bus_explore(), usb_bus_port_get_device(), usb_bus_port_set_device(), usb_bus_resume(), usb_bus_shutdown(), usb_bus_suspend(), usb_config_parse(), usb_dev_resume_peer(), usb_dev_suspend_peer(), usb_do_clear_stall_callback(), usb_dump_device(), usb_fdt_get_node(), usb_free_device(), usb_handle_get_stall(), usb_handle_remote_wakeup(), usb_handle_request(), usb_hs_bandwidth_adjust(), usb_hw_ep_resolve(), usb_init_endpoint(), usb_isoc_time_expand(), usb_needs_explore(), usb_peer_should_wakeup(), usb_proc_explore_lock(), usb_proc_explore_msignal(), usb_proc_explore_mwait(), usb_proc_explore_unlock(), usb_set_device_state(), usb_suspend_resume(), usb_trigger_reprobe_on_off(), usbd_clear_data_toggle(), usbd_clear_stall_locked(), usbd_clear_stall_proc(), usbd_ctrl_transfer_setup(), usbd_do_request_flags(), usbd_filter_power_mode(), usbd_get_bus_index(), usbd_get_dma_delay(), usbd_get_hr_func(), usbd_pipe_start(), usbd_req_get_descriptor_ptr(), usbd_req_set_address(), usbd_set_endpoint_mode(), usbd_set_endpoint_stall(), usbd_set_power_mode(), usbd_start_re_enumerate(), usbd_start_set_config(), usbd_transfer_poll(), usbd_transfer_setup(), uss820dci_clear_stall(), uss820dci_ep_init(), uss820dci_roothub_exec(), uss820dci_set_stall(), uss820dci_xfer_setup(), xhci_alloc_device_ext(), xhci_configure_device(), xhci_configure_endpoint(), xhci_configure_mask(), xhci_device_init(), xhci_device_resume(), xhci_device_state_change(), xhci_device_suspend(), xhci_device_uninit(), xhci_ep_clear_stall(), xhci_ep_init(), xhci_free_device_ext(), xhci_get_endpoint_ext(), xhci_get_endpoint_state(), xhci_roothub_exec(), and xhci_set_address().

◆ cdesc

◆ clear_stall_errors

uint32_t usb_device::clear_stall_errors

Definition at line 287 of file usb_device.h.

Referenced by usb_do_clear_stall_callback(), and usbd_ctrl_transfer_setup().

◆ controller_slot_id

◆ cs_msg

struct usb_udev_msg usb_device::cs_msg[2]

◆ ctrl_ep

struct usb_endpoint usb_device::ctrl_ep

Definition at line 209 of file usb_device.h.

Referenced by usb_alloc_device(), usbd_get_endpoint(), and usbd_get_ep_by_addr().

◆ ctrl_ep_comp_desc

struct usb_endpoint_ss_comp_descriptor usb_device::ctrl_ep_comp_desc

Definition at line 269 of file usb_device.h.

Referenced by usb_alloc_device().

◆ ctrl_ep_desc

struct usb_endpoint_descriptor usb_device::ctrl_ep_desc

Definition at line 268 of file usb_device.h.

Referenced by usb_alloc_device(), usbd_ctrl_transfer_setup(), and xhci_set_address().

◆ ctrl_sx

struct sx usb_device::ctrl_sx

Definition at line 200 of file usb_device.h.

Referenced by usb_alloc_device(), usb_free_device(), usbd_ctrl_lock(), and usbd_ctrl_unlock().

◆ ctrl_xfer

◆ ctrlreq_cv

struct cv usb_device::ctrlreq_cv

◆ curr_config_index

uint8_t usb_device::curr_config_index

◆ curr_config_no

uint8_t usb_device::curr_config_no

◆ ddesc

◆ depth

uint8_t usb_device::depth

◆ device_index

◆ device_mtx

struct mtx usb_device::device_mtx

◆ driver_added_refcount

uint8_t usb_device::driver_added_refcount

Definition at line 254 of file usb_device.h.

Referenced by usb_peer_should_wakeup().

◆ endpoints

◆ endpoints_max

◆ enum_sx

◆ ep_curr

struct usb_endpoint* usb_device::ep_curr

Definition at line 224 of file usb_device.h.

Referenced by usb_config_parse(), and usb_do_clear_stall_callback().

◆ flags

◆ hs_hub_addr

◆ hs_port_no

◆ hub

◆ ifaces

struct usb_interface* usb_device::ifaces

Definition at line 205 of file usb_device.h.

Referenced by usb_config_parse(), and usbd_get_iface().

◆ ifaces_max

uint8_t usb_device::ifaces_max

Definition at line 261 of file usb_device.h.

Referenced by usb_config_parse(), usbd_get_iface(), and usbd_interface_count().

◆ langid

uint16_t usb_device::langid

Definition at line 240 of file usb_device.h.

Referenced by usb_dump_device(), usb_get_langid(), and usbd_req_get_string_any().

◆ manufacturer

char* usb_device::manufacturer

Definition at line 273 of file usb_device.h.

Referenced by usb_free_device(), usb_get_manufacturer(), and usb_set_device_strings().

◆ next_config_index

uint8_t usb_device::next_config_index

Definition at line 246 of file usb_device.h.

Referenced by usbd_start_set_config().

◆ parent_dev

device_t usb_device::parent_dev

◆ parent_hs_hub

◆ parent_hub

◆ plugtime

usb_ticks_t usb_device::plugtime

Definition at line 232 of file usb_device.h.

Referenced by usb_alloc_device().

◆ port_index

uint8_t usb_device::port_index

Definition at line 250 of file usb_device.h.

Referenced by find_udev_in_children(), usb_alloc_device(), and usb_free_device().

◆ port_no

◆ power

uint16_t usb_device::power

Definition at line 239 of file usb_device.h.

Referenced by usb_alloc_device(), usb_dump_device(), and usbd_set_config_index().

◆ power_mode

uint8_t usb_device::power_mode

Definition at line 255 of file usb_device.h.

Referenced by usb_alloc_device(), usb_peer_should_wakeup(), and usbd_set_power_mode().

◆ product

char* usb_device::product

Definition at line 274 of file usb_device.h.

Referenced by usb_free_device(), usb_get_product(), and usb_set_device_strings().

◆ pwr_save

struct usb_power_save usb_device::pwr_save

Definition at line 215 of file usb_device.h.

Referenced by usb_alloc_device(), usb_dev_resume_peer(), and usb_peer_should_wakeup().

◆ re_enumerate_wait

uint8_t usb_device::re_enumerate_wait

◆ ref_cv

struct cv usb_device::ref_cv

◆ refcount

uint16_t usb_device::refcount

◆ scratch

◆ serial

char* usb_device::serial

Definition at line 272 of file usb_device.h.

Referenced by usb_free_device(), usb_get_serial(), and usb_set_device_strings().

◆ speed

◆ sr_sx

struct sx usb_device::sr_sx

◆ state

◆ stats_cancelled

struct usb_device_statistics usb_device::stats_cancelled

Definition at line 194 of file usb_device.h.

Referenced by usbd_transfer_done().

◆ stats_err

struct usb_device_statistics usb_device::stats_err

Definition at line 192 of file usb_device.h.

Referenced by usbd_transfer_done().

◆ stats_ok

struct usb_device_statistics usb_device::stats_ok

Definition at line 193 of file usb_device.h.

Referenced by usbd_transfer_done().

◆ usb_template_ptr


The documentation for this struct was generated from the following file: