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

Go to the source code of this file.

Data Structures

struct  usb_port_status
 
struct  usb_hub_status
 
struct  usb_hub_descriptor
 

Macros

#define USB_RT_HUB   (USB_TYPE_CLASS | USB_RECIP_DEVICE)
 
#define USB_RT_PORT   (USB_TYPE_CLASS | USB_RECIP_OTHER)
 
#define HUB_CLEAR_TT_BUFFER   8
 
#define HUB_RESET_TT   9
 
#define HUB_GET_TT_STATE   10
 
#define HUB_STOP_TT   11
 
#define HUB_SET_DEPTH   12
 
#define HUB_GET_PORT_ERR_COUNT   13
 
#define C_HUB_LOCAL_POWER   0
 
#define C_HUB_OVER_CURRENT   1
 
#define USB_PORT_FEAT_CONNECTION   0
 
#define USB_PORT_FEAT_ENABLE   1
 
#define USB_PORT_FEAT_SUSPEND   2 /* L2 suspend */
 
#define USB_PORT_FEAT_OVER_CURRENT   3
 
#define USB_PORT_FEAT_RESET   4
 
#define USB_PORT_FEAT_L1   5 /* L1 suspend */
 
#define USB_PORT_FEAT_POWER   8
 
#define USB_PORT_FEAT_LOWSPEED   9 /* Should never be used */
 
#define USB_PORT_FEAT_C_CONNECTION   16
 
#define USB_PORT_FEAT_C_ENABLE   17
 
#define USB_PORT_FEAT_C_SUSPEND   18
 
#define USB_PORT_FEAT_C_OVER_CURRENT   19
 
#define USB_PORT_FEAT_C_RESET   20
 
#define USB_PORT_FEAT_TEST   21
 
#define USB_PORT_FEAT_INDICATOR   22
 
#define USB_PORT_FEAT_C_PORT_L1   23
 
#define USB_PORT_FEAT_LINK_STATE   5
 
#define USB_PORT_FEAT_U1_TIMEOUT   23
 
#define USB_PORT_FEAT_U2_TIMEOUT   24
 
#define USB_PORT_FEAT_C_PORT_LINK_STATE   25
 
#define USB_PORT_FEAT_C_PORT_CONFIG_ERROR   26
 
#define USB_PORT_FEAT_REMOTE_WAKE_MASK   27
 
#define USB_PORT_FEAT_BH_PORT_RESET   28
 
#define USB_PORT_FEAT_C_BH_PORT_RESET   29
 
#define USB_PORT_FEAT_FORCE_LINKPM_ACCEPT   30
 
#define USB_PORT_LPM_TIMEOUT(p)   (((p) & 0xff) << 8)
 
#define USB_PORT_FEAT_REMOTE_WAKE_CONNECT   (1 << 8)
 
#define USB_PORT_FEAT_REMOTE_WAKE_DISCONNECT   (1 << 9)
 
#define USB_PORT_FEAT_REMOTE_WAKE_OVER_CURRENT   (1 << 10)
 
#define USB_PORT_STAT_CONNECTION   0x0001
 
#define USB_PORT_STAT_ENABLE   0x0002
 
#define USB_PORT_STAT_SUSPEND   0x0004
 
#define USB_PORT_STAT_OVERCURRENT   0x0008
 
#define USB_PORT_STAT_RESET   0x0010
 
#define USB_PORT_STAT_L1   0x0020
 
#define USB_PORT_STAT_POWER   0x0100
 
#define USB_PORT_STAT_LOW_SPEED   0x0200
 
#define USB_PORT_STAT_HIGH_SPEED   0x0400
 
#define USB_PORT_STAT_TEST   0x0800
 
#define USB_PORT_STAT_INDICATOR   0x1000
 
#define USB_PORT_STAT_LINK_STATE   0x01e0
 
#define USB_SS_PORT_STAT_POWER   0x0200
 
