Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ch9.h File Reference
#include <linux/types.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  usb_ctrlrequest
 
struct  usb_descriptor_header
 
struct  usb_device_descriptor
 
struct  usb_config_descriptor
 
struct  usb_string_descriptor
 
struct  usb_interface_descriptor
 
struct  usb_endpoint_descriptor
 
struct  usb_ss_ep_comp_descriptor
 
struct  usb_qualifier_descriptor
 
struct  usb_otg_descriptor
 
struct  usb_debug_descriptor
 
struct  usb_interface_assoc_descriptor
 
struct  usb_security_descriptor
 
struct  usb_key_descriptor
 
struct  usb_encryption_descriptor
 
struct  usb_bos_descriptor
 
struct  usb_dev_cap_header
 
struct  usb_wireless_cap_descriptor
 
struct  usb_ext_cap_descriptor
 
struct  usb_ss_cap_descriptor
 
struct  usb_ss_container_id_descriptor
 
struct  usb_wireless_ep_comp_descriptor
 
struct  usb_handshake
 
struct  usb_connection_context
 
struct  usb_set_sel_req
 

Macros

#define USB_DIR_OUT   0 /* to device */
 
#define USB_DIR_IN   0x80 /* to host */
 
#define USB_TYPE_MASK   (0x03 << 5)
 
#define USB_TYPE_STANDARD   (0x00 << 5)
 
#define USB_TYPE_CLASS   (0x01 << 5)
 
#define USB_TYPE_VENDOR   (0x02 << 5)
 
#define USB_TYPE_RESERVED   (0x03 << 5)
 
#define USB_RECIP_MASK   0x1f
 
#define USB_RECIP_DEVICE   0x00
 
#define USB_RECIP_INTERFACE   0x01
 
#define USB_RECIP_ENDPOINT   0x02
 
#define USB_RECIP_OTHER   0x03
 
#define USB_RECIP_PORT   0x04
 
#define USB_RECIP_RPIPE   0x05
 
#define USB_REQ_GET_STATUS   0x00
 
#define USB_REQ_CLEAR_FEATURE   0x01
 
#define USB_REQ_SET_FEATURE   0x03
 
#define USB_REQ_SET_ADDRESS   0x05
 
#define USB_REQ_GET_DESCRIPTOR   0x06
 
#define USB_REQ_SET_DESCRIPTOR   0x07
 
#define USB_REQ_GET_CONFIGURATION   0x08
 
#define USB_REQ_SET_CONFIGURATION   0x09
 
#define USB_REQ_GET_INTERFACE   0x0A
 
#define USB_REQ_SET_INTERFACE   0x0B
 
#define USB_REQ_SYNCH_FRAME   0x0C
 
#define USB_REQ_SET_SEL   0x30
 
#define USB_REQ_SET_ISOCH_DELAY   0x31
 
#define USB_REQ_SET_ENCRYPTION   0x0D /* Wireless USB */
 
#define USB_REQ_GET_ENCRYPTION   0x0E
 
#define USB_REQ_RPIPE_ABORT   0x0E
 
#define USB_REQ_SET_HANDSHAKE   0x0F
 
#define USB_REQ_RPIPE_RESET   0x0F
 
#define USB_REQ_GET_HANDSHAKE   0x10
 
#define USB_REQ_SET_CONNECTION   0x11
 
#define USB_REQ_SET_SECURITY_DATA   0x12
 
#define USB_REQ_GET_SECURITY_DATA   0x13
 
#define USB_REQ_SET_WUSB_DATA   0x14
 
#define USB_REQ_LOOPBACK_DATA_WRITE   0x15
 
#define USB_REQ_LOOPBACK_DATA_READ   0x16
 
#define USB_REQ_SET_INTERFACE_DS   0x17
 
#define USB_DEVICE_SELF_POWERED   0 /* (read only) */
 
#define USB_DEVICE_REMOTE_WAKEUP   1 /* dev may initiate wakeup */
 
#define USB_DEVICE_TEST_MODE   2 /* (wired high speed only) */
 
#define USB_DEVICE_BATTERY   2 /* (wireless) */
 
#define USB_DEVICE_B_HNP_ENABLE   3 /* (otg) dev may initiate HNP */
 
#define USB_DEVICE_WUSB_DEVICE   3 /* (wireless)*/
 
#define USB_DEVICE_A_HNP_SUPPORT   4 /* (otg) RH port supports HNP */
 
#define USB_DEVICE_A_ALT_HNP_SUPPORT   5 /* (otg) other RH port does */
 
#define USB_DEVICE_DEBUG_MODE   6 /* (special devices only) */
 
#define TEST_J   1
 
#define TEST_K   2
 
#define TEST_SE0_NAK   3
 
#define TEST_PACKET   4
 
#define TEST_FORCE_EN   5
 
#define USB_DEVICE_U1_ENABLE   48 /* dev may initiate U1 transition */
 
#define USB_DEVICE_U2_ENABLE   49 /* dev may initiate U2 transition */
 
#define USB_DEVICE_LTM_ENABLE   50 /* dev may send LTM */
 
#define USB_INTRF_FUNC_SUSPEND   0 /* function suspend */
 
#define USB_INTR_FUNC_SUSPEND_OPT_MASK   0xFF00
 
#define USB_INTRF_FUNC_SUSPEND_LP   (1 << (8 + 0))
 
#define USB_INTRF_FUNC_SUSPEND_RW   (1 << (8 + 1))
 
#define USB_ENDPOINT_HALT   0 /* IN/OUT will STALL */
 
#define USB_DEV_STAT_U1_ENABLED   2 /* transition into U1 state */
 
#define USB_DEV_STAT_U2_ENABLED   3 /* transition into U2 state */
 
#define USB_DEV_STAT_LTM_ENABLED   4 /* Latency tolerance messages */
 
#define USB_DT_DEVICE   0x01
 
#define USB_DT_CONFIG   0x02
 
#define USB_DT_STRING   0x03
 
#define USB_DT_INTERFACE   0x04
 
