最終更新:2016-02-08 (月) 16:08:42 (1227d)  

uapi/linux/usb/ch9.h はてなブックマークを見る
Top / uapi / linux / usb / ch9.h

This file holds USB constants and structures that are needed for
USB device APIs.  These are used by the USB device model, which is
defined in chapter 9 of the USB 2.0 specification and in the
Wireless USB 1.0 (spread around).  Linux has several APIs in C that
need these:
 - the master/host side Linux-USB kernel driver API;
 - the "usbfs" user space API; and
 - the Linux "gadget" slave/device/peripheral side driver API.

構造体

  • usb_ctrlrequest
  • usb_descriptor_header?
  • usb_device_descriptor
  • usb_config_descriptor
  • usb_string_descriptor?
  • usb_interface_descriptor?
  • usb_endpoint_descriptor
  • usb_ss_ep_comp_descriptor?
  • usb_qualifier_descriptor? - Device Qualifier descriptor
  • usb_otg_descriptor? -
  • usb_debug_descriptor?
  • usb_interface_assoc_descriptor?
  • usb_security_descriptor?
  • usb_key_descriptor?
  • usb_encryption_descriptor?
  • usb_bos_descriptor?
  • usb_dev_cap_header?
  • usb_wireless_cap_descriptor?
  • usb_ext_cap_descriptor?
  • usb_ss_cap_descriptor?
  • usb_ss_container_id_descriptor?
  • usb_wireless_ep_comp_descriptor?
  • usb_handshake?
  • usb_connection_context?

enum

  • usb_device_speed?
  • usb_device_state?
  • usb3_link_state?
  • usb_set_sel_req?

USB/標準リクエスト

USB/ディスクリプタ

USB 2.0 spec table 9.5

these are from a minor usb 2.0 revision (ECN)

  • USB_DT_OTG?0x09usb_otg_descriptor?
    USB_DT_DEBUG?0x0ausb_debug_descriptor?
    USB_DT_INTERFACE_ASSOCIATION?0x0busb_interface_assoc_descriptor?

these are from the Wireless USB spec

  • USB_DT_SECURITY?0x0cusb_security_descriptor?
    USB_DT_KEY?0x0dusb_key_descriptor?
    USB_DT_ENCRYPTION_TYPE?0x0eusb_encryption_descriptor?
    USB_DT_BOS?0x0fusb_bos_descriptor?
    USB_DT_DEVICE_CAPABILITY?0x10usb_wireless_cap_descriptor?
    USB_DT_WIRELESS_ENDPOINT_COMP?0x11
    USB_DT_WIRE_ADAPTER?0x21
    USB_DT_RPIPE?0x22
    USB_DT_CS_RADIO_CONTROL?0x23

From the T10 UAS specification */

  • USB_DT_PIPE_USAGE?0x24

From the USB 3.0 spec

  • USB_DT_SS_ENDPOINT_COMP?0x30usb_ss_ep_comp_descriptor?

関連