#define USB_SS_PORT_STAT_SPEED   0x1c00
 
#define USB_PORT_STAT_SPEED_5GBPS   0x0000
 
#define USB_SS_PORT_STAT_MASK
 
#define USB_SS_PORT_LS_U0   0x0000
 
#define USB_SS_PORT_LS_U1   0x0020
 
#define USB_SS_PORT_LS_U2   0x0040
 
#define USB_SS_PORT_LS_U3   0x0060
 
#define USB_SS_PORT_LS_SS_DISABLED   0x0080
 
#define USB_SS_PORT_LS_RX_DETECT   0x00a0
 
#define USB_SS_PORT_LS_SS_INACTIVE   0x00c0
 
#define USB_SS_PORT_LS_POLLING   0x00e0
 
#define USB_SS_PORT_LS_RECOVERY   0x0100
 
#define USB_SS_PORT_LS_HOT_RESET   0x0120
 
#define USB_SS_PORT_LS_COMP_MOD   0x0140
 
#define USB_SS_PORT_LS_LOOPBACK   0x0160
 
#define USB_PORT_STAT_C_CONNECTION   0x0001
 
#define USB_PORT_STAT_C_ENABLE   0x0002
 
#define USB_PORT_STAT_C_SUSPEND   0x0004
 
#define USB_PORT_STAT_C_OVERCURRENT   0x0008
 
#define USB_PORT_STAT_C_RESET   0x0010
 
#define USB_PORT_STAT_C_L1   0x0020
 
#define USB_PORT_STAT_C_BH_RESET   0x0020
 
#define USB_PORT_STAT_C_LINK_STATE   0x0040
 
#define USB_PORT_STAT_C_CONFIG_ERROR   0x0080
 
#define HUB_CHAR_LPSM   0x0003 /* Logical Power Switching Mode mask */
 
#define HUB_CHAR_COMMON_LPSM   0x0000 /* All ports power control at once */
 
#define HUB_CHAR_INDV_PORT_LPSM   0x0001 /* per-port power control */
 
#define HUB_CHAR_NO_LPSM   0x0002 /* no power switching */
 
#define HUB_CHAR_COMPOUND   0x0004 /* hub is part of a compound device */
 
#define HUB_CHAR_OCPM   0x0018 /* Over-Current Protection Mode mask */
 
#define HUB_CHAR_COMMON_OCPM   0x0000 /* All ports Over-Current reporting */
 
#define HUB_CHAR_INDV_PORT_OCPM   0x0008 /* per-port Over-current reporting */
 
#define HUB_CHAR_NO_OCPM   0x0010 /* No Over-current Protection support */
 
#define HUB_CHAR_TTTT   0x0060 /* TT Think Time mask */
 
#define HUB_CHAR_PORTIND   0x0080 /* per-port indicators (LEDs) */
 
#define HUB_STATUS_LOCAL_POWER   0x0001
 
#define HUB_STATUS_OVERCURRENT   0x0002
 
#define HUB_CHANGE_LOCAL_POWER   0x0001
 
#define HUB_CHANGE_OVERCURRENT   0x0002
 
#define USB_DT_HUB   (USB_TYPE_CLASS | 0x09)
 
#define USB_DT_SS_HUB   (USB_TYPE_CLASS | 0x0a)
 
#define USB_DT_HUB_NONVAR_SIZE   7
 
#define USB_DT_SS_HUB_SIZE   12
 
#define USB_HUB_PR_FS   0 /* Full speed hub */
 
#define USB_HUB_PR_HS_NO_TT   0 /* Hi-speed hub without TT */
 
#define USB_HUB_PR_HS_SINGLE_TT   1 /* Hi-speed hub with single TT */
 
#define USB_HUB_PR_HS_MULTI_TT   2 /* Hi-speed hub with multiple TT */
 
#define USB_HUB_PR_SS   3 /* Super speed hub */
 
#define HUB_LED_AUTO   0
 