#define USB_DT_ENDPOINT   0x05
 
#define USB_DT_DEVICE_QUALIFIER   0x06
 
#define USB_DT_OTHER_SPEED_CONFIG   0x07
 
#define USB_DT_INTERFACE_POWER   0x08
 
#define USB_DT_OTG   0x09
 
#define USB_DT_DEBUG   0x0a
 
#define USB_DT_INTERFACE_ASSOCIATION   0x0b
 
#define USB_DT_SECURITY   0x0c
 
#define USB_DT_KEY   0x0d
 
#define USB_DT_ENCRYPTION_TYPE   0x0e
 
#define USB_DT_BOS   0x0f
 
#define USB_DT_DEVICE_CAPABILITY   0x10
 
#define USB_DT_WIRELESS_ENDPOINT_COMP   0x11
 
#define USB_DT_WIRE_ADAPTER   0x21
 
#define USB_DT_RPIPE   0x22
 
#define USB_DT_CS_RADIO_CONTROL   0x23
 
#define USB_DT_PIPE_USAGE   0x24
 
#define USB_DT_SS_ENDPOINT_COMP   0x30
 
#define USB_DT_CS_DEVICE   (USB_TYPE_CLASS | USB_DT_DEVICE)
 
#define USB_DT_CS_CONFIG   (USB_TYPE_CLASS | USB_DT_CONFIG)
 
#define USB_DT_CS_STRING   (USB_TYPE_CLASS | USB_DT_STRING)
 
#define USB_DT_CS_INTERFACE   (USB_TYPE_CLASS | USB_DT_INTERFACE)
 
#define USB_DT_CS_ENDPOINT   (USB_TYPE_CLASS | USB_DT_ENDPOINT)
 
#define USB_DT_DEVICE_SIZE   18
 
#define USB_CLASS_PER_INTERFACE   0 /* for DeviceClass */
 
#define USB_CLASS_AUDIO   1
 
#define USB_CLASS_COMM   2
 
#define USB_CLASS_HID   3
 
#define USB_CLASS_PHYSICAL   5
 
#define USB_CLASS_STILL_IMAGE   6
 
#define USB_CLASS_PRINTER   7
 
#define USB_CLASS_MASS_STORAGE   8
 
#define USB_CLASS_HUB   9
 
#define USB_CLASS_CDC_DATA   0x0a
 
#define USB_CLASS_CSCID   0x0b /* chip+ smart card */
 
#define USB_CLASS_CONTENT_SEC   0x0d /* content security */
 
#define USB_CLASS_VIDEO   0x0e
 
#define USB_CLASS_WIRELESS_CONTROLLER   0xe0
 
#define USB_CLASS_MISC   0xef
 
#define USB_CLASS_APP_SPEC   0xfe
 
#define USB_CLASS_VENDOR_SPEC   0xff
 
#define USB_SUBCLASS_VENDOR_SPEC   0xff
 
#define USB_DT_CONFIG_SIZE   9
 
#define USB_CONFIG_ATT_ONE   (1 << 7) /* must be set */
 
#define USB_CONFIG_ATT_SELFPOWER   (1 << 6) /* self powered */
 
#define USB_CONFIG_ATT_WAKEUP   (1 << 5) /* can wakeup */
 
#define USB_CONFIG_ATT_BATTERY   (1 << 4) /* battery powered */
 
#define USB_DT_INTERFACE_SIZE   9
 
#define USB_DT_ENDPOINT_SIZE   7
 
#define USB_DT_ENDPOINT_AUDIO_SIZE   9 /* Audio extension */
 
#define USB_ENDPOINT_NUMBER_MASK   0x0f /* in bEndpointAddress */
 
#define USB_ENDPOINT_DIR_MASK   0x80
 
#define USB_ENDPOINT_XFERTYPE_MASK   0x03 /* in bmAttributes */
 
#define USB_ENDPOINT_XFER_CONTROL   0
 
#define USB_ENDPOINT_XFER_ISOC   1
 
#define USB_ENDPOINT_XFER_BULK   2
 
#define USB_ENDPOINT_XFER_INT   3
 
#define USB_ENDPOINT_MAX_ADJUSTABLE   0x80
 
#define USB_ENDPOINT_INTRTYPE   0x30
 
#define USB_ENDPOINT_INTR_PERIODIC   (0 << 4)
 
#define USB_ENDPOINT_INTR_NOTIFICATION   (1 << 4)
 
#define USB_ENDPOINT_SYNCTYPE   0x0c
 
#define USB_ENDPOINT_SYNC_NONE   (0 << 2)
 
#define USB_ENDPOINT_SYNC_ASYNC   (1 << 2)
 
#define USB_ENDPOINT_SYNC_ADAPTIVE   (2 << 2)
 
#define USB_ENDPOINT_SYNC_SYNC   (3 << 2)
 
#define USB_ENDPOINT_USAGE_MASK   0x30
 
#define USB_ENDPOINT_USAGE_DATA   0x00
 
#define USB_ENDPOINT_USAGE_FEEDBACK   0x10
 
#define USB_ENDPOINT_USAGE_IMPLICIT_FB   0x20 /* Implicit feedback Data endpoint */
 
#define USB_DT_SS_EP_COMP_SIZE   6
 
#define USB_SS_MULT(p)   (1 + ((p) & 0x3))
 
#define USB_OTG_SRP   (1 << 0)
 
#define USB_OTG_HNP   (1 << 1) /* swap host/device roles */
 
#define USB_ENC_TYPE_UNSECURE   0
 
#define USB_ENC_TYPE_WIRED   1 /* non-wireless mode */
 
#define USB_ENC_TYPE_CCM_1   2 /* aes128/cbc session */
 
#define USB_ENC_TYPE_RSA_1   3 /* rsa3072/sha1 auth */
 
#define USB_DT_BOS_SIZE   5
 
#define USB_CAP_TYPE_WIRELESS_USB   1
 
#define USB_WIRELESS_P2P_DRD   (1 << 1)
 
