FreeBSD kernel usb device Code
|
#include <usb_bus.h>
Data Fields | |
struct usb_bus_msg | explore_msg [2] |
struct usb_bus_msg | detach_msg [2] |
struct usb_bus_msg | attach_msg [2] |
struct usb_bus_msg | suspend_msg [2] |
struct usb_bus_msg | resume_msg [2] |
struct usb_bus_msg | reset_msg [2] |
struct usb_bus_msg | shutdown_msg [2] |
struct mtx | bus_mtx |
struct mtx | bus_spin_lock |
struct usb_xfer_queue | intr_q |
struct usb_callout | power_wdog |
device_t | parent |
device_t | bdev |
const struct usb_bus_methods * | methods |
struct usb_device ** | devices |
struct ifnet * | ifp |
usb_power_mask_t | hw_power_state |
usb_size_t | uframe_usage [USB_HS_MICRO_FRAMES_MAX] |
uint16_t | isoc_time_last |
uint8_t | alloc_failed |
uint8_t | driver_added_refcount |
enum usb_revision | usbrev |
uint8_t | devices_max |
uint8_t | do_probe |
uint8_t | no_explore |
uint8_t | dma_bits |
uint8_t | control_ep_quirk |
uint8_t usb_bus::alloc_failed |
Definition at line 117 of file usb_bus.h.
Referenced by usb_bus_mem_alloc_all().
struct usb_bus_msg usb_bus::attach_msg[2] |
Definition at line 83 of file usb_bus.h.
Referenced by usb_attach_sub().
device_t usb_bus::bdev |
Definition at line 101 of file usb_bus.h.
Referenced by atmegadci_clear_stall_sub(), atmegadci_roothub_exec(), avr32dci_clear_stall_sub(), avr32dci_roothub_exec(), awusbdrd_attach(), awusbdrd_detach(), device_set_usb_desc(), dwc_otg_attach(), dwc_otg_init(), ehci_hcreset(), ehci_init(), ehci_init_sub(), ehci_msm_attach(), ehci_msm_detach(), ehci_pci_attach(), ehci_pci_take_controller(), ehci_reset(), ehci_roothub_exec(), fsl_ehci_attach(), fsl_ehci_detach(), generic_ehci_attach(), generic_ohci_attach(), generic_xhci_attach(), imx_ehci_attach(), musbotg_init(), mv_ehci_attach(), ohci_controller_init(), ohci_pci_attach(), snps_dwc3_attach_xhci(), uhci_pci_attach(), uhci_reset(), uhci_set_hw_power(), uhci_start(), uhub_child_location(), usb_alloc_device(), usb_bus_attach(), usb_bus_detach(), usb_bus_reset(), usb_bus_resume(), usb_bus_shutdown(), usb_bus_suspend(), usbd_get_bus_index(), xhci_pci_attach(), and xhci_pci_take_controller().
struct mtx usb_bus::bus_mtx |
Definition at line 95 of file usb_bus.h.
Referenced by atmegadci_init(), atmegadci_wakeup_peer(), avr32dci_init(), avr32dci_wakeup_peer(), dwc_otg_init(), dwc_otg_roothub_exec(), dwc_otg_wakeup_peer(), ehci_init(), ehci_roothub_exec(), musbotg_init(), musbotg_roothub_exec(), musbotg_wakeup_host(), musbotg_wakeup_peer(), ohci_init(), ohci_roothub_exec(), uhci_init(), uhci_portreset(), uhci_reset(), uhci_restart(), uhci_roothub_exec(), usb_attach_sub(), usb_bus_mem_alloc_all(), usb_bus_mem_free_all(), usb_needs_explore(), usbd_transfer_setup(), usbd_transfer_unsetup_sub(), uss820dci_init(), xhci_do_command(), xhci_pci_attach(), xhci_reset_command_queue_locked(), and xhci_roothub_exec().
struct mtx usb_bus::bus_spin_lock |
Definition at line 96 of file usb_bus.h.
Referenced by usb_bus_mem_alloc_all(), and usb_bus_mem_free_all().
uint8_t usb_bus::control_ep_quirk |
Definition at line 125 of file usb_bus.h.
Referenced by usbd_ctrl_transfer_setup(), and xhci_init().
struct usb_bus_msg usb_bus::detach_msg[2] |
Definition at line 82 of file usb_bus.h.
Referenced by usb_attach_sub().
struct usb_device** usb_bus::devices |
Definition at line 108 of file usb_bus.h.
Referenced by awusbdrd_attach(), dwc_otg_init(), ehci_msm_attach(), ehci_pci_attach(), fsl_ehci_attach(), generic_ehci_attach(), generic_ohci_attach(), generic_xhci_attach(), imx_ehci_attach(), mv_ehci_attach(), ohci_pci_attach(), uhci_pci_attach(), usb_alloc_device(), usb_bus_attach(), usb_bus_detach(), usb_bus_explore(), usb_bus_mem_alloc_all(), usb_bus_port_get_device(), usb_bus_port_set_device(), usb_bus_resume(), usb_bus_shutdown(), usb_bus_suspend(), usb_needs_explore(), usb_trigger_reprobe_on_off(), and xhci_init().
uint8_t usb_bus::devices_max |
Definition at line 121 of file usb_bus.h.
Referenced by awusbdrd_attach(), dwc_otg_init(), ehci_msm_attach(), ehci_pci_attach(), fsl_ehci_attach(), generic_ehci_attach(), generic_ohci_attach(), generic_xhci_attach(), imx_ehci_attach(), mv_ehci_attach(), ohci_pci_attach(), uhci_pci_attach(), usb_alloc_device(), usb_bus_mem_alloc_all(), and xhci_init().
uint8_t usb_bus::dma_bits |
Definition at line 124 of file usb_bus.h.
Referenced by awusbdrd_attach(), dwc_otg_init(), ehci_msm_attach(), ehci_pci_attach(), fsl_ehci_attach(), generic_ehci_attach(), generic_ohci_attach(), imx_ehci_attach(), mv_ehci_attach(), ohci_pci_attach(), uhci_pci_attach(), usb_bus_mem_alloc_all(), usbd_transfer_setup(), and xhci_init().
uint8_t usb_bus::do_probe |
Definition at line 122 of file usb_bus.h.
Referenced by usb_bus_explore(), and usb_needs_explore().
uint8_t usb_bus::driver_added_refcount |
Definition at line 118 of file usb_bus.h.
Referenced by uhub_explore_sub(), usb_bus_explore(), and usb_peer_should_wakeup().
struct usb_bus_msg usb_bus::explore_msg[2] |
Definition at line 81 of file usb_bus.h.
Referenced by usb_attach_sub(), and usb_needs_explore().
usb_power_mask_t usb_bus::hw_power_state |
Definition at line 112 of file usb_bus.h.
Referenced by usb_bus_attach(), usb_bus_resume(), usb_bus_shutdown(), and usb_bus_suspend().
struct ifnet* usb_bus::ifp |
Definition at line 110 of file usb_bus.h.
Referenced by usbpf_clone_create(), usbpf_clone_destroy(), usbpf_clone_match(), usbpf_detach(), and usbpf_uninit().
struct usb_xfer_queue usb_bus::intr_q |
Definition at line 97 of file usb_bus.h.
Referenced by atmegadci_interrupt_poll(), atmegadci_start_standard_chain(), avr32dci_interrupt_poll(), avr32dci_start_standard_chain(), dwc_otg_interrupt_complete_locked(), dwc_otg_interrupt_poll_locked(), dwc_otg_start_standard_chain(), dwc_otg_update_host_transfer_schedule_locked(), ehci_device_resume(), ehci_device_suspend(), ehci_interrupt_poll(), ehci_transfer_intr_enqueue(), musbotg_interrupt_poll(), musbotg_start_standard_chain(), ohci_device_resume(), ohci_device_suspend(), ohci_interrupt_poll(), ohci_transfer_intr_enqueue(), uhci_device_resume(), uhci_device_suspend(), uhci_interrupt_poll(), uhci_transfer_intr_enqueue(), usb_bus_mem_alloc_all(), uss820dci_interrupt_complete_locked(), uss820dci_interrupt_poll_locked(), uss820dci_start_standard_chain(), xhci_configure_msg(), xhci_device_generic_start(), and xhci_start_dma_delay().
uint16_t usb_bus::isoc_time_last |
Definition at line 115 of file usb_bus.h.
Referenced by usb_isoc_time_expand().
const struct usb_bus_methods* usb_bus::methods |
Definition at line 107 of file usb_bus.h.
Referenced by atmegadci_init(), avr32dci_init(), dwc_otg_init(), ehci_init(), musbotg_init(), ohci_init(), uhci_init(), usb_alloc_device(), usb_bus_attach(), usb_bus_resume(), usb_bus_shutdown(), usb_bus_suspend(), usb_dev_suspend_peer(), usb_hw_ep_resolve(), usb_init_endpoint(), usb_set_device_state(), usbd_clear_stall_locked(), usbd_filter_power_mode(), usbd_get_dma_delay(), usbd_get_hr_func(), usbd_pipe_start(), usbd_req_set_address(), usbd_set_endpoint_mode(), usbd_set_endpoint_stall(), usbd_transfer_setup(), uss820dci_init(), and xhci_init().
uint8_t usb_bus::no_explore |
Definition at line 123 of file usb_bus.h.
Referenced by usb_bus_explore(), usb_bus_reset(), usb_bus_resume(), usb_bus_shutdown(), and usb_bus_suspend().
device_t usb_bus::parent |
Definition at line 100 of file usb_bus.h.
Referenced by awusbdrd_attach(), dwc_otg_attach(), dwc_otg_init(), ehci_msm_attach(), ehci_pci_attach(), fsl_ehci_attach(), generic_ehci_attach(), generic_ohci_attach(), generic_xhci_attach(), imx_ehci_attach(), mv_ehci_attach(), ohci_pci_attach(), uhci_pci_attach(), usb_bus_mem_alloc_all(), usb_fdt_get_node(), usbpf_attach(), usbpf_clone_create(), usbpf_detach(), xhci_halt_controller(), xhci_init(), xhci_reset_controller(), xhci_set_address(), and xhci_start_controller().
struct usb_callout usb_bus::power_wdog |
Definition at line 98 of file usb_bus.h.
Referenced by usb_bus_mem_alloc_all().
struct usb_bus_msg usb_bus::reset_msg[2] |
Definition at line 86 of file usb_bus.h.
Referenced by usb_attach_sub().
struct usb_bus_msg usb_bus::resume_msg[2] |
Definition at line 85 of file usb_bus.h.
Referenced by usb_attach_sub().
struct usb_bus_msg usb_bus::shutdown_msg[2] |
Definition at line 87 of file usb_bus.h.
Referenced by usb_attach_sub().
struct usb_bus_msg usb_bus::suspend_msg[2] |
Definition at line 84 of file usb_bus.h.
Referenced by usb_attach_sub().
usb_size_t usb_bus::uframe_usage[USB_HS_MICRO_FRAMES_MAX] |
enum usb_revision usb_bus::usbrev |
Definition at line 119 of file usb_bus.h.
Referenced by atmegadci_init(), avr32dci_init(), dwc_otg_init(), ehci_init(), generic_ehci_attach(), musbotg_init(), ohci_init(), uhci_pci_attach(), usb_bus_attach(), uss820dci_init(), and xhci_init().