xref: /wlan-driver/fw-api/hw/kiwi/v1/l_sig_b_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /*
3  * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 #ifndef _L_SIG_B_INFO_H_
31 #define _L_SIG_B_INFO_H_
32 #if !defined(__ASSEMBLER__)
33 #endif
34 
35 #define NUM_OF_DWORDS_L_SIG_B_INFO 1
36 
37 
38 struct l_sig_b_info {
39 	     uint32_t rate                                                    :  4,
40 		      length                                                  : 12,
41 		      reserved                                                : 15,
42 		      rx_integrity_check_passed                               :  1;
43 };
44 
45 
46 
47 
48 #define L_SIG_B_INFO_RATE_OFFSET                                                    0x00000000
49 #define L_SIG_B_INFO_RATE_LSB                                                       0
50 #define L_SIG_B_INFO_RATE_MSB                                                       3
51 #define L_SIG_B_INFO_RATE_MASK                                                      0x0000000f
52 
53 
54 
55 
56 #define L_SIG_B_INFO_LENGTH_OFFSET                                                  0x00000000
57 #define L_SIG_B_INFO_LENGTH_LSB                                                     4
58 #define L_SIG_B_INFO_LENGTH_MSB                                                     15
59 #define L_SIG_B_INFO_LENGTH_MASK                                                    0x0000fff0
60 
61 
62 
63 
64 #define L_SIG_B_INFO_RESERVED_OFFSET                                                0x00000000
65 #define L_SIG_B_INFO_RESERVED_LSB                                                   16
66 #define L_SIG_B_INFO_RESERVED_MSB                                                   30
67 #define L_SIG_B_INFO_RESERVED_MASK                                                  0x7fff0000
68 
69 
70 
71 
72 #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET                               0x00000000
73 #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_LSB                                  31
74 #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_MSB                                  31
75 #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_MASK                                 0x80000000
76 
77 
78 
79 #endif
80