#define USB_WIRELESS_BEACON_MASK   (3 << 2)
 
#define USB_WIRELESS_BEACON_SELF   (1 << 2)
 
#define USB_WIRELESS_BEACON_DIRECTED   (2 << 2)
 
#define USB_WIRELESS_BEACON_NONE   (3 << 2)
 
#define USB_WIRELESS_PHY_53   (1 << 0) /* always set */
 
#define USB_WIRELESS_PHY_80   (1 << 1)
 
#define USB_WIRELESS_PHY_107   (1 << 2) /* always set */
 
#define USB_WIRELESS_PHY_160   (1 << 3)
 
#define USB_WIRELESS_PHY_200   (1 << 4) /* always set */
 
#define USB_WIRELESS_PHY_320   (1 << 5)
 
#define USB_WIRELESS_PHY_400   (1 << 6)
 
#define USB_WIRELESS_PHY_480   (1 << 7)
 
#define USB_CAP_TYPE_EXT   2
 
#define USB_LPM_SUPPORT   (1 << 1) /* supports LPM */
 
#define USB_BESL_SUPPORT   (1 << 2) /* supports BESL */
 
#define USB_BESL_BASELINE_VALID   (1 << 3) /* Baseline BESL valid*/
 
#define USB_BESL_DEEP_VALID   (1 << 4) /* Deep BESL valid */
 
#define USB_GET_BESL_BASELINE(p)   (((p) & (0xf << 8)) >> 8)
 
#define USB_GET_BESL_DEEP(p)   (((p) & (0xf << 12)) >> 12)
 
#define USB_DT_USB_EXT_CAP_SIZE   7
 
#define USB_SS_CAP_TYPE   3
 
#define USB_LTM_SUPPORT   (1 << 1) /* supports LTM */
 
#define USB_LOW_SPEED_OPERATION   (1) /* Low speed operation */
 
#define USB_FULL_SPEED_OPERATION   (1 << 1) /* Full speed operation */
 
#define USB_HIGH_SPEED_OPERATION   (1 << 2) /* High speed operation */
 
#define USB_5GBPS_OPERATION   (1 << 3) /* Operation at 5Gbps */
 
#define USB_DT_USB_SS_CAP_SIZE   10
 
#define CONTAINER_ID_TYPE   4
 
#define USB_DT_USB_SS_CONTN_ID_SIZE   20
 
#define USB_ENDPOINT_SWITCH_MASK   0x03 /* in bmCompAttributes */
 
#define USB_ENDPOINT_SWITCH_NO   0
 
#define USB_ENDPOINT_SWITCH_SWITCH   1
 
#define USB_ENDPOINT_SWITCH_SCALE   2
 
#define USB3_LPM_DISABLED   0x0
 
#define USB3_LPM_U1_MAX_TIMEOUT   0x7F
 
#define USB3_LPM_U2_MAX_TIMEOUT   0xFE
 
#define USB3_LPM_DEVICE_INITIATED   0xFF
 
#define USB3_LPM_MAX_U1_SEL_PEL   0xFF
 
#define USB3_LPM_MAX_U2_SEL_PEL   0xFFFF
 
#define USB_SELF_POWER_VBUS_MAX_DRAW   100
 

Enumerations

enum  usb_device_speed {
  USB_SPEED_UNKNOWN = 0, USB_SPEED_LOW, USB_SPEED_FULL, USB_SPEED_HIGH,
  USB_SPEED_VARIABLE, USB_SPEED_UNKNOWN = 0, USB_SPEED_LOW, USB_SPEED_FULL,
  USB_SPEED_HIGH, USB_SPEED_WIRELESS, USB_SPEED_SUPER, USB_SPEED_UNKNOWN = 0,
  USB_SPEED_LOW, USB_SPEED_FULL, USB_SPEED_HIGH
}
 
enum  usb_device_state {
  USB_STATE_NOTATTACHED = 0, USB_STATE_ATTACHED, USB_STATE_POWERED, USB_STATE_RECONNECTING,
  USB_STATE_UNAUTHENTICATED, USB_STATE_DEFAULT, USB_STATE_ADDRESS, USB_STATE_CONFIGURED,
  USB_STATE_SUSPENDED
}
 
enum  usb3_link_state { USB3_LPM_U0 = 0, USB3_LPM_U1, USB3_LPM_U2, USB3_LPM_U3 }
 

Functions

struct usb_ctrlrequest __attribute__ ((packed))
 

Variables

__u8 bRequestType
 
__u8 bRequest
 
__le16 wValue
 
__le16 wIndex
 
__le16 wLength
 
__u8 bLength
 
__u8 bDescriptorType
 
__le16 bcdUSB
 
__u8 bDeviceClass
 
__u8 bDeviceSubClass
 
__u8 bDeviceProtocol
 
__u8 bMaxPacketSize0
 
__le16 idVendor
 
__le16 idProduct
 
__le16 bcdDevice
 
__u8 iManufacturer
 
__u8 iProduct
 
__u8 iSerialNumber
 
__u8 bNumConfigurations
 
__le16 wTotalLength
 
__u8 bNumInterfaces
 
__u8 bConfigurationValue
 
__u8 iConfiguration
 
__u8 bmAttributes
 
__u8 bMaxPower
 
__le16 wData [1]
 
__u8 bInterfaceNumber
 
__u8 bAlternateSetting
 
__u8 bNumEndpoints
 
__u8 bInterfaceClass
 
__u8 bInterfaceSubClass
 
__u8 bInterfaceProtocol
 
__u8 iInterface
 
__u8 bEndpointAddress
 
__le16 wMaxPacketSize
 
__u8 bInterval
 
__u8 bRefresh
 
__u8 bSynchAddress
 
__u8 bMaxBurst
 
__le16 wBytesPerInterval
 
__u8 bRESERVED
 
__u8 bDebugInEndpoint
 
__u8 bDebugOutEndpoint
 
__u8 bFirstInterface
 
__u8 bInterfaceCount
 
__u8 bFunctionClass
 