#define HUB_LED_AMBER   1
 
#define HUB_LED_GREEN   2
 
#define HUB_LED_OFF   3
 
#define HUB_TTTT_8_BITS   0x00
 
#define HUB_TTTT_16_BITS   0x20
 
#define HUB_TTTT_24_BITS   0x40
 
#define HUB_TTTT_32_BITS   0x60
 

Enumerations

enum  hub_led_mode
 

Functions

struct usb_port_status __attribute__ ((packed))
 

Variables

__le16 wPortStatus
 
__le16 wPortChange
 
__le16 wHubStatus
 
__le16 wHubChange
 
__u8 DeviceRemovable [(USB_MAXCHILDREN+1+7)/8]
 
__u8 PortPwrCtrlMask [(USB_MAXCHILDREN+1+7)/8]
 
__u8 bHubHdrDecLat
 
__le16 wHubDelay
 
__u8 bDescLength
 
__u8 bDescriptorType
 
__u8 bNbrPorts
 
__le16 wHubCharacteristics
 
__u8 bPwrOn2PwrGood
 
__u8 bHubContrCurrent
 
union {
u
 
 INDICATOR_AUTO = 0
 
 INDICATOR_CYCLE
 
 INDICATOR_GREEN_BLINK
 
 INDICATOR_GREEN_BLINK_OFF
 
 INDICATOR_AMBER_BLINK
 
 INDICATOR_AMBER_BLINK_OFF
 
 INDICATOR_ALT_BLINK
 
