Changeset e7e1fd3 in mainline
- Timestamp:
- 2018-01-23T13:46:16Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a6afb4c
- Parents:
- 8033f89
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-23 13:46:13)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-23 13:46:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hub.h
r8033f89 re7e1fd3 182 182 #define STATUS_BYTES(ports) ((1 + ports + 7) / 8) 183 183 184 /** @brief usb hub specific request types. 185 * 186 * For more information see Universal Serial Bus Specification Revision 1.1 chapter 11.16.2 184 /** 185 * @brief usb hub specific request types. 187 186 */ 188 187 typedef enum { 189 /** This request resets a value reported in the hub status.*/188 /** This request resets a value reported in the hub status. */ 190 189 USB_HUB_REQ_TYPE_CLEAR_HUB_FEATURE = 0x20, 191 190 /** This request resets a value reported in the port status. */ 192 191 USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE = 0x23, 193 /** This is an optional per-port diagnostic request that returns the bus state value, as sampled at the last EOF2 point. */ 192 /** 193 * This is an optional per-port diagnostic request that returns the bus 194 * state value, as sampled at the last EOF2 point. 195 */ 194 196 USB_HUB_REQ_TYPE_GET_STATE = 0xA3, 195 197 /** This request returns the hub descriptor. */ 196 198 USB_HUB_REQ_TYPE_GET_DESCRIPTOR = 0xA0, 197 /** This request returns the current hub status and the states that have changed since the previous acknowledgment. */ 199 /** 200 * This request returns the current hub status and the states that have 201 * changed since the previous acknowledgment. 202 */ 198 203 USB_HUB_REQ_TYPE_GET_HUB_STATUS = 0xA0, 199 /** This request returns the current port status and the current value of the port status change bits. */ 204 /** 205 * This request returns the current port status and the current value of the 206 * port status change bits. 207 */ 200 208 USB_HUB_REQ_TYPE_GET_PORT_STATUS = 0xA3, 201 209 /** This request overwrites the hub descriptor. */ … … 203 211 /** This request sets a value reported in the hub status. */ 204 212 USB_HUB_REQ_TYPE_SET_HUB_FEATURE = 0x20, 205 /** This request sets the value that the hub uses to determine the index into the Route String Index for the hub. */ 213 /** 214 * This request sets the value that the hub uses to determine the index 215 * into the Route String Index for the hub. 216 */ 206 217 USB_HUB_REQ_TYPE_SET_HUB_DEPTH = 0x20, 207 218 /** This request sets a value reported in the port status. */ … … 237 248 238 249 /** 239 * 250 * Maximum size of usb hub descriptor in bytes 240 251 */ 241 252 /* 7 (basic size) + 2*32 (port bitmasks) */
Note:
See TracChangeset
for help on using the changeset viewer.