__u8 bFunctionSubClass
 
__u8 bFunctionProtocol
 
__u8 iFunction
 
__u8 bNumEncryptionTypes
 
__u8 tTKID [3]
 
__u8 bReserved
 
__u8 bKeyData [0]
 
__u8 bEncryptionType
 
__u8 bEncryptionValue
 
__u8 bAuthKeyIndex
 
__u8 bNumDeviceCaps
 
__u8 bDevCapabilityType
 
__le16 wPHYRates
 
__u8 bmTFITXPowerInfo
 
__u8 bmFFITXPowerInfo
 
__le16 bmBandGroup
 
__le16 wSpeedSupported
 
__u8 bFunctionalitySupport
 
__u8 bU1devExitLat
 
__le16 bU2DevExitLat
 
__u8 ContainerID [16]
 
__u8 bMaxSequence
 
__le16 wMaxStreamDelay
 
__le16 wOverTheAirPacketSize
 
__u8 bOverTheAirInterval
 
__u8 bmCompAttributes
 
__u8 bMessageNumber
 
__u8 bStatus
 
__u8 CDID [16]
 
__u8 nonce [16]
 
__u8 MIC [8]
 
__u8 CHID [16]
 
__u8 CK [16]
 
enum usb_device_speed __attribute__
 
__u8 u1_sel
 
__u8 u1_pel
 
__le16 u2_sel
 
__le16 u2_pel
 

Macro Definition Documentation

#define CONTAINER_ID_TYPE   4

Definition at line 841 of file ch9.h.

#define TEST_FORCE_EN   5

Definition at line 137 of file ch9.h.

#define TEST_J   1

Definition at line 133 of file ch9.h.

#define TEST_K   2

Definition at line 134 of file ch9.h.

#define TEST_PACKET   4

Definition at line 136 of file ch9.h.

#define TEST_SE0_NAK   3

Definition at line 135 of file ch9.h.

#define USB3_LPM_DEVICE_INITIATED   0xFF

Definition at line 966 of file ch9.h.

#define USB3_LPM_DISABLED   0x0

Definition at line 963 of file ch9.h.

#define USB3_LPM_MAX_U1_SEL_PEL   0xFF

Definition at line 980 of file ch9.h.

#define USB3_LPM_MAX_U2_SEL_PEL   0xFFFF

Definition at line 981 of file ch9.h.

#define USB3_LPM_U1_MAX_TIMEOUT   0x7F

Definition at line 964 of file ch9.h.

#define USB3_LPM_U2_MAX_TIMEOUT   0xFE

Definition at line 965 of file ch9.h.

#define USB_5GBPS_OPERATION   (1 << 3) /* Operation at 5Gbps */

Definition at line 843 of file ch9.h.

#define USB_BESL_BASELINE_VALID   (1 << 3) /* Baseline BESL valid*/

Definition at line 817 of file ch9.h.

#define USB_BESL_DEEP_VALID   (1 << 4) /* Deep BESL valid */

Definition at line 818 of file ch9.h.

#define USB_BESL_SUPPORT   (1 << 2) /* supports BESL */

Definition at line 816 of file ch9.h.

#define USB_CAP_TYPE_EXT   2

Definition at line 797 of file ch9.h.

#define USB_CAP_TYPE_WIRELESS_USB   1

Definition at line 768 of file ch9.h.

#define USB_CLASS_APP_SPEC   0xfe

Definition at line 293 of file ch9.h.

#define USB_CLASS_AUDIO   1

Definition at line 279 of file ch9.h.

#define USB_CLASS_CDC_DATA   0x0a

Definition at line 287 of file ch9.h.

#define USB_CLASS_COMM   2

Definition at line 280 of file ch9.h.

#define USB_CLASS_CONTENT_SEC   0x0d /* content security */

Definition at line 289 of file ch9.h.

#define USB_CLASS_CSCID   0x0b /* chip+ smart card */

Definition at line 288 of file ch9.h.

#define USB_CLASS_HID   3

Definition at line 281 of file ch9.h.

#define USB_CLASS_HUB   9

Definition at line 286 of file ch9.h.

#define USB_CLASS_MASS_STORAGE   8

Definition at line 285 of file ch9.h.

#define USB_CLASS_MISC   0xef

Definition at line 292 of file ch9.h.

#define USB_CLASS_PER_INTERFACE   0 /* for DeviceClass */

Definition at line 278 of file ch9.h.

#define USB_CLASS_PHYSICAL   5

Definition at line 282 of file ch9.h.

#define USB_CLASS_PRINTER   7

Definition at line 284 of file ch9.h.

#define USB_CLASS_STILL_IMAGE   6

Definition at line 283 of file ch9.h.

#define USB_CLASS_VENDOR_SPEC   0xff

Definition at line 294 of file ch9.h.

#define USB_CLASS_VIDEO   0x0e

Definition at line 290 of file ch9.h.

#define USB_CLASS_WIRELESS_CONTROLLER   0xe0

Definition at line 291 of file ch9.h.

#define USB_CONFIG_ATT_BATTERY   (1 << 4) /* battery powered */

Definition at line 326 of file ch9.h.

#define USB_CONFIG_ATT_ONE   (1 << 7) /* must be set */

Definition at line 323 of file ch9.h.

#define USB_CONFIG_ATT_SELFPOWER   (1 << 6) /* self powered */

Definition at line 324 of file ch9.h.

#define USB_CONFIG_ATT_WAKEUP   (1 << 5) /* can wakeup */

Definition at line 325 of file ch9.h.

#define USB_DEV_STAT_LTM_ENABLED   4 /* Latency tolerance messages */

Definition at line 160 of file ch9.h.

#define USB_DEV_STAT_U1_ENABLED   2 /* transition into U1 state */

Definition at line 158 of file ch9.h.

#define USB_DEV_STAT_U2_ENABLED   3 /* transition into U2 state */

Definition at line 159 of file ch9.h.

#define USB_DEVICE_A_ALT_HNP_SUPPORT   5 /* (otg) other RH port does */