 INDICATOR_ALT_BLINK_OFF
 

Macro Definition Documentation

#define C_HUB_LOCAL_POWER   0

Definition at line 41 of file ch11.h.

#define C_HUB_OVER_CURRENT   1

Definition at line 42 of file ch11.h.

#define HUB_CHANGE_LOCAL_POWER   0x0001

Definition at line 196 of file ch11.h.

#define HUB_CHANGE_OVERCURRENT   0x0002

Definition at line 197 of file ch11.h.

#define HUB_CHAR_COMMON_LPSM   0x0000 /* All ports power control at once */

Definition at line 169 of file ch11.h.

#define HUB_CHAR_COMMON_OCPM   0x0000 /* All ports Over-Current reporting */

Definition at line 176 of file ch11.h.

#define HUB_CHAR_COMPOUND   0x0004 /* hub is part of a compound device */

Definition at line 173 of file ch11.h.

#define HUB_CHAR_INDV_PORT_LPSM   0x0001 /* per-port power control */

Definition at line 170 of file ch11.h.

#define HUB_CHAR_INDV_PORT_OCPM   0x0008 /* per-port Over-current reporting */

Definition at line 177 of file ch11.h.

#define HUB_CHAR_LPSM   0x0003 /* Logical Power Switching Mode mask */

Definition at line 168 of file ch11.h.

#define HUB_CHAR_NO_LPSM   0x0002 /* no power switching */

Definition at line 171 of file ch11.h.

#define HUB_CHAR_NO_OCPM   0x0010 /* No Over-current Protection support */

Definition at line 178 of file ch11.h.

#define HUB_CHAR_OCPM   0x0018 /* Over-Current Protection Mode mask */

Definition at line 175 of file ch11.h.

#define HUB_CHAR_PORTIND   0x0080 /* per-port indicators (LEDs) */

Definition at line 181 of file ch11.h.

#define HUB_CHAR_TTTT   0x0060 /* TT Think Time mask */

Definition at line 180 of file ch11.h.

#define HUB_CLEAR_TT_BUFFER   8

Definition at line 25 of file ch11.h.

#define HUB_GET_PORT_ERR_COUNT   13

Definition at line 35 of file ch11.h.

#define HUB_GET_TT_STATE   10

Definition at line 27 of file ch11.h.

#define HUB_LED_AMBER   1

Definition at line 247 of file ch11.h.

#define HUB_LED_AUTO   0

Definition at line 246 of file ch11.h.

#define HUB_LED_GREEN   2

Definition at line 248 of file ch11.h.

#define HUB_LED_OFF   3

Definition at line 249 of file ch11.h.

#define HUB_RESET_TT   9

Definition at line 26 of file ch11.h.

#define HUB_SET_DEPTH   12

Definition at line 34 of file ch11.h.

#define HUB_STATUS_LOCAL_POWER   0x0001

Definition at line 194 of file ch11.h.

#define HUB_STATUS_OVERCURRENT   0x0002

Definition at line 195 of file ch11.h.

#define HUB_STOP_TT   11

Definition at line 28 of file ch11.h.

#define HUB_TTTT_16_BITS   0x20

Definition at line 262 of file ch11.h.

#define HUB_TTTT_24_BITS   0x40

Definition at line 263 of file ch11.h.

#define HUB_TTTT_32_BITS   0x60

Definition at line 264 of file ch11.h.

#define HUB_TTTT_8_BITS   0x00

Definition at line 261 of file ch11.h.

#define USB_DT_HUB   (USB_TYPE_CLASS | 0x09)

Definition at line 205 of file ch11.h.

#define USB_DT_HUB_NONVAR_SIZE   7

Definition at line 207 of file ch11.h.

#define USB_DT_SS_HUB   (USB_TYPE_CLASS | 0x0a)

Definition at line 206 of file ch11.h.

#define USB_DT_SS_HUB_SIZE   12

Definition at line 208 of file ch11.h.

#define USB_HUB_PR_FS   0 /* Full speed hub */

Definition at line 215 of file ch11.h.

#define USB_HUB_PR_HS_MULTI_TT   2 /* Hi-speed hub with multiple TT */

Definition at line 218 of file ch11.h.

#define USB_HUB_PR_HS_NO_TT   0 /* Hi-speed hub without TT */

Definition at line 216 of file ch11.h.

#define USB_HUB_PR_HS_SINGLE_TT   1 /* Hi-speed hub with single TT */

Definition at line 217 of file ch11.h.

#define USB_HUB_PR_SS   3 /* Super speed hub */

Definition at line 219 of file ch11.h.

#define USB_PORT_FEAT_BH_PORT_RESET   28

Definition at line 75 of file ch11.h.

#define USB_PORT_FEAT_C_BH_PORT_RESET   29

Definition at line 76 of file ch11.h.

#define USB_PORT_FEAT_C_CONNECTION   16

Definition at line 56 of file ch11.h.

#define USB_PORT_FEAT_C_ENABLE   17

Definition at line 57 of file ch11.h.

#define USB_PORT_FEAT_C_OVER_CURRENT   19

Definition at line 59 of file ch11.h.

#define USB_PORT_FEAT_C_PORT_CONFIG_ERROR   26

Definition at line 73 of file ch11.h.

#define USB_PORT_FEAT_C_PORT_L1   23

Definition at line 63 of file ch11.h.

#define USB_PORT_FEAT_C_PORT_LINK_STATE   25

Definition at line 72 of file ch11.h.

#define USB_PORT_FEAT_C_RESET   20

Definition at line 60 of file ch11.h.

#define USB_PORT_FEAT_C_SUSPEND   18

Definition at line 58 of file ch11.h.

#define USB_PORT_FEAT_CONNECTION   0

Definition at line 48 of file ch11.h.

#define USB_PORT_FEAT_ENABLE   1

Definition at line 49 of file ch11.h.

#define USB_PORT_FEAT_FORCE_LINKPM_ACCEPT   30

Definition at line 77 of file ch11.h.

#define USB_PORT_FEAT_INDICATOR   22

Definition at line 62 of file ch11.h.

#define USB_PORT_FEAT_L1   5 /* L1 suspend */

Definition at line 53 of file ch11.h.

#define USB_PORT_FEAT_LINK_STATE   5

Definition at line 69 of file ch11.h.

#define USB_PORT_FEAT_LOWSPEED   9 /* Should never be used */

Definition at line 55 of file ch11.h.

#define USB_PORT_FEAT_OVER_CURRENT   3

Definition at line 51 of file ch11.h.

#define USB_PORT_FEAT_POWER   8

Definition at line 54 of file ch11.h.

#define USB_PORT_FEAT_REMOTE_WAKE_CONNECT   (1 << 8)

Definition at line 82 of file ch11.h.

#define USB_PORT_FEAT_REMOTE_WAKE_DISCONNECT   (1 << 9)

Definition at line 83 of file ch11.h.

#define USB_PORT_FEAT_REMOTE_WAKE_MASK   27

Definition at line 74 of file ch11.h.

#define USB_PORT_FEAT_REMOTE_WAKE_OVER_CURRENT   (1 << 10)

Definition at line 84 of file ch11.h.

#define USB_PORT_FEAT_RESET   4

Definition at line 52 of file ch11.h.

#define USB_PORT_FEAT_SUSPEND   2 /* L2 suspend */

Definition at line 50 of file ch11.h.

#define USB_PORT_FEAT_TEST   21

Definition at line 61 of file ch11.h.

#define USB_PORT_FEAT_U1_TIMEOUT   23

Definition at line 70 of file ch11.h.

#define USB_PORT_FEAT_U2_TIMEOUT   24

Definition at line 71 of file ch11.h.

#define USB_PORT_LPM_TIMEOUT (   p)    (((p) & 0xff) << 8)

Definition at line 79 of file ch11.h.

#define USB_PORT_STAT_C_BH_RESET   0x0020

Definition at line 160 of file ch11.h.

#define USB_PORT_STAT_C_CONFIG_ERROR   0x0080

Definition at line 162 of file ch11.h.

#define USB_PORT_STAT_C_CONNECTION   0x0001

Definition at line 150 of file ch11.h.

#define USB_PORT_STAT_C_ENABLE   0x0002

Definition at line 151 of file ch11.h.

#define USB_PORT_STAT_C_L1   0x0020

Definition at line 155 of file ch11.h.

#define USB_PORT_STAT_C_LINK_STATE   0x0040

Definition at line 161 of file ch11.h.

#define USB_PORT_STAT_C_OVERCURRENT   0x0008

Definition at line 153 of file ch11.h.

#define USB_PORT_STAT_C_RESET   0x0010

Definition at line 154 of file ch11.h.

#define USB_PORT_STAT_C_SUSPEND   0x0004

Definition at line 152 of file ch11.h.

#define USB_PORT_STAT_CONNECTION   0x0001

Definition at line 99 of file ch11.h.

#define USB_PORT_STAT_ENABLE   0x0002

Definition at line 100 of file ch11.h.

#define USB_PORT_STAT_HIGH_SPEED   0x0400

Definition at line 108 of file ch11.h.

#define USB_PORT_STAT_INDICATOR   0x1000

Definition at line 110 of file ch11.h.

#define USB_PORT_STAT_L1   0x0020

Definition at line 104 of file ch11.h.

#define USB_PORT_STAT_LINK_STATE   0x01e0

Definition at line 117 of file ch11.h.

#define USB_PORT_STAT_LOW_SPEED   0x0200

Definition at line 107 of file ch11.h.

#define USB_PORT_STAT_OVERCURRENT   0x0008

Definition at line 102 of file ch11.h.

#define USB_PORT_STAT_POWER   0x0100

Definition at line 106 of file ch11.h.

#define USB_PORT_STAT_RESET   0x0010

Definition at line 103 of file ch11.h.

#define USB_PORT_STAT_SPEED_5GBPS   0x0000

Definition at line 120 of file ch11.h.

#define USB_PORT_STAT_SUSPEND   0x0004

Definition at line 101 of file ch11.h.

#define USB_PORT_STAT_TEST   0x0800

Definition at line 109 of file ch11.h.

#define USB_RT_HUB   (USB_TYPE_CLASS | USB_RECIP_DEVICE)

Definition at line 18 of file ch11.h.

#define USB_RT_PORT   (USB_TYPE_CLASS | USB_RECIP_OTHER)

Definition at line 19 of file ch11.h.

#define USB_SS_PORT_LS_COMP_MOD   0x0140

Definition at line 142 of file ch11.h.

#define USB_SS_PORT_LS_HOT_RESET   0x0120

Definition at line 141 of file ch11.h.

#define USB_SS_PORT_LS_LOOPBACK   0x0160

Definition at line 143 of file ch11.h.

#define USB_SS_PORT_LS_POLLING   0x00e0

Definition at line 139 of file ch11.h.

#define USB_SS_PORT_LS_RECOVERY   0x0100

Definition at line 140 of file ch11.h.

#define USB_SS_PORT_LS_RX_DETECT   0x00a0

Definition at line 137 of file ch11.h.

#define USB_SS_PORT_LS_SS_DISABLED   0x0080

Definition at line 136 of file ch11.h.

#define USB_SS_PORT_LS_SS_INACTIVE   0x00c0

Definition at line 138 of file ch11.h.

#define USB_SS_PORT_LS_U0   0x0000

Definition at line 132 of file ch11.h.

#define USB_SS_PORT_LS_U1   0x0020

Definition at line 133 of file ch11.h.

#define USB_SS_PORT_LS_U2   0x0040

Definition at line 134 of file ch11.h.

#define USB_SS_PORT_LS_U3   0x0060

Definition at line 135 of file ch11.h.

#define USB_SS_PORT_STAT_MASK
Value:
USB_PORT_STAT_ENABLE | \
USB_PORT_STAT_OVERCURRENT | \
USB_PORT_STAT_RESET)

