diff options
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/umac.h')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/umac.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/umac.h b/drivers/net/wireless/iwmc3200wifi/umac.h index 0cbba3ecc813..4a137d334a42 100644 --- a/drivers/net/wireless/iwmc3200wifi/umac.h +++ b/drivers/net/wireless/iwmc3200wifi/umac.h | |||
@@ -42,19 +42,19 @@ | |||
42 | struct iwm_udma_in_hdr { | 42 | struct iwm_udma_in_hdr { |
43 | __le32 cmd; | 43 | __le32 cmd; |
44 | __le32 size; | 44 | __le32 size; |
45 | } __attribute__ ((packed)); | 45 | } __packed; |
46 | 46 | ||
47 | struct iwm_udma_out_nonwifi_hdr { | 47 | struct iwm_udma_out_nonwifi_hdr { |
48 | __le32 cmd; | 48 | __le32 cmd; |
49 | __le32 addr; | 49 | __le32 addr; |
50 | __le32 op1_sz; | 50 | __le32 op1_sz; |
51 | __le32 op2; | 51 | __le32 op2; |
52 | } __attribute__ ((packed)); | 52 | } __packed; |
53 | 53 | ||
54 | struct iwm_udma_out_wifi_hdr { | 54 | struct iwm_udma_out_wifi_hdr { |
55 | __le32 cmd; | 55 | __le32 cmd; |
56 | __le32 meta_data; | 56 | __le32 meta_data; |
57 | } __attribute__ ((packed)); | 57 | } __packed; |
58 | 58 | ||
59 | /* Sequence numbering */ | 59 | /* Sequence numbering */ |
60 | #define UMAC_WIFI_SEQ_NUM_BASE 1 | 60 | #define UMAC_WIFI_SEQ_NUM_BASE 1 |
@@ -408,12 +408,12 @@ struct iwm_rx_ticket { | |||
408 | __le16 flags; | 408 | __le16 flags; |
409 | u8 payload_offset; /* includes: MAC header, pad, IV */ | 409 | u8 payload_offset; /* includes: MAC header, pad, IV */ |
410 | u8 tail_len; /* includes: MIC, ICV, CRC (w/o STATUS) */ | 410 | u8 tail_len; /* includes: MIC, ICV, CRC (w/o STATUS) */ |
411 | } __attribute__ ((packed)); | 411 | } __packed; |
412 | 412 | ||
413 | struct iwm_rx_mpdu_hdr { | 413 | struct iwm_rx_mpdu_hdr { |
414 | __le16 len; | 414 | __le16 len; |
415 | __le16 reserved; | 415 | __le16 reserved; |
416 | } __attribute__ ((packed)); | 416 | } __packed; |
417 | 417 | ||
418 | /* UMAC SW WIFI API */ | 418 | /* UMAC SW WIFI API */ |
419 | 419 | ||
@@ -421,31 +421,31 @@ struct iwm_dev_cmd_hdr { | |||
421 | u8 cmd; | 421 | u8 cmd; |
422 | u8 flags; | 422 | u8 flags; |
423 | __le16 seq_num; | 423 | __le16 seq_num; |
424 | } __attribute__ ((packed)); | 424 | } __packed; |
425 | 425 | ||
426 | struct iwm_umac_fw_cmd_hdr { | 426 | struct iwm_umac_fw_cmd_hdr { |
427 | __le32 meta_data; | 427 | __le32 meta_data; |
428 | struct iwm_dev_cmd_hdr cmd; | 428 | struct iwm_dev_cmd_hdr cmd; |
429 | } __attribute__ ((packed)); | 429 | } __packed; |
430 | 430 | ||
431 | struct iwm_umac_wifi_out_hdr { | 431 | struct iwm_umac_wifi_out_hdr { |
432 | struct iwm_udma_out_wifi_hdr hw_hdr; | 432 | struct iwm_udma_out_wifi_hdr hw_hdr; |
433 | struct iwm_umac_fw_cmd_hdr sw_hdr; | 433 | struct iwm_umac_fw_cmd_hdr sw_hdr; |
434 | } __attribute__ ((packed)); | 434 | } __packed; |
435 | 435 | ||
436 | struct iwm_umac_nonwifi_out_hdr { | 436 | struct iwm_umac_nonwifi_out_hdr { |
437 | struct iwm_udma_out_nonwifi_hdr hw_hdr; | 437 | struct iwm_udma_out_nonwifi_hdr hw_hdr; |
438 | } __attribute__ ((packed)); | 438 | } __packed; |
439 | 439 | ||
440 | struct iwm_umac_wifi_in_hdr { | 440 | struct iwm_umac_wifi_in_hdr { |
441 | struct iwm_udma_in_hdr hw_hdr; | 441 | struct iwm_udma_in_hdr hw_hdr; |
442 | struct iwm_umac_fw_cmd_hdr sw_hdr; | 442 | struct iwm_umac_fw_cmd_hdr sw_hdr; |
443 | } __attribute__ ((packed)); | 443 | } __packed; |
444 | 444 | ||
445 | struct iwm_umac_nonwifi_in_hdr { | 445 | struct iwm_umac_nonwifi_in_hdr { |
446 | struct iwm_udma_in_hdr hw_hdr; | 446 | struct iwm_udma_in_hdr hw_hdr; |
447 | __le32 time_stamp; | 447 | __le32 time_stamp; |
448 | } __attribute__ ((packed)); | 448 | } __packed; |
449 | 449 | ||
450 | #define IWM_UMAC_PAGE_SIZE 0x200 | 450 | #define IWM_UMAC_PAGE_SIZE 0x200 |
451 | 451 | ||
@@ -521,7 +521,7 @@ struct iwm_umac_notif_wifi_if { | |||
521 | u8 status; | 521 | u8 status; |
522 | u8 flags; | 522 | u8 flags; |
523 | __le16 buf_size; | 523 | __le16 buf_size; |
524 | } __attribute__ ((packed)); | 524 | } __packed; |
525 | 525 | ||
526 | #define UMAC_ROAM_REASON_FIRST_SELECTION 0x1 | 526 | #define UMAC_ROAM_REASON_FIRST_SELECTION 0x1 |
527 | #define UMAC_ROAM_REASON_AP_DEAUTH 0x2 | 527 | #define UMAC_ROAM_REASON_AP_DEAUTH 0x2 |
@@ -535,7 +535,7 @@ struct iwm_umac_notif_assoc_start { | |||
535 | __le32 roam_reason; | 535 | __le32 roam_reason; |
536 | u8 bssid[ETH_ALEN]; | 536 | u8 bssid[ETH_ALEN]; |
537 | u8 reserved[2]; | 537 | u8 reserved[2]; |
538 | } __attribute__ ((packed)); | 538 | } __packed; |
539 | 539 | ||
540 | #define UMAC_ASSOC_COMPLETE_SUCCESS 0x0 | 540 | #define UMAC_ASSOC_COMPLETE_SUCCESS 0x0 |
541 | #define UMAC_ASSOC_COMPLETE_FAILURE 0x1 | 541 | #define UMAC_ASSOC_COMPLETE_FAILURE 0x1 |
@@ -546,7 +546,7 @@ struct iwm_umac_notif_assoc_complete { | |||
546 | u8 bssid[ETH_ALEN]; | 546 | u8 bssid[ETH_ALEN]; |
547 | u8 band; | 547 | u8 band; |
548 | u8 channel; | 548 | u8 channel; |
549 | } __attribute__ ((packed)); | 549 | } __packed; |
550 | 550 | ||
551 | #define UMAC_PROFILE_INVALID_ASSOC_TIMEOUT 0x0 | 551 | #define UMAC_PROFILE_INVALID_ASSOC_TIMEOUT 0x0 |
552 | #define UMAC_PROFILE_INVALID_ROAM_TIMEOUT 0x1 | 552 | #define UMAC_PROFILE_INVALID_ROAM_TIMEOUT 0x1 |
@@ -556,7 +556,7 @@ struct iwm_umac_notif_assoc_complete { | |||
556 | struct iwm_umac_notif_profile_invalidate { | 556 | struct iwm_umac_notif_profile_invalidate { |
557 | struct iwm_umac_notif_wifi_if mlme_hdr; | 557 | struct iwm_umac_notif_wifi_if mlme_hdr; |
558 | __le32 reason; | 558 | __le32 reason; |
559 | } __attribute__ ((packed)); | 559 | } __packed; |
560 | 560 | ||
561 | #define UMAC_SCAN_RESULT_SUCCESS 0x0 | 561 | #define UMAC_SCAN_RESULT_SUCCESS 0x0 |
562 | #define UMAC_SCAN_RESULT_ABORTED 0x1 | 562 | #define UMAC_SCAN_RESULT_ABORTED 0x1 |
@@ -568,7 +568,7 @@ struct iwm_umac_notif_scan_complete { | |||
568 | __le32 type; | 568 | __le32 type; |
569 | __le32 result; | 569 | __le32 result; |
570 | u8 seq_num; | 570 | u8 seq_num; |
571 | } __attribute__ ((packed)); | 571 | } __packed; |
572 | 572 | ||
573 | #define UMAC_OPCODE_ADD_MODIFY 0x0 | 573 | #define UMAC_OPCODE_ADD_MODIFY 0x0 |
574 | #define UMAC_OPCODE_REMOVE 0x1 | 574 | #define UMAC_OPCODE_REMOVE 0x1 |
@@ -582,7 +582,7 @@ struct iwm_umac_notif_sta_info { | |||
582 | u8 mac_addr[ETH_ALEN]; | 582 | u8 mac_addr[ETH_ALEN]; |
583 | u8 sta_id; /* bits 0-3: station ID, bits 4-7: station color */ | 583 | u8 sta_id; /* bits 0-3: station ID, bits 4-7: station color */ |
584 | u8 flags; | 584 | u8 flags; |
585 | } __attribute__ ((packed)); | 585 | } __packed; |
586 | 586 | ||
587 | #define UMAC_BAND_2GHZ 0 | 587 | #define UMAC_BAND_2GHZ 0 |
588 | #define UMAC_BAND_5GHZ 1 | 588 | #define UMAC_BAND_5GHZ 1 |
@@ -601,7 +601,7 @@ struct iwm_umac_notif_bss_info { | |||
601 | s8 rssi; | 601 | s8 rssi; |
602 | u8 reserved; | 602 | u8 reserved; |
603 | u8 frame_buf[1]; | 603 | u8 frame_buf[1]; |
604 | } __attribute__ ((packed)); | 604 | } __packed; |
605 | 605 | ||
606 | #define IWM_BSS_REMOVE_INDEX_MSK 0x0fff | 606 | #define IWM_BSS_REMOVE_INDEX_MSK 0x0fff |
607 | #define IWM_BSS_REMOVE_FLAGS_MSK 0xfc00 | 607 | #define IWM_BSS_REMOVE_FLAGS_MSK 0xfc00 |
@@ -614,13 +614,13 @@ struct iwm_umac_notif_bss_removed { | |||
614 | struct iwm_umac_notif_wifi_if mlme_hdr; | 614 | struct iwm_umac_notif_wifi_if mlme_hdr; |
615 | __le32 count; | 615 | __le32 count; |
616 | __le16 entries[0]; | 616 | __le16 entries[0]; |
617 | } __attribute__ ((packed)); | 617 | } __packed; |
618 | 618 | ||
619 | struct iwm_umac_notif_mgt_frame { | 619 | struct iwm_umac_notif_mgt_frame { |
620 | struct iwm_umac_notif_wifi_if mlme_hdr; | 620 | struct iwm_umac_notif_wifi_if mlme_hdr; |
621 | __le16 len; | 621 | __le16 len; |
622 | u8 frame[1]; | 622 | u8 frame[1]; |
623 | } __attribute__ ((packed)); | 623 | } __packed; |
624 | 624 | ||
625 | struct iwm_umac_notif_alive { | 625 | struct iwm_umac_notif_alive { |
626 | struct iwm_umac_wifi_in_hdr hdr; | 626 | struct iwm_umac_wifi_in_hdr hdr; |
@@ -630,13 +630,13 @@ struct iwm_umac_notif_alive { | |||
630 | __le16 reserved2; | 630 | __le16 reserved2; |
631 | __le16 page_grp_count; | 631 | __le16 page_grp_count; |
632 | __le32 page_grp_state[IWM_MACS_OUT_GROUPS]; | 632 | __le32 page_grp_state[IWM_MACS_OUT_GROUPS]; |
633 | } __attribute__ ((packed)); | 633 | } __packed; |
634 | 634 | ||
635 | struct iwm_umac_notif_init_complete { | 635 | struct iwm_umac_notif_init_complete { |
636 | struct iwm_umac_wifi_in_hdr hdr; | 636 | struct iwm_umac_wifi_in_hdr hdr; |
637 | __le16 status; | 637 | __le16 status; |
638 | __le16 reserved; | 638 | __le16 reserved; |
639 | } __attribute__ ((packed)); | 639 | } __packed; |
640 | 640 | ||
641 | /* error categories */ | 641 | /* error categories */ |
642 | enum { | 642 | enum { |
@@ -667,12 +667,12 @@ struct iwm_fw_error_hdr { | |||
667 | __le32 dbm_buf_end; | 667 | __le32 dbm_buf_end; |
668 | __le32 dbm_buf_write_ptr; | 668 | __le32 dbm_buf_write_ptr; |
669 | __le32 dbm_buf_cycle_cnt; | 669 | __le32 dbm_buf_cycle_cnt; |
670 | } __attribute__ ((packed)); | 670 | } __packed; |
671 | 671 | ||
672 | struct iwm_umac_notif_error { | 672 | struct iwm_umac_notif_error { |
673 | struct iwm_umac_wifi_in_hdr hdr; | 673 | struct iwm_umac_wifi_in_hdr hdr; |
674 | struct iwm_fw_error_hdr err; | 674 | struct iwm_fw_error_hdr err; |
675 | } __attribute__ ((packed)); | 675 | } __packed; |
676 | 676 | ||
677 | #define UMAC_DEALLOC_NTFY_CHANGES_CNT_POS 0 | 677 | #define UMAC_DEALLOC_NTFY_CHANGES_CNT_POS 0 |
678 | #define UMAC_DEALLOC_NTFY_CHANGES_CNT_SEED 0xff | 678 | #define UMAC_DEALLOC_NTFY_CHANGES_CNT_SEED 0xff |
@@ -687,20 +687,20 @@ struct iwm_umac_notif_page_dealloc { | |||
687 | struct iwm_umac_wifi_in_hdr hdr; | 687 | struct iwm_umac_wifi_in_hdr hdr; |
688 | __le32 changes; | 688 | __le32 changes; |
689 | __le32 grp_info[IWM_MACS_OUT_GROUPS]; | 689 | __le32 grp_info[IWM_MACS_OUT_GROUPS]; |
690 | } __attribute__ ((packed)); | 690 | } __packed; |
691 | 691 | ||
692 | struct iwm_umac_notif_wifi_status { | 692 | struct iwm_umac_notif_wifi_status { |
693 | struct iwm_umac_wifi_in_hdr hdr; | 693 | struct iwm_umac_wifi_in_hdr hdr; |
694 | __le16 status; | 694 | __le16 status; |
695 | __le16 reserved; | 695 | __le16 reserved; |
696 | } __attribute__ ((packed)); | 696 | } __packed; |
697 | 697 | ||
698 | struct iwm_umac_notif_rx_ticket { | 698 | struct iwm_umac_notif_rx_ticket { |
699 | struct iwm_umac_wifi_in_hdr hdr; | 699 | struct iwm_umac_wifi_in_hdr hdr; |
700 | u8 num_tickets; | 700 | u8 num_tickets; |
701 | u8 reserved[3]; | 701 | u8 reserved[3]; |
702 | struct iwm_rx_ticket tickets[1]; | 702 | struct iwm_rx_ticket tickets[1]; |
703 | } __attribute__ ((packed)); | 703 | } __packed; |
704 | 704 | ||
705 | /* Tx/Rx rates window (number of max of last update window per second) */ | 705 | /* Tx/Rx rates window (number of max of last update window per second) */ |
706 | #define UMAC_NTF_RATE_SAMPLE_NR 4 | 706 | #define UMAC_NTF_RATE_SAMPLE_NR 4 |
@@ -758,7 +758,7 @@ struct iwm_umac_notif_stats { | |||
758 | __le32 roam_unassoc; | 758 | __le32 roam_unassoc; |
759 | __le32 roam_deauth; | 759 | __le32 roam_deauth; |
760 | __le32 roam_ap_loadblance; | 760 | __le32 roam_ap_loadblance; |
761 | } __attribute__ ((packed)); | 761 | } __packed; |
762 | 762 | ||
763 | #define UMAC_STOP_TX_FLAG 0x1 | 763 | #define UMAC_STOP_TX_FLAG 0x1 |
764 | #define UMAC_RESUME_TX_FLAG 0x2 | 764 | #define UMAC_RESUME_TX_FLAG 0x2 |
@@ -770,7 +770,7 @@ struct iwm_umac_notif_stop_resume_tx { | |||
770 | u8 flags; /* UMAC_*_TX_FLAG_* */ | 770 | u8 flags; /* UMAC_*_TX_FLAG_* */ |
771 | u8 sta_id; | 771 | u8 sta_id; |
772 | __le16 stop_resume_tid_msk; /* tid bitmask */ | 772 | __le16 stop_resume_tid_msk; /* tid bitmask */ |
773 | } __attribute__ ((packed)); | 773 | } __packed; |
774 | 774 | ||
775 | #define UMAC_MAX_NUM_PMKIDS 4 | 775 | #define UMAC_MAX_NUM_PMKIDS 4 |
776 | 776 | ||
@@ -779,7 +779,7 @@ struct iwm_umac_wifi_if { | |||
779 | u8 oid; | 779 | u8 oid; |
780 | u8 flags; | 780 | u8 flags; |
781 | __le16 buf_size; | 781 | __le16 buf_size; |
782 | } __attribute__ ((packed)); | 782 | } __packed; |
783 | 783 | ||
784 | #define IWM_SEQ_NUM_HOST_MSK 0x0000 | 784 | #define IWM_SEQ_NUM_HOST_MSK 0x0000 |
785 | #define IWM_SEQ_NUM_UMAC_MSK 0x4000 | 785 | #define IWM_SEQ_NUM_UMAC_MSK 0x4000 |