Definition at line 126 of file ch9.h.

#define USB_DEVICE_A_HNP_SUPPORT   4 /* (otg) RH port supports HNP */

Definition at line 125 of file ch9.h.

#define USB_DEVICE_B_HNP_ENABLE   3 /* (otg) dev may initiate HNP */

Definition at line 123 of file ch9.h.

#define USB_DEVICE_BATTERY   2 /* (wireless) */

Definition at line 122 of file ch9.h.

#define USB_DEVICE_DEBUG_MODE   6 /* (special devices only) */

Definition at line 127 of file ch9.h.

#define USB_DEVICE_LTM_ENABLE   50 /* dev may send LTM */

Definition at line 145 of file ch9.h.

#define USB_DEVICE_REMOTE_WAKEUP   1 /* dev may initiate wakeup */

Definition at line 120 of file ch9.h.

#define USB_DEVICE_SELF_POWERED   0 /* (read only) */

Definition at line 119 of file ch9.h.

#define USB_DEVICE_TEST_MODE   2 /* (wired high speed only) */

Definition at line 121 of file ch9.h.

#define USB_DEVICE_U1_ENABLE   48 /* dev may initiate U1 transition */

Definition at line 143 of file ch9.h.

#define USB_DEVICE_U2_ENABLE   49 /* dev may initiate U2 transition */

Definition at line 144 of file ch9.h.

#define USB_DEVICE_WUSB_DEVICE   3 /* (wireless)*/

Definition at line 124 of file ch9.h.

#define USB_DIR_IN   0x80 /* to host */

Definition at line 50 of file ch9.h.

#define USB_DIR_OUT   0 /* to device */

Definition at line 49 of file ch9.h.

#define USB_DT_BOS   0x0f

Definition at line 221 of file ch9.h.

#define USB_DT_BOS_SIZE   5

Definition at line 758 of file ch9.h.

#define USB_DT_CONFIG   0x02

Definition at line 206 of file ch9.h.

#define USB_DT_CONFIG_SIZE   9

Definition at line 320 of file ch9.h.

#define USB_DT_CS_CONFIG   (USB_TYPE_CLASS | USB_DT_CONFIG)

Definition at line 237 of file ch9.h.

#define USB_DT_CS_DEVICE   (USB_TYPE_CLASS | USB_DT_DEVICE)

Definition at line 236 of file ch9.h.

#define USB_DT_CS_ENDPOINT   (USB_TYPE_CLASS | USB_DT_ENDPOINT)

Definition at line 240 of file ch9.h.

#define USB_DT_CS_INTERFACE   (USB_TYPE_CLASS | USB_DT_INTERFACE)

Definition at line 239 of file ch9.h.

#define USB_DT_CS_RADIO_CONTROL   0x23

Definition at line 226 of file ch9.h.

#define USB_DT_CS_STRING   (USB_TYPE_CLASS | USB_DT_STRING)

Definition at line 238 of file ch9.h.

#define USB_DT_DEBUG   0x0a

Definition at line 215 of file ch9.h.

#define USB_DT_DEVICE   0x01

Definition at line 205 of file ch9.h.

#define USB_DT_DEVICE_CAPABILITY   0x10

Definition at line 222 of file ch9.h.

#define USB_DT_DEVICE_QUALIFIER   0x06

Definition at line 210 of file ch9.h.

#define USB_DT_DEVICE_SIZE   18

Definition at line 270 of file ch9.h.

#define USB_DT_ENCRYPTION_TYPE   0x0e

Definition at line 220 of file ch9.h.

#define USB_DT_ENDPOINT   0x05

Definition at line 209 of file ch9.h.

#define USB_DT_ENDPOINT_AUDIO_SIZE   9 /* Audio extension */

Definition at line 379 of file ch9.h.

#define USB_DT_ENDPOINT_SIZE   7

Definition at line 378 of file ch9.h.

#define USB_DT_INTERFACE   0x04

Definition at line 208 of file ch9.h.

#define USB_DT_INTERFACE_ASSOCIATION   0x0b

Definition at line 216 of file ch9.h.

#define USB_DT_INTERFACE_POWER   0x08

Definition at line 212 of file ch9.h.

#define USB_DT_INTERFACE_SIZE   9

Definition at line 358 of file ch9.h.

#define USB_DT_KEY   0x0d

Definition at line 219 of file ch9.h.

#define USB_DT_OTG   0x09

Definition at line 214 of file ch9.h.

#define USB_DT_OTHER_SPEED_CONFIG   0x07

Definition at line 211 of file ch9.h.

#define USB_DT_PIPE_USAGE   0x24

Definition at line 228 of file ch9.h.

#define USB_DT_RPIPE   0x22

Definition at line 225 of file ch9.h.

#define USB_DT_SECURITY   0x0c

Definition at line 218 of file ch9.h.

#define USB_DT_SS_ENDPOINT_COMP   0x30

Definition at line 230 of file ch9.h.

#define USB_DT_SS_EP_COMP_SIZE   6

Definition at line 620 of file ch9.h.

#define USB_DT_STRING   0x03

Definition at line 207 of file ch9.h.

#define USB_DT_USB_EXT_CAP_SIZE   7

Definition at line 812 of file ch9.h.

#define USB_DT_USB_SS_CAP_SIZE   10

Definition at line 835 of file ch9.h.

#define USB_DT_USB_SS_CONTN_ID_SIZE   20

Definition at line 850 of file ch9.h.

#define USB_DT_WIRE_ADAPTER   0x21

Definition at line 224 of file ch9.h.

#define USB_DT_WIRELESS_ENDPOINT_COMP   0x11

Definition at line 223 of file ch9.h.

#define USB_ENC_TYPE_CCM_1   2 /* aes128/cbc session */

Definition at line 751 of file ch9.h.

#define USB_ENC_TYPE_RSA_1   3 /* rsa3072/sha1 auth */

Definition at line 752 of file ch9.h.

#define USB_ENC_TYPE_UNSECURE   0