Definition at line 123 of file ch11.h.

#define USB_SS_PORT_STAT_POWER   0x0200

Definition at line 118 of file ch11.h.

#define USB_SS_PORT_STAT_SPEED   0x1c00

Definition at line 119 of file ch11.h.

Enumeration Type Documentation

Definition at line 251 of file ch11.h.

Function Documentation

struct usb_port_status __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 bDescLength

Definition at line 244 of file ch11.h.

__u8 bDescriptorType

Definition at line 245 of file ch11.h.

__u8 bHubContrCurrent

Definition at line 249 of file ch11.h.

__u8 bHubHdrDecLat

Definition at line 242 of file ch11.h.

__u8 bNbrPorts

Definition at line 246 of file ch11.h.

__u8 bPwrOn2PwrGood

Definition at line 248 of file ch11.h.

__le16 DeviceRemovable

Definition at line 237 of file ch11.h.

INDICATOR_ALT_BLINK

Definition at line 259 of file ch11.h.

INDICATOR_ALT_BLINK_OFF

Definition at line 259 of file ch11.h.

INDICATOR_AMBER_BLINK

Definition at line 259 of file ch11.h.

INDICATOR_AMBER_BLINK_OFF

Definition at line 259 of file ch11.h.

INDICATOR_AUTO = 0

Definition at line 259 of file ch11.h.

INDICATOR_CYCLE

Definition at line 259 of file ch11.h.

INDICATOR_GREEN_BLINK

Definition at line 259 of file ch11.h.

INDICATOR_GREEN_BLINK_OFF

Definition at line 259 of file ch11.h.

__u8 PortPwrCtrlMask

Definition at line 238 of file ch11.h.

union { ... } u
__le16 wHubChange

Definition at line 188 of file ch11.h.

__le16 wHubCharacteristics

Definition at line 247 of file ch11.h.

__le16 wHubDelay

Definition at line 243 of file ch11.h.

__le16 wHubStatus

Definition at line 187 of file ch11.h.

__le16 wPortChange

Definition at line 95 of file ch11.h.

__le16 wPortStatus

Definition at line 94 of file ch11.h.