diff options
Diffstat (limited to 'drivers/staging/ath6kl/include/common/a_hci.h')
-rw-r--r-- | drivers/staging/ath6kl/include/common/a_hci.h | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/drivers/staging/ath6kl/include/common/a_hci.h b/drivers/staging/ath6kl/include/common/a_hci.h index 1d7d5fa3542..317ea57ba87 100644 --- a/drivers/staging/ath6kl/include/common/a_hci.h +++ b/drivers/staging/ath6kl/include/common/a_hci.h | |||
@@ -242,7 +242,7 @@ typedef enum { | |||
242 | 242 | ||
243 | /* Command pkt */ | 243 | /* Command pkt */ |
244 | typedef struct hci_cmd_pkt_t { | 244 | typedef struct hci_cmd_pkt_t { |
245 | A_UINT16 opcode; | 245 | u16 opcode; |
246 | u8 param_length; | 246 | u8 param_length; |
247 | u8 params[255]; | 247 | u8 params[255]; |
248 | } POSTPACK HCI_CMD_PKT; | 248 | } POSTPACK HCI_CMD_PKT; |
@@ -250,8 +250,8 @@ typedef struct hci_cmd_pkt_t { | |||
250 | #define ACL_DATA_HDR_SIZE 4 /* hdl_and flags + data_len */ | 250 | #define ACL_DATA_HDR_SIZE 4 /* hdl_and flags + data_len */ |
251 | /* Data pkt */ | 251 | /* Data pkt */ |
252 | typedef struct hci_acl_data_pkt_t { | 252 | typedef struct hci_acl_data_pkt_t { |
253 | A_UINT16 hdl_and_flags; | 253 | u16 hdl_and_flags; |
254 | A_UINT16 data_len; | 254 | u16 data_len; |
255 | u8 data[Max80211_PAL_PDU_Size]; | 255 | u8 data[Max80211_PAL_PDU_Size]; |
256 | } POSTPACK HCI_ACL_DATA_PKT; | 256 | } POSTPACK HCI_ACL_DATA_PKT; |
257 | 257 | ||
@@ -265,7 +265,7 @@ typedef struct hci_event_pkt_t { | |||
265 | 265 | ||
266 | /*============== HCI Command definitions ======================= */ | 266 | /*============== HCI Command definitions ======================= */ |
267 | typedef struct hci_cmd_phy_link_t { | 267 | typedef struct hci_cmd_phy_link_t { |
268 | A_UINT16 opcode; | 268 | u16 opcode; |
269 | u8 param_length; | 269 | u8 param_length; |
270 | u8 phy_link_hdl; | 270 | u8 phy_link_hdl; |
271 | u8 link_key_len; | 271 | u8 link_key_len; |
@@ -274,62 +274,62 @@ typedef struct hci_cmd_phy_link_t { | |||
274 | } POSTPACK HCI_CMD_PHY_LINK; | 274 | } POSTPACK HCI_CMD_PHY_LINK; |
275 | 275 | ||
276 | typedef struct hci_cmd_write_rem_amp_assoc_t { | 276 | typedef struct hci_cmd_write_rem_amp_assoc_t { |
277 | A_UINT16 opcode; | 277 | u16 opcode; |
278 | u8 param_length; | 278 | u8 param_length; |
279 | u8 phy_link_hdl; | 279 | u8 phy_link_hdl; |
280 | A_UINT16 len_so_far; | 280 | u16 len_so_far; |
281 | A_UINT16 amp_assoc_remaining_len; | 281 | u16 amp_assoc_remaining_len; |
282 | u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; | 282 | u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; |
283 | } POSTPACK HCI_CMD_WRITE_REM_AMP_ASSOC; | 283 | } POSTPACK HCI_CMD_WRITE_REM_AMP_ASSOC; |
284 | 284 | ||
285 | 285 | ||
286 | typedef struct hci_cmd_opcode_hdl_t { | 286 | typedef struct hci_cmd_opcode_hdl_t { |
287 | A_UINT16 opcode; | 287 | u16 opcode; |
288 | u8 param_length; | 288 | u8 param_length; |
289 | A_UINT16 hdl; | 289 | u16 hdl; |
290 | } POSTPACK HCI_CMD_READ_LINK_QUAL, | 290 | } POSTPACK HCI_CMD_READ_LINK_QUAL, |
291 | HCI_CMD_FLUSH, | 291 | HCI_CMD_FLUSH, |
292 | HCI_CMD_READ_LINK_SUPERVISION_TIMEOUT; | 292 | HCI_CMD_READ_LINK_SUPERVISION_TIMEOUT; |
293 | 293 | ||
294 | typedef struct hci_cmd_read_local_amp_assoc_t { | 294 | typedef struct hci_cmd_read_local_amp_assoc_t { |
295 | A_UINT16 opcode; | 295 | u16 opcode; |
296 | u8 param_length; | 296 | u8 param_length; |
297 | u8 phy_link_hdl; | 297 | u8 phy_link_hdl; |
298 | A_UINT16 len_so_far; | 298 | u16 len_so_far; |
299 | A_UINT16 max_rem_amp_assoc_len; | 299 | u16 max_rem_amp_assoc_len; |
300 | } POSTPACK HCI_CMD_READ_LOCAL_AMP_ASSOC; | 300 | } POSTPACK HCI_CMD_READ_LOCAL_AMP_ASSOC; |
301 | 301 | ||
302 | 302 | ||
303 | typedef struct hci_cmd_set_event_mask_t { | 303 | typedef struct hci_cmd_set_event_mask_t { |
304 | A_UINT16 opcode; | 304 | u16 opcode; |
305 | u8 param_length; | 305 | u8 param_length; |
306 | A_UINT64 mask; | 306 | A_UINT64 mask; |
307 | }POSTPACK HCI_CMD_SET_EVT_MASK, HCI_CMD_SET_EVT_MASK_PG_2; | 307 | }POSTPACK HCI_CMD_SET_EVT_MASK, HCI_CMD_SET_EVT_MASK_PG_2; |
308 | 308 | ||
309 | 309 | ||
310 | typedef struct hci_cmd_enhanced_flush_t{ | 310 | typedef struct hci_cmd_enhanced_flush_t{ |
311 | A_UINT16 opcode; | 311 | u16 opcode; |
312 | u8 param_length; | 312 | u8 param_length; |
313 | A_UINT16 hdl; | 313 | u16 hdl; |
314 | u8 type; | 314 | u8 type; |
315 | } POSTPACK HCI_CMD_ENHANCED_FLUSH; | 315 | } POSTPACK HCI_CMD_ENHANCED_FLUSH; |
316 | 316 | ||
317 | 317 | ||
318 | typedef struct hci_cmd_write_timeout_t { | 318 | typedef struct hci_cmd_write_timeout_t { |
319 | A_UINT16 opcode; | 319 | u16 opcode; |
320 | u8 param_length; | 320 | u8 param_length; |
321 | A_UINT16 timeout; | 321 | u16 timeout; |
322 | } POSTPACK HCI_CMD_WRITE_TIMEOUT; | 322 | } POSTPACK HCI_CMD_WRITE_TIMEOUT; |
323 | 323 | ||
324 | typedef struct hci_cmd_write_link_supervision_timeout_t { | 324 | typedef struct hci_cmd_write_link_supervision_timeout_t { |
325 | A_UINT16 opcode; | 325 | u16 opcode; |
326 | u8 param_length; | 326 | u8 param_length; |
327 | A_UINT16 hdl; | 327 | u16 hdl; |
328 | A_UINT16 timeout; | 328 | u16 timeout; |
329 | } POSTPACK HCI_CMD_WRITE_LINK_SUPERVISION_TIMEOUT; | 329 | } POSTPACK HCI_CMD_WRITE_LINK_SUPERVISION_TIMEOUT; |
330 | 330 | ||
331 | typedef struct hci_cmd_write_flow_control_t { | 331 | typedef struct hci_cmd_write_flow_control_t { |
332 | A_UINT16 opcode; | 332 | u16 opcode; |
333 | u8 param_length; | 333 | u8 param_length; |
334 | u8 mode; | 334 | u8 mode; |
335 | } POSTPACK HCI_CMD_WRITE_FLOW_CONTROL; | 335 | } POSTPACK HCI_CMD_WRITE_FLOW_CONTROL; |
@@ -341,7 +341,7 @@ typedef struct location_data_cfg_t { | |||
341 | } POSTPACK LOCATION_DATA_CFG; | 341 | } POSTPACK LOCATION_DATA_CFG; |
342 | 342 | ||
343 | typedef struct hci_cmd_write_location_data_t { | 343 | typedef struct hci_cmd_write_location_data_t { |
344 | A_UINT16 opcode; | 344 | u16 opcode; |
345 | u8 param_length; | 345 | u8 param_length; |
346 | LOCATION_DATA_CFG cfg; | 346 | LOCATION_DATA_CFG cfg; |
347 | } POSTPACK HCI_CMD_WRITE_LOCATION_DATA; | 347 | } POSTPACK HCI_CMD_WRITE_LOCATION_DATA; |
@@ -350,7 +350,7 @@ typedef struct hci_cmd_write_location_data_t { | |||
350 | typedef struct flow_spec_t { | 350 | typedef struct flow_spec_t { |
351 | u8 id; | 351 | u8 id; |
352 | u8 service_type; | 352 | u8 service_type; |
353 | A_UINT16 max_sdu; | 353 | u16 max_sdu; |
354 | A_UINT32 sdu_inter_arrival_time; | 354 | A_UINT32 sdu_inter_arrival_time; |
355 | A_UINT32 access_latency; | 355 | A_UINT32 access_latency; |
356 | A_UINT32 flush_timeout; | 356 | A_UINT32 flush_timeout; |
@@ -358,7 +358,7 @@ typedef struct flow_spec_t { | |||
358 | 358 | ||
359 | 359 | ||
360 | typedef struct hci_cmd_create_logical_link_t { | 360 | typedef struct hci_cmd_create_logical_link_t { |
361 | A_UINT16 opcode; | 361 | u16 opcode; |
362 | u8 param_length; | 362 | u8 param_length; |
363 | u8 phy_link_hdl; | 363 | u8 phy_link_hdl; |
364 | FLOW_SPEC tx_flow_spec; | 364 | FLOW_SPEC tx_flow_spec; |
@@ -366,34 +366,34 @@ typedef struct hci_cmd_create_logical_link_t { | |||
366 | } POSTPACK HCI_CMD_CREATE_LOGICAL_LINK; | 366 | } POSTPACK HCI_CMD_CREATE_LOGICAL_LINK; |
367 | 367 | ||
368 | typedef struct hci_cmd_flow_spec_modify_t { | 368 | typedef struct hci_cmd_flow_spec_modify_t { |
369 | A_UINT16 opcode; | 369 | u16 opcode; |
370 | u8 param_length; | 370 | u8 param_length; |
371 | A_UINT16 hdl; | 371 | u16 hdl; |
372 | FLOW_SPEC tx_flow_spec; | 372 | FLOW_SPEC tx_flow_spec; |
373 | FLOW_SPEC rx_flow_spec; | 373 | FLOW_SPEC rx_flow_spec; |
374 | } POSTPACK HCI_CMD_FLOW_SPEC_MODIFY; | 374 | } POSTPACK HCI_CMD_FLOW_SPEC_MODIFY; |
375 | 375 | ||
376 | typedef struct hci_cmd_logical_link_cancel_t { | 376 | typedef struct hci_cmd_logical_link_cancel_t { |
377 | A_UINT16 opcode; | 377 | u16 opcode; |
378 | u8 param_length; | 378 | u8 param_length; |
379 | u8 phy_link_hdl; | 379 | u8 phy_link_hdl; |
380 | u8 tx_flow_spec_id; | 380 | u8 tx_flow_spec_id; |
381 | } POSTPACK HCI_CMD_LOGICAL_LINK_CANCEL; | 381 | } POSTPACK HCI_CMD_LOGICAL_LINK_CANCEL; |
382 | 382 | ||
383 | typedef struct hci_cmd_disconnect_logical_link_t { | 383 | typedef struct hci_cmd_disconnect_logical_link_t { |
384 | A_UINT16 opcode; | 384 | u16 opcode; |
385 | u8 param_length; | 385 | u8 param_length; |
386 | A_UINT16 logical_link_hdl; | 386 | u16 logical_link_hdl; |
387 | } POSTPACK HCI_CMD_DISCONNECT_LOGICAL_LINK; | 387 | } POSTPACK HCI_CMD_DISCONNECT_LOGICAL_LINK; |
388 | 388 | ||
389 | typedef struct hci_cmd_disconnect_phy_link_t { | 389 | typedef struct hci_cmd_disconnect_phy_link_t { |
390 | A_UINT16 opcode; | 390 | u16 opcode; |
391 | u8 param_length; | 391 | u8 param_length; |
392 | u8 phy_link_hdl; | 392 | u8 phy_link_hdl; |
393 | } POSTPACK HCI_CMD_DISCONNECT_PHY_LINK; | 393 | } POSTPACK HCI_CMD_DISCONNECT_PHY_LINK; |
394 | 394 | ||
395 | typedef struct hci_cmd_srm_t { | 395 | typedef struct hci_cmd_srm_t { |
396 | A_UINT16 opcode; | 396 | u16 opcode; |
397 | u8 param_length; | 397 | u8 param_length; |
398 | u8 phy_link_hdl; | 398 | u8 phy_link_hdl; |
399 | u8 mode; | 399 | u8 mode; |
@@ -409,7 +409,7 @@ typedef struct hci_event_cmd_complete_t { | |||
409 | u8 event_code; | 409 | u8 event_code; |
410 | u8 param_len; | 410 | u8 param_len; |
411 | u8 num_hci_cmd_pkts; | 411 | u8 num_hci_cmd_pkts; |
412 | A_UINT16 opcode; | 412 | u16 opcode; |
413 | u8 params[255]; | 413 | u8 params[255]; |
414 | } POSTPACK HCI_EVENT_CMD_COMPLETE; | 414 | } POSTPACK HCI_EVENT_CMD_COMPLETE; |
415 | 415 | ||
@@ -420,7 +420,7 @@ typedef struct hci_event_cmd_status_t { | |||
420 | u8 param_len; | 420 | u8 param_len; |
421 | u8 status; | 421 | u8 status; |
422 | u8 num_hci_cmd_pkts; | 422 | u8 num_hci_cmd_pkts; |
423 | A_UINT16 opcode; | 423 | u16 opcode; |
424 | } POSTPACK HCI_EVENT_CMD_STATUS; | 424 | } POSTPACK HCI_EVENT_CMD_STATUS; |
425 | 425 | ||
426 | /* Hardware Error event */ | 426 | /* Hardware Error event */ |
@@ -435,7 +435,7 @@ typedef struct hci_event_hw_err_t { | |||
435 | typedef struct hci_event_handle_t { | 435 | typedef struct hci_event_handle_t { |
436 | u8 event_code; | 436 | u8 event_code; |
437 | u8 param_len; | 437 | u8 param_len; |
438 | A_UINT16 handle; | 438 | u16 handle; |
439 | } POSTPACK HCI_EVENT_FLUSH_OCCRD, | 439 | } POSTPACK HCI_EVENT_FLUSH_OCCRD, |
440 | HCI_EVENT_QOS_VIOLATION; | 440 | HCI_EVENT_QOS_VIOLATION; |
441 | 441 | ||
@@ -457,7 +457,7 @@ typedef struct hci_data_buf_overflow_t { | |||
457 | typedef struct hci_enhanced_flush_complt_t{ | 457 | typedef struct hci_enhanced_flush_complt_t{ |
458 | u8 event_code; | 458 | u8 event_code; |
459 | u8 param_len; | 459 | u8 param_len; |
460 | A_UINT16 hdl; | 460 | u16 hdl; |
461 | } POSTPACK HCI_EVENT_ENHANCED_FLUSH_COMPLT; | 461 | } POSTPACK HCI_EVENT_ENHANCED_FLUSH_COMPLT; |
462 | 462 | ||
463 | /* Channel select event */ | 463 | /* Channel select event */ |
@@ -480,7 +480,7 @@ typedef struct hci_event_logical_link_complete_event_t { | |||
480 | u8 event_code; | 480 | u8 event_code; |
481 | u8 param_len; | 481 | u8 param_len; |
482 | u8 status; | 482 | u8 status; |
483 | A_UINT16 logical_link_hdl; | 483 | u16 logical_link_hdl; |
484 | u8 phy_hdl; | 484 | u8 phy_hdl; |
485 | u8 tx_flow_id; | 485 | u8 tx_flow_id; |
486 | } POSTPACK HCI_EVENT_LOGICAL_LINK_COMPLETE_EVENT; | 486 | } POSTPACK HCI_EVENT_LOGICAL_LINK_COMPLETE_EVENT; |
@@ -490,7 +490,7 @@ typedef struct hci_event_disconnect_logical_link_event_t { | |||
490 | u8 event_code; | 490 | u8 event_code; |
491 | u8 param_len; | 491 | u8 param_len; |
492 | u8 status; | 492 | u8 status; |
493 | A_UINT16 logical_link_hdl; | 493 | u16 logical_link_hdl; |
494 | u8 reason; | 494 | u8 reason; |
495 | } POSTPACK HCI_EVENT_DISCONNECT_LOGICAL_LINK_EVENT; | 495 | } POSTPACK HCI_EVENT_DISCONNECT_LOGICAL_LINK_EVENT; |
496 | 496 | ||
@@ -523,7 +523,7 @@ typedef struct hci_event_status_handle_t { | |||
523 | u8 event_code; | 523 | u8 event_code; |
524 | u8 param_len; | 524 | u8 param_len; |
525 | u8 status; | 525 | u8 status; |
526 | A_UINT16 handle; | 526 | u16 handle; |
527 | } POSTPACK HCI_EVENT_FLOW_SPEC_MODIFY, | 527 | } POSTPACK HCI_EVENT_FLOW_SPEC_MODIFY, |
528 | HCI_EVENT_FLUSH; | 528 | HCI_EVENT_FLUSH; |
529 | 529 | ||
@@ -532,7 +532,7 @@ typedef struct hci_event_status_handle_t { | |||
532 | typedef struct hci_event_num_of_compl_data_blks_t { | 532 | typedef struct hci_event_num_of_compl_data_blks_t { |
533 | u8 event_code; | 533 | u8 event_code; |
534 | u8 param_len; | 534 | u8 param_len; |
535 | A_UINT16 num_data_blks; | 535 | u16 num_data_blks; |
536 | u8 num_handles; | 536 | u8 num_handles; |
537 | u8 params[255]; | 537 | u8 params[255]; |
538 | } POSTPACK HCI_EVENT_NUM_COMPL_DATA_BLKS; | 538 | } POSTPACK HCI_EVENT_NUM_COMPL_DATA_BLKS; |
@@ -564,8 +564,8 @@ typedef struct local_amp_info_resp_t { | |||
564 | A_UINT32 min_latency; | 564 | A_UINT32 min_latency; |
565 | A_UINT32 max_pdu_size; | 565 | A_UINT32 max_pdu_size; |
566 | u8 amp_type; | 566 | u8 amp_type; |
567 | A_UINT16 pal_capabilities; | 567 | u16 pal_capabilities; |
568 | A_UINT16 amp_assoc_len; | 568 | u16 amp_assoc_len; |
569 | A_UINT32 max_flush_timeout; /* in ms */ | 569 | A_UINT32 max_flush_timeout; /* in ms */ |
570 | A_UINT32 be_flush_timeout; /* in ms */ | 570 | A_UINT32 be_flush_timeout; /* in ms */ |
571 | } POSTPACK LOCAL_AMP_INFO; | 571 | } POSTPACK LOCAL_AMP_INFO; |
@@ -573,7 +573,7 @@ typedef struct local_amp_info_resp_t { | |||
573 | typedef struct amp_assoc_cmd_resp_t{ | 573 | typedef struct amp_assoc_cmd_resp_t{ |
574 | u8 status; | 574 | u8 status; |
575 | u8 phy_hdl; | 575 | u8 phy_hdl; |
576 | A_UINT16 amp_assoc_len; | 576 | u16 amp_assoc_len; |
577 | u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; | 577 | u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; |
578 | }POSTPACK AMP_ASSOC_CMD_RESP; | 578 | }POSTPACK AMP_ASSOC_CMD_RESP; |
579 | 579 | ||
@@ -619,18 +619,18 @@ enum PAL_HCI_CMD_STATUS { | |||
619 | */ | 619 | */ |
620 | typedef struct timeout_read_t { | 620 | typedef struct timeout_read_t { |
621 | u8 status; | 621 | u8 status; |
622 | A_UINT16 timeout; | 622 | u16 timeout; |
623 | }POSTPACK TIMEOUT_INFO; | 623 | }POSTPACK TIMEOUT_INFO; |
624 | 624 | ||
625 | typedef struct link_supervision_timeout_read_t { | 625 | typedef struct link_supervision_timeout_read_t { |
626 | u8 status; | 626 | u8 status; |
627 | A_UINT16 hdl; | 627 | u16 hdl; |
628 | A_UINT16 timeout; | 628 | u16 timeout; |
629 | }POSTPACK LINK_SUPERVISION_TIMEOUT_INFO; | 629 | }POSTPACK LINK_SUPERVISION_TIMEOUT_INFO; |
630 | 630 | ||
631 | typedef struct status_hdl_t { | 631 | typedef struct status_hdl_t { |
632 | u8 status; | 632 | u8 status; |
633 | A_UINT16 hdl; | 633 | u16 hdl; |
634 | }POSTPACK INFO_STATUS_HDL; | 634 | }POSTPACK INFO_STATUS_HDL; |
635 | 635 | ||
636 | typedef struct write_remote_amp_assoc_t{ | 636 | typedef struct write_remote_amp_assoc_t{ |
@@ -650,15 +650,15 @@ typedef struct read_flow_ctrl_mode_t { | |||
650 | 650 | ||
651 | typedef struct read_data_blk_size_t { | 651 | typedef struct read_data_blk_size_t { |
652 | u8 status; | 652 | u8 status; |
653 | A_UINT16 max_acl_data_pkt_len; | 653 | u16 max_acl_data_pkt_len; |
654 | A_UINT16 data_block_len; | 654 | u16 data_block_len; |
655 | A_UINT16 total_num_data_blks; | 655 | u16 total_num_data_blks; |
656 | }POSTPACK READ_DATA_BLK_SIZE_INFO; | 656 | }POSTPACK READ_DATA_BLK_SIZE_INFO; |
657 | 657 | ||
658 | /* Read Link quality info */ | 658 | /* Read Link quality info */ |
659 | typedef struct link_qual_t { | 659 | typedef struct link_qual_t { |
660 | u8 status; | 660 | u8 status; |
661 | A_UINT16 hdl; | 661 | u16 hdl; |
662 | u8 link_qual; | 662 | u8 link_qual; |
663 | } POSTPACK READ_LINK_QUAL_INFO, | 663 | } POSTPACK READ_LINK_QUAL_INFO, |
664 | READ_RSSI_INFO; | 664 | READ_RSSI_INFO; |
@@ -672,10 +672,10 @@ typedef struct ll_cancel_resp_t { | |||
672 | typedef struct read_local_ver_info_t { | 672 | typedef struct read_local_ver_info_t { |
673 | u8 status; | 673 | u8 status; |
674 | u8 hci_version; | 674 | u8 hci_version; |
675 | A_UINT16 hci_revision; | 675 | u16 hci_revision; |
676 | u8 pal_version; | 676 | u8 pal_version; |
677 | A_UINT16 manf_name; | 677 | u16 manf_name; |
678 | A_UINT16 pal_sub_ver; | 678 | u16 pal_sub_ver; |
679 | } POSTPACK READ_LOCAL_VER_INFO; | 679 | } POSTPACK READ_LOCAL_VER_INFO; |
680 | 680 | ||
681 | 681 | ||