Definition at line 749 of file ch9.h.

#define USB_ENC_TYPE_WIRED   1 /* non-wireless mode */

Definition at line 750 of file ch9.h.

#define USB_ENDPOINT_DIR_MASK   0x80

Definition at line 386 of file ch9.h.

#define USB_ENDPOINT_HALT   0 /* IN/OUT will STALL */

Definition at line 155 of file ch9.h.

#define USB_ENDPOINT_INTR_NOTIFICATION   (1 << 4)

Definition at line 398 of file ch9.h.

#define USB_ENDPOINT_INTR_PERIODIC   (0 << 4)

Definition at line 397 of file ch9.h.

#define USB_ENDPOINT_INTRTYPE   0x30

Definition at line 396 of file ch9.h.

#define USB_ENDPOINT_MAX_ADJUSTABLE   0x80

Definition at line 393 of file ch9.h.

#define USB_ENDPOINT_NUMBER_MASK   0x0f /* in bEndpointAddress */

Definition at line 385 of file ch9.h.

#define USB_ENDPOINT_SWITCH_MASK   0x03 /* in bmCompAttributes */

Definition at line 880 of file ch9.h.

#define USB_ENDPOINT_SWITCH_NO   0

Definition at line 881 of file ch9.h.

#define USB_ENDPOINT_SWITCH_SCALE   2

Definition at line 883 of file ch9.h.

#define USB_ENDPOINT_SWITCH_SWITCH   1

Definition at line 882 of file ch9.h.

#define USB_ENDPOINT_SYNC_ADAPTIVE   (2 << 2)

Definition at line 403 of file ch9.h.

#define USB_ENDPOINT_SYNC_ASYNC   (1 << 2)

Definition at line 402 of file ch9.h.

#define USB_ENDPOINT_SYNC_NONE   (0 << 2)

Definition at line 401 of file ch9.h.

#define USB_ENDPOINT_SYNC_SYNC   (3 << 2)

Definition at line 404 of file ch9.h.

#define USB_ENDPOINT_SYNCTYPE   0x0c

Definition at line 400 of file ch9.h.

#define USB_ENDPOINT_USAGE_DATA   0x00

Definition at line 407 of file ch9.h.

#define USB_ENDPOINT_USAGE_FEEDBACK   0x10

Definition at line 408 of file ch9.h.

#define USB_ENDPOINT_USAGE_IMPLICIT_FB   0x20 /* Implicit feedback Data endpoint */

Definition at line 409 of file ch9.h.

#define USB_ENDPOINT_USAGE_MASK   0x30

Definition at line 406 of file ch9.h.

#define USB_ENDPOINT_XFER_BULK   2

Definition at line 391 of file ch9.h.

#define USB_ENDPOINT_XFER_CONTROL   0

Definition at line 389 of file ch9.h.

#define USB_ENDPOINT_XFER_INT   3

Definition at line 392 of file ch9.h.

#define USB_ENDPOINT_XFER_ISOC   1

Definition at line 390 of file ch9.h.

#define USB_ENDPOINT_XFERTYPE_MASK   0x03 /* in bmAttributes */

Definition at line 388 of file ch9.h.

#define USB_FULL_SPEED_OPERATION   (1 << 1) /* Full speed operation */

Definition at line 841 of file ch9.h.

#define USB_GET_BESL_BASELINE (   p)    (((p) & (0xf << 8)) >> 8)

Definition at line 819 of file ch9.h.

#define USB_GET_BESL_DEEP (   p)    (((p) & (0xf << 12)) >> 12)

Definition at line 820 of file ch9.h.

#define USB_HIGH_SPEED_OPERATION   (1 << 2) /* High speed operation */

Definition at line 842 of file ch9.h.

#define USB_INTR_FUNC_SUSPEND_OPT_MASK   0xFF00

Definition at line 148 of file ch9.h.

#define USB_INTRF_FUNC_SUSPEND   0 /* function suspend */

Definition at line 146 of file ch9.h.

#define USB_INTRF_FUNC_SUSPEND_LP   (1 << (8 + 0))

Definition at line 152 of file ch9.h.

#define USB_INTRF_FUNC_SUSPEND_RW   (1 << (8 + 1))

Definition at line 153 of file ch9.h.

#define USB_LOW_SPEED_OPERATION   (1) /* Low speed operation */

Definition at line 840 of file ch9.h.

#define USB_LPM_SUPPORT   (1 << 1) /* supports LPM */

Definition at line 815 of file ch9.h.

#define USB_LTM_SUPPORT   (1 << 1) /* supports LTM */

Definition at line 838 of file ch9.h.

#define USB_OTG_HNP   (1 << 1) /* swap host/device roles */

Definition at line 673 of file ch9.h.

#define USB_OTG_SRP   (1 << 0)

Definition at line 672 of file ch9.h.

#define USB_RECIP_DEVICE   0x00

Definition at line 65 of file ch9.h.

#define USB_RECIP_ENDPOINT   0x02

Definition at line 67 of file ch9.h.

#define USB_RECIP_INTERFACE   0x01

Definition at line 66 of file ch9.h.

#define USB_RECIP_MASK   0x1f

Definition at line 64 of file ch9.h.

#define USB_RECIP_OTHER   0x03

Definition at line 68 of file ch9.h.

#define USB_RECIP_PORT   0x04

Definition at line 70 of file ch9.h.

#define USB_RECIP_RPIPE   0x05

Definition at line 71 of file ch9.h.

#define USB_REQ_CLEAR_FEATURE   0x01

Definition at line 81 of file ch9.h.

#define USB_REQ_GET_CONFIGURATION   0x08

Definition at line 86 of file ch9.h.

#define USB_REQ_GET_DESCRIPTOR   0x06

Definition at line 84 of file ch9.h.

#define USB_REQ_GET_ENCRYPTION   0x0E

Definition at line 95 of file ch9.h.

#define USB_REQ_GET_HANDSHAKE   0x10

Definition at line 99 of file ch9.h.

