xref: /wlan-driver/fw-api/hw/qca5424/mactx_service.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /*
3  * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
4  * SPDX-License-Identifier: ISC
5  */
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 #ifndef _MACTX_SERVICE_H_
20 #define _MACTX_SERVICE_H_
21 #if !defined(__ASSEMBLER__)
22 #endif
23 
24 #include "service_info.h"
25 #define NUM_OF_DWORDS_MACTX_SERVICE 2
26 
27 #define NUM_OF_QWORDS_MACTX_SERVICE 1
28 
29 
30 struct mactx_service {
31 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
32              struct   service_info                                              mactx_service_info_details;
33              uint32_t tlv64_padding                                           : 32;
34 #else
35              struct   service_info                                              mactx_service_info_details;
36              uint32_t tlv64_padding                                           : 32;
37 #endif
38 };
39 
40 
41 
42 
43 
44 
45 
46 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_OFFSET              0x0000000000000000
47 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_LSB                 0
48 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_MSB                 6
49 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_MASK                0x000000000000007f
50 
51 
52 
53 
54 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_OFFSET                    0x0000000000000000
55 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_LSB                       7
56 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_MSB                       7
57 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_MASK                      0x0000000000000080
58 
59 
60 
61 
62 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_OFFSET              0x0000000000000000
63 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_LSB                 8
64 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_MSB                 15
65 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_MASK                0x000000000000ff00
66 
67 
68 
69 
70 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_OFFSET                  0x0000000000000000
71 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_LSB                     16
72 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_MSB                     31
73 #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_MASK                    0x00000000ffff0000
74 
75 
76 
77 
78 #define MACTX_SERVICE_TLV64_PADDING_OFFSET                                          0x0000000000000000
79 #define MACTX_SERVICE_TLV64_PADDING_LSB                                             32
80 #define MACTX_SERVICE_TLV64_PADDING_MSB                                             63
81 #define MACTX_SERVICE_TLV64_PADDING_MASK                                            0xffffffff00000000
82 
83 
84 
85 #endif
86