1 /* 2 * Copyright (c) 2018 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 // $ATH_LICENSE_HW_HDR_C$ 20 // 21 // DO NOT EDIT! This file is automatically generated 22 // These definitions are tied to a particular hardware layout 23 24 25 #ifndef _L_SIG_B_INFO_H_ 26 #define _L_SIG_B_INFO_H_ 27 #if !defined(__ASSEMBLER__) 28 #endif 29 30 31 // ################ START SUMMARY ################# 32 // 33 // Dword Fields 34 // 0 rate[3:0], length[15:4], reserved[31:16] 35 // 36 // ################ END SUMMARY ################# 37 38 #define NUM_OF_DWORDS_L_SIG_B_INFO 1 39 40 struct l_sig_b_info { 41 uint32_t rate : 4, //[3:0] 42 length : 12, //[15:4] 43 reserved : 16; //[31:16] 44 }; 45 46 /* 47 48 rate 49 50 <enum 1 dsss_1_mpbs_long> DSSS 1 Mbps long 51 52 <enum 2 dsss_2_mbps_long> DSSS 2 Mbps long 53 54 <enum 3 cck_5_5_mbps_long> CCK 5.5 Mbps long 55 56 <enum 4 cck_11_mbps_long> CCK 11 Mbps long 57 58 <enum 5 dsss_2_mbps_short> DSSS 2 Mbps short 59 60 <enum 6 cck_5_5_mbps_short> CCK 5.5 Mbps short 61 62 <enum 7 cck_11_mbps_short> CCK 11 Mbps short 63 64 <legal 1-7> 65 66 length 67 68 The length indicates the number of octets in this MPDU. 69 70 <legal all> 71 72 reserved 73 74 Reserved: Should be set to 0 by the transmitting MAC and 75 ignored by the PHY <legal 0> 76 */ 77 78 79 /* Description L_SIG_B_INFO_0_RATE 80 81 <enum 1 dsss_1_mpbs_long> DSSS 1 Mbps long 82 83 <enum 2 dsss_2_mbps_long> DSSS 2 Mbps long 84 85 <enum 3 cck_5_5_mbps_long> CCK 5.5 Mbps long 86 87 <enum 4 cck_11_mbps_long> CCK 11 Mbps long 88 89 <enum 5 dsss_2_mbps_short> DSSS 2 Mbps short 90 91 <enum 6 cck_5_5_mbps_short> CCK 5.5 Mbps short 92 93 <enum 7 cck_11_mbps_short> CCK 11 Mbps short 94 95 <legal 1-7> 96 */ 97 #define L_SIG_B_INFO_0_RATE_OFFSET 0x00000000 98 #define L_SIG_B_INFO_0_RATE_LSB 0 99 #define L_SIG_B_INFO_0_RATE_MASK 0x0000000f 100 101 /* Description L_SIG_B_INFO_0_LENGTH 102 103 The length indicates the number of octets in this MPDU. 104 105 <legal all> 106 */ 107 #define L_SIG_B_INFO_0_LENGTH_OFFSET 0x00000000 108 #define L_SIG_B_INFO_0_LENGTH_LSB 4 109 #define L_SIG_B_INFO_0_LENGTH_MASK 0x0000fff0 110 111 /* Description L_SIG_B_INFO_0_RESERVED 112 113 Reserved: Should be set to 0 by the transmitting MAC and 114 ignored by the PHY <legal 0> 115 */ 116 #define L_SIG_B_INFO_0_RESERVED_OFFSET 0x00000000 117 #define L_SIG_B_INFO_0_RESERVED_LSB 16 118 #define L_SIG_B_INFO_0_RESERVED_MASK 0xffff0000 119 120 121 #endif // _L_SIG_B_INFO_H_ 122