#define USB_REQ_GET_INTERFACE   0x0A

Definition at line 88 of file ch9.h.

#define USB_REQ_GET_SECURITY_DATA   0x13

Definition at line 102 of file ch9.h.

#define USB_REQ_GET_STATUS   0x00

Definition at line 80 of file ch9.h.

#define USB_REQ_LOOPBACK_DATA_READ   0x16

Definition at line 105 of file ch9.h.

#define USB_REQ_LOOPBACK_DATA_WRITE   0x15

Definition at line 104 of file ch9.h.

#define USB_REQ_RPIPE_ABORT   0x0E

Definition at line 96 of file ch9.h.

#define USB_REQ_RPIPE_RESET   0x0F

Definition at line 98 of file ch9.h.

#define USB_REQ_SET_ADDRESS   0x05

Definition at line 83 of file ch9.h.

#define USB_REQ_SET_CONFIGURATION   0x09

Definition at line 87 of file ch9.h.

#define USB_REQ_SET_CONNECTION   0x11

Definition at line 100 of file ch9.h.

#define USB_REQ_SET_DESCRIPTOR   0x07

Definition at line 85 of file ch9.h.

#define USB_REQ_SET_ENCRYPTION   0x0D /* Wireless USB */

Definition at line 94 of file ch9.h.

#define USB_REQ_SET_FEATURE   0x03

Definition at line 82 of file ch9.h.

#define USB_REQ_SET_HANDSHAKE   0x0F

Definition at line 97 of file ch9.h.

#define USB_REQ_SET_INTERFACE   0x0B

Definition at line 89 of file ch9.h.

#define USB_REQ_SET_INTERFACE_DS   0x17

Definition at line 106 of file ch9.h.

#define USB_REQ_SET_ISOCH_DELAY   0x31

Definition at line 92 of file ch9.h.

#define USB_REQ_SET_SECURITY_DATA   0x12

Definition at line 101 of file ch9.h.

#define USB_REQ_SET_SEL   0x30

Definition at line 91 of file ch9.h.

#define USB_REQ_SET_WUSB_DATA   0x14

Definition at line 103 of file ch9.h.

#define USB_REQ_SYNCH_FRAME   0x0C

Definition at line 90 of file ch9.h.

#define USB_SELF_POWER_VBUS_MAX_DRAW   100

Definition at line 991 of file ch9.h.

#define USB_SS_CAP_TYPE   3

Definition at line 818 of file ch9.h.

#define USB_SS_MULT (   p)    (1 + ((p) & 0x3))

Definition at line 642 of file ch9.h.

#define USB_SUBCLASS_VENDOR_SPEC   0xff

Definition at line 296 of file ch9.h.

#define USB_TYPE_CLASS   (0x01 << 5)

Definition at line 57 of file ch9.h.

#define USB_TYPE_MASK   (0x03 << 5)

Definition at line 55 of file ch9.h.

#define USB_TYPE_RESERVED   (0x03 << 5)

Definition at line 59 of file ch9.h.

#define USB_TYPE_STANDARD   (0x00 << 5)

Definition at line 56 of file ch9.h.

#define USB_TYPE_VENDOR   (0x02 << 5)

Definition at line 58 of file ch9.h.

#define USB_WIRELESS_BEACON_DIRECTED   (2 << 2)

Definition at line 803 of file ch9.h.

#define USB_WIRELESS_BEACON_MASK   (3 << 2)

Definition at line 801 of file ch9.h.

#define USB_WIRELESS_BEACON_NONE   (3 << 2)

Definition at line 804 of file ch9.h.

#define USB_WIRELESS_BEACON_SELF   (1 << 2)

Definition at line 802 of file ch9.h.

#define USB_WIRELESS_P2P_DRD   (1 << 1)

Definition at line 800 of file ch9.h.

#define USB_WIRELESS_PHY_107   (1 << 2) /* always set */

Definition at line 808 of file ch9.h.

#define USB_WIRELESS_PHY_160   (1 << 3)

Definition at line 809 of file ch9.h.

#define USB_WIRELESS_PHY_200   (1 << 4) /* always set */

Definition at line 810 of file ch9.h.

#define USB_WIRELESS_PHY_320   (1 << 5)

Definition at line 811 of file ch9.h.

#define USB_WIRELESS_PHY_400   (1 << 6)

Definition at line 812 of file ch9.h.

#define USB_WIRELESS_PHY_480   (1 << 7)

Definition at line 813 of file ch9.h.

#define USB_WIRELESS_PHY_53   (1 << 0) /* always set */

Definition at line 806 of file ch9.h.

#define USB_WIRELESS_PHY_80   (1 << 1)

Definition at line 807 of file ch9.h.

Enumeration Type Documentation

Enumerator:
USB3_LPM_U0 
USB3_LPM_U1 
USB3_LPM_U2 
USB3_LPM_U3 

Definition at line 938 of file ch9.h.

Enumerator:
USB_SPEED_UNKNOWN 
USB_SPEED_LOW 
USB_SPEED_FULL 
USB_SPEED_HIGH 
USB_SPEED_VARIABLE 
USB_SPEED_UNKNOWN 
USB_SPEED_LOW 
USB_SPEED_FULL 
USB_SPEED_HIGH 
USB_SPEED_WIRELESS 
USB_SPEED_SUPER 
USB_SPEED_UNKNOWN 
USB_SPEED_LOW 
USB_SPEED_FULL 
USB_SPEED_HIGH 

Definition at line 904 of file ch9.h.

Enumerator:
USB_STATE_NOTATTACHED 
USB_STATE_ATTACHED 
USB_STATE_POWERED 
USB_STATE_RECONNECTING 
USB_STATE_UNAUTHENTICATED 
USB_STATE_DEFAULT 
USB_STATE_ADDRESS 
USB_STATE_CONFIGURED 
USB_STATE_SUSPENDED 

Definition at line 913 of file ch9.h.

Function Documentation

struct usb_ctrlrequest __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__u8 bAlternateSetting

