Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __LINUX_CH11_H |
| 20 | #define __LINUX_CH11_H |
| 21 | #include <linux/types.h> |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 22 | #define USB_MAXCHILDREN 31 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 24 | #define USB_RT_HUB (USB_TYPE_CLASS | USB_RECIP_DEVICE) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | #define USB_RT_PORT (USB_TYPE_CLASS | USB_RECIP_OTHER) |
| 26 | #define HUB_CLEAR_TT_BUFFER 8 |
| 27 | #define HUB_RESET_TT 9 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 29 | #define HUB_GET_TT_STATE 10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | #define HUB_STOP_TT 11 |
| 31 | #define HUB_SET_DEPTH 12 |
| 32 | #define HUB_GET_PORT_ERR_COUNT 13 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 34 | #define C_HUB_LOCAL_POWER 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define C_HUB_OVER_CURRENT 1 |
| 36 | #define USB_PORT_FEAT_CONNECTION 0 |
| 37 | #define USB_PORT_FEAT_ENABLE 1 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 39 | #define USB_PORT_FEAT_SUSPEND 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | #define USB_PORT_FEAT_OVER_CURRENT 3 |
| 41 | #define USB_PORT_FEAT_RESET 4 |
| 42 | #define USB_PORT_FEAT_L1 5 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 44 | #define USB_PORT_FEAT_POWER 8 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | #define USB_PORT_FEAT_LOWSPEED 9 |
| 46 | #define USB_PORT_FEAT_C_CONNECTION 16 |
| 47 | #define USB_PORT_FEAT_C_ENABLE 17 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 49 | #define USB_PORT_FEAT_C_SUSPEND 18 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 50 | #define USB_PORT_FEAT_C_OVER_CURRENT 19 |
| 51 | #define USB_PORT_FEAT_C_RESET 20 |
| 52 | #define USB_PORT_FEAT_TEST 21 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 54 | #define USB_PORT_FEAT_INDICATOR 22 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | #define USB_PORT_FEAT_C_PORT_L1 23 |
| 56 | #define USB_PORT_FEAT_LINK_STATE 5 |
| 57 | #define USB_PORT_FEAT_U1_TIMEOUT 23 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 59 | #define USB_PORT_FEAT_U2_TIMEOUT 24 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | #define USB_PORT_FEAT_C_PORT_LINK_STATE 25 |
| 61 | #define USB_PORT_FEAT_C_PORT_CONFIG_ERROR 26 |
| 62 | #define USB_PORT_FEAT_REMOTE_WAKE_MASK 27 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 64 | #define USB_PORT_FEAT_BH_PORT_RESET 28 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 65 | #define USB_PORT_FEAT_C_BH_PORT_RESET 29 |
| 66 | #define USB_PORT_FEAT_FORCE_LINKPM_ACCEPT 30 |
| 67 | #define USB_PORT_LPM_TIMEOUT(p) (((p) & 0xff) << 8) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 69 | #define USB_PORT_FEAT_REMOTE_WAKE_CONNECT (1 << 8) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 70 | #define USB_PORT_FEAT_REMOTE_WAKE_DISCONNECT (1 << 9) |
| 71 | #define USB_PORT_FEAT_REMOTE_WAKE_OVER_CURRENT (1 << 10) |
| 72 | struct usb_port_status { |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 74 | __le16 wPortStatus; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 75 | __le16 wPortChange; |
| 76 | } __attribute__ ((packed)); |
| 77 | #define USB_PORT_STAT_CONNECTION 0x0001 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 79 | #define USB_PORT_STAT_ENABLE 0x0002 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 80 | #define USB_PORT_STAT_SUSPEND 0x0004 |
| 81 | #define USB_PORT_STAT_OVERCURRENT 0x0008 |
| 82 | #define USB_PORT_STAT_RESET 0x0010 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 84 | #define USB_PORT_STAT_L1 0x0020 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 85 | #define USB_PORT_STAT_POWER 0x0100 |
| 86 | #define USB_PORT_STAT_LOW_SPEED 0x0200 |
| 87 | #define USB_PORT_STAT_HIGH_SPEED 0x0400 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 89 | #define USB_PORT_STAT_TEST 0x0800 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 90 | #define USB_PORT_STAT_INDICATOR 0x1000 |
| 91 | #define USB_PORT_STAT_LINK_STATE 0x01e0 |
| 92 | #define USB_SS_PORT_STAT_POWER 0x0200 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 94 | #define USB_SS_PORT_STAT_SPEED 0x1c00 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 95 | #define USB_PORT_STAT_SPEED_5GBPS 0x0000 |
| 96 | #define USB_SS_PORT_STAT_MASK (USB_PORT_STAT_CONNECTION | USB_PORT_STAT_ENABLE | USB_PORT_STAT_OVERCURRENT | USB_PORT_STAT_RESET) |
| 97 | #define USB_SS_PORT_LS_U0 0x0000 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 99 | #define USB_SS_PORT_LS_U1 0x0020 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 100 | #define USB_SS_PORT_LS_U2 0x0040 |
| 101 | #define USB_SS_PORT_LS_U3 0x0060 |
| 102 | #define USB_SS_PORT_LS_SS_DISABLED 0x0080 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 104 | #define USB_SS_PORT_LS_RX_DETECT 0x00a0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 105 | #define USB_SS_PORT_LS_SS_INACTIVE 0x00c0 |
| 106 | #define USB_SS_PORT_LS_POLLING 0x00e0 |
| 107 | #define USB_SS_PORT_LS_RECOVERY 0x0100 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 109 | #define USB_SS_PORT_LS_HOT_RESET 0x0120 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | #define USB_SS_PORT_LS_COMP_MOD 0x0140 |
| 111 | #define USB_SS_PORT_LS_LOOPBACK 0x0160 |
| 112 | #define USB_PORT_STAT_C_CONNECTION 0x0001 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 114 | #define USB_PORT_STAT_C_ENABLE 0x0002 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 115 | #define USB_PORT_STAT_C_SUSPEND 0x0004 |
| 116 | #define USB_PORT_STAT_C_OVERCURRENT 0x0008 |
| 117 | #define USB_PORT_STAT_C_RESET 0x0010 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 119 | #define USB_PORT_STAT_C_L1 0x0020 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 120 | #define USB_PORT_STAT_C_BH_RESET 0x0020 |
| 121 | #define USB_PORT_STAT_C_LINK_STATE 0x0040 |
| 122 | #define USB_PORT_STAT_C_CONFIG_ERROR 0x0080 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 124 | #define HUB_CHAR_LPSM 0x0003 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 125 | #define HUB_CHAR_COMMON_LPSM 0x0000 |
| 126 | #define HUB_CHAR_INDV_PORT_LPSM 0x0001 |
| 127 | #define HUB_CHAR_NO_LPSM 0x0002 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 129 | #define HUB_CHAR_COMPOUND 0x0004 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 130 | #define HUB_CHAR_OCPM 0x0018 |
| 131 | #define HUB_CHAR_COMMON_OCPM 0x0000 |
| 132 | #define HUB_CHAR_INDV_PORT_OCPM 0x0008 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 134 | #define HUB_CHAR_NO_OCPM 0x0010 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 135 | #define HUB_CHAR_TTTT 0x0060 |
| 136 | #define HUB_CHAR_PORTIND 0x0080 |
| 137 | struct usb_hub_status { |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 139 | __le16 wHubStatus; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 140 | __le16 wHubChange; |
| 141 | } __attribute__ ((packed)); |
| 142 | #define HUB_STATUS_LOCAL_POWER 0x0001 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 144 | #define HUB_STATUS_OVERCURRENT 0x0002 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 145 | #define HUB_CHANGE_LOCAL_POWER 0x0001 |
| 146 | #define HUB_CHANGE_OVERCURRENT 0x0002 |
| 147 | #define USB_DT_HUB (USB_TYPE_CLASS | 0x09) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 149 | #define USB_DT_SS_HUB (USB_TYPE_CLASS | 0x0a) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 150 | #define USB_DT_HUB_NONVAR_SIZE 7 |
| 151 | #define USB_DT_SS_HUB_SIZE 12 |
| 152 | #define USB_HUB_PR_FS 0 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 154 | #define USB_HUB_PR_HS_NO_TT 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 155 | #define USB_HUB_PR_HS_SINGLE_TT 1 |
| 156 | #define USB_HUB_PR_HS_MULTI_TT 2 |
| 157 | #define USB_HUB_PR_SS 3 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 159 | struct usb_hub_descriptor { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 160 | __u8 bDescLength; |
| 161 | __u8 bDescriptorType; |
| 162 | __u8 bNbrPorts; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 163 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 164 | __le16 wHubCharacteristics; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 165 | __u8 bPwrOn2PwrGood; |
| 166 | __u8 bHubContrCurrent; |
| 167 | union { |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 169 | struct { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 170 | __u8 DeviceRemovable[(USB_MAXCHILDREN + 1 + 7) / 8]; |
| 171 | __u8 PortPwrCtrlMask[(USB_MAXCHILDREN + 1 + 7) / 8]; |
| 172 | } __attribute__ ((packed)) hs; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 173 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 174 | struct { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 175 | __u8 bHubHdrDecLat; |
| 176 | __le16 wHubDelay; |
| 177 | __le16 DeviceRemovable; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 178 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 179 | } __attribute__ ((packed)) ss; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 180 | } u; |
| 181 | } __attribute__ ((packed)); |
| 182 | #define HUB_LED_AUTO 0 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 183 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 184 | #define HUB_LED_AMBER 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 185 | #define HUB_LED_GREEN 2 |
| 186 | #define HUB_LED_OFF 3 |
| 187 | enum hub_led_mode { |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 188 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 189 | INDICATOR_AUTO = 0, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 190 | INDICATOR_CYCLE, |
| 191 | INDICATOR_GREEN_BLINK, INDICATOR_GREEN_BLINK_OFF, |
| 192 | INDICATOR_AMBER_BLINK, INDICATOR_AMBER_BLINK_OFF, |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 193 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 194 | INDICATOR_ALT_BLINK, INDICATOR_ALT_BLINK_OFF |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 195 | } __attribute__ ((packed)); |
| 196 | #define HUB_TTTT_8_BITS 0x00 |
| 197 | #define HUB_TTTT_16_BITS 0x20 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 198 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 199 | #define HUB_TTTT_24_BITS 0x40 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 200 | #define HUB_TTTT_32_BITS 0x60 |
| 201 | #endif |