Changeset 1dcc0b9 in mainline for uspace/drv/nic/ar9271/htc.h
- Timestamp:
- 2015-04-06T10:47:51Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d7dadcb4
- Parents:
- 59fa7ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/htc.h
r59fa7ab r1dcc0b9 45 45 46 46 #define HTC_RTS_THRESHOLD 2304 47 #define HTC_R X_HEADER_LENGTH 4048 49 /** 50 * HTC message IDs 47 #define HTC_RATES_MAX_LENGTH 30 48 49 /** 50 * HTC message IDs. 51 51 */ 52 52 typedef enum { … … 59 59 60 60 /** 61 * HTC response message status codes 61 * HTC response message status codes. 62 62 */ 63 63 typedef enum { … … 70 70 71 71 /** 72 * HTC operating mode definition 72 * HTC operating mode definition. 73 73 */ 74 74 typedef enum { … … 80 80 81 81 /** 82 * HTC endpoint numbers 82 * HTC data type indicator. 83 */ 84 typedef enum { 85 HTC_DATA_AMPDU = 1, 86 HTC_DATA_NORMAL = 2, 87 HTC_DATA_BEACON = 3, 88 HTC_DATA_MGMT = 4 89 } htc_data_type_t; 90 91 /** 92 * HTC endpoint numbers. 83 93 */ 84 94 typedef struct { … … 96 106 97 107 /** 98 * HTC device data 108 * HTC device data. 99 109 */ 100 110 typedef struct { … … 119 129 120 130 /** 121 * HTC frame header structure 131 * HTC frame header structure. 122 132 */ 123 133 typedef struct { … … 126 136 uint16_t payload_length; /**< Big Endian value! */ 127 137 uint8_t control_bytes[4]; 128 129 /* Message payload starts after the header. */130 138 } __attribute__((packed)) htc_frame_header_t; 131 139 132 140 /** 133 * HTC management TX frame header structure 141 * HTC management TX frame header structure. 134 142 */ 135 143 typedef struct { … … 145 153 146 154 /** 147 * HTC ready message structure 155 * HTC data TX frame header structure. 156 */ 157 typedef struct { 158 uint8_t data_type; 159 uint8_t node_idx; 160 uint8_t vif_idx; 161 uint8_t tidno; 162 uint32_t flags; /**< Big Endian value! */ 163 uint8_t key_type; 164 uint8_t keyix; 165 uint8_t cookie; 166 uint8_t pad; 167 } __attribute__((packed)) htc_tx_data_header_t; 168 169 /** 170 * HTC ready message structure. 148 171 */ 149 172 typedef struct { … … 157 180 158 181 /** 159 * HTC service message structure 182 * HTC service message structure. 160 183 */ 161 184 typedef struct { … … 171 194 172 195 /** 173 * HTC service response message structure 196 * HTC service response message structure. 174 197 */ 175 198 typedef struct { … … 184 207 185 208 /** 186 * HTC credits config message structure 209 * HTC credits config message structure. 187 210 */ 188 211 typedef struct { … … 193 216 194 217 /** 195 * HTC new virtual interface message 218 * HTC new virtual interface message. 196 219 */ 197 220 typedef struct { … … 205 228 206 229 /** 207 * HTC new station message 230 * HTC new station message. 208 231 */ 209 232 typedef struct { … … 231 254 uint8_t pad; 232 255 } __attribute__((packed)) htc_cap_msg_t; 256 257 typedef struct { 258 uint8_t sta_index; 259 uint8_t is_new; 260 uint32_t cap_flags; /**< Big Endian value! */ 261 uint8_t legacy_rates_count; 262 uint8_t legacy_rates[HTC_RATES_MAX_LENGTH]; 263 uint16_t pad; 264 } htc_rate_msg_t; 265 266 /** 267 * HTC RX status structure used in incoming HTC data messages. 268 */ 269 typedef struct { 270 uint64_t timestamp; /**< Big Endian value! */ 271 uint16_t data_length; /**< Big Endian value! */ 272 uint8_t status; 273 uint8_t phy_err; 274 int8_t rssi; 275 int8_t rssi_ctl[3]; 276 int8_t rssi_ext[3]; 277 uint8_t keyix; 278 uint8_t rate; 279 uint8_t antenna; 280 uint8_t more; 281 uint8_t is_aggr; 282 uint8_t more_aggr; 283 uint8_t num_delims; 284 uint8_t flags; 285 uint8_t dummy; 286 uint32_t evm0; /**< Big Endian value! */ 287 uint32_t evm1; /**< Big Endian value! */ 288 uint32_t evm2; /**< Big Endian value! */ 289 } htc_rx_status_t; 233 290 234 291 /**
Note:
See TracChangeset
for help on using the changeset viewer.