Definition at line 361 of file ch9.h.

__u8 bAuthKeyIndex

Definition at line 754 of file ch9.h.

__le16 bcdDevice

Definition at line 279 of file ch9.h.

__le16 bcdUSB

Definition at line 272 of file ch9.h.

__u8 bConfigurationValue

Definition at line 324 of file ch9.h.

__u8 bDebugInEndpoint

Definition at line 690 of file ch9.h.

__u8 bDebugOutEndpoint

Definition at line 691 of file ch9.h.

__u8 bDescriptorType

Definition at line 248 of file ch9.h.

__u8 bDevCapabilityType

Definition at line 769 of file ch9.h.

__u8 bDeviceClass

Definition at line 273 of file ch9.h.

__u8 bDeviceProtocol

Definition at line 275 of file ch9.h.

__u8 bDeviceSubClass

Definition at line 274 of file ch9.h.

__u8 bEncryptionType

Definition at line 748 of file ch9.h.

__u8 bEncryptionValue

Definition at line 753 of file ch9.h.

__u8 bEndpointAddress

Definition at line 380 of file ch9.h.

__u8 bFirstInterface

Definition at line 704 of file ch9.h.

__u8 bFunctionalitySupport

Definition at line 844 of file ch9.h.

__u8 bFunctionClass

Definition at line 706 of file ch9.h.

__u8 bFunctionProtocol

Definition at line 708 of file ch9.h.

__u8 bFunctionSubClass

Definition at line 707 of file ch9.h.

__u8 bInterfaceClass

Definition at line 363 of file ch9.h.

__u8 bInterfaceCount

Definition at line 705 of file ch9.h.

__u8 bInterfaceNumber

Definition at line 360 of file ch9.h.

__u8 bInterfaceProtocol

Definition at line 365 of file ch9.h.

__u8 bInterfaceSubClass

Definition at line 364 of file ch9.h.

__u8 bInterval

Definition at line 383 of file ch9.h.

__u8 bKeyData[0]

Definition at line 734 of file ch9.h.

__u8 bLength

Definition at line 247 of file ch9.h.

__u8 bmAttributes

Definition at line 326 of file ch9.h.

__u8 bMaxBurst

Definition at line 622 of file ch9.h.

__u8 bMaxPacketSize0

Definition at line 276 of file ch9.h.

__u8 bMaxPower

Definition at line 327 of file ch9.h.

__u8 bMaxSequence

Definition at line 875 of file ch9.h.

__le16 bmBandGroup

Definition at line 816 of file ch9.h.

__u8 bmCompAttributes

Definition at line 879 of file ch9.h.

__u8 bMessageNumber

Definition at line 887 of file ch9.h.

__u8 bmFFITXPowerInfo

Definition at line 815 of file ch9.h.

__u8 bmTFITXPowerInfo

Definition at line 814 of file ch9.h.

__u8 bNumConfigurations

Definition at line 283 of file ch9.h.

__u8 bNumDeviceCaps

Definition at line 761 of file ch9.h.

__u8 bNumEncryptionTypes

Definition at line 719 of file ch9.h.

__u8 bNumEndpoints

Definition at line 362 of file ch9.h.

__u8 bNumInterfaces

Definition at line 323 of file ch9.h.

__u8 bOverTheAirInterval

Definition at line 878 of file ch9.h.

__u8 bRefresh

Definition at line 387 of file ch9.h.

__u8 bRequest

Definition at line 187 of file ch9.h.

__u8 bRequestType

Definition at line 186 of file ch9.h.

__u8 bRESERVED

Definition at line 668 of file ch9.h.

__u8 bReserved

Definition at line 733 of file ch9.h.

__u8 bStatus

Definition at line 888 of file ch9.h.

__u8 bSynchAddress

Definition at line 388 of file ch9.h.

__u8 bU1devExitLat

Definition at line 845 of file ch9.h.

__le16 bU2DevExitLat

Definition at line 846 of file ch9.h.

__u8 CDID[16]

Definition at line 891 of file ch9.h.

__u8 CHID[16]

Definition at line 899 of file ch9.h.

__u8 CK[16]

Definition at line 901 of file ch9.h.

__u8 ContainerID[16]

Definition at line 853 of file ch9.h.

__u8 iConfiguration

Definition at line 325 of file ch9.h.

__le16 idProduct

Definition at line 278 of file ch9.h.

__le16 idVendor

Definition at line 277 of file ch9.h.

__u8 iFunction

Definition at line 709 of file ch9.h.

__u8 iInterface

Definition at line 366 of file ch9.h.

__u8 iManufacturer

Definition at line 280 of file ch9.h.

__u8 iProduct

Definition at line 281 of file ch9.h.

__u8 iSerialNumber

Definition at line 282 of file ch9.h.

__u8 MIC[8]

Definition at line 893 of file ch9.h.

__u8 nonce[16]

Definition at line 892 of file ch9.h.

__u8 tTKID

Definition at line 732 of file ch9.h.

__u8 u1_pel

Definition at line 975 of file ch9.h.

__u8 u1_sel

Definition at line 974 of file ch9.h.

__le16 u2_pel

Definition at line 977 of file ch9.h.

__le16 u2_sel

Definition at line 976 of file ch9.h.

__le16 wBytesPerInterval

Definition at line 624 of file ch9.h.

__le16 wData[1]

Definition at line 340 of file ch9.h.

__le16 wIndex

Definition at line 189 of file ch9.h.

__le16 wLength

Definition at line 190 of file ch9.h.

__le16 wMaxPacketSize

Definition at line 382 of file ch9.h.

__le16 wMaxStreamDelay

Definition at line 876 of file ch9.h.

__le16 wOverTheAirPacketSize

Definition at line 877 of file ch9.h.

__le16 wPHYRates

Definition at line 805 of file ch9.h.

__le16 wSpeedSupported

Definition at line 839 of file ch9.h.

__le16 wTotalLength

Definition at line 322 of file ch9.h.

__le16 wValue

Definition at line 188 of file ch9.h.