xref: /wlan-dirver/fw-api/hw/kiwi/v2/phytx_abort_request_info.h (revision 08105d291dff2cbee57bfb0495e59dddf3a44849)
1 
2 /*
3  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 
19 
20 #ifndef _PHYTX_ABORT_REQUEST_INFO_H_
21 #define _PHYTX_ABORT_REQUEST_INFO_H_
22 #if !defined(__ASSEMBLER__)
23 #endif
24 
25 #define NUM_OF_WORDS_PHYTX_ABORT_REQUEST_INFO 1
26 
27 struct phytx_abort_request_info {
28 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
29              uint16_t phytx_abort_reason                                      :  8,
30                       user_number                                             :  6,
31                       reserved                                                :  2;
32 #else
33              uint16_t reserved                                                :  2,
34                       user_number                                             :  6,
35                       phytx_abort_reason                                      :  8;
36 #endif
37 };
38 
39 #define PHYTX_ABORT_REQUEST_INFO_PHYTX_ABORT_REASON_OFFSET                          0x00000000
40 #define PHYTX_ABORT_REQUEST_INFO_PHYTX_ABORT_REASON_LSB                             0
41 #define PHYTX_ABORT_REQUEST_INFO_PHYTX_ABORT_REASON_MSB                             7
42 #define PHYTX_ABORT_REQUEST_INFO_PHYTX_ABORT_REASON_MASK                            0x000000ff
43 
44 #define PHYTX_ABORT_REQUEST_INFO_USER_NUMBER_OFFSET                                 0x00000000
45 #define PHYTX_ABORT_REQUEST_INFO_USER_NUMBER_LSB                                    8
46 #define PHYTX_ABORT_REQUEST_INFO_USER_NUMBER_MSB                                    13
47 #define PHYTX_ABORT_REQUEST_INFO_USER_NUMBER_MASK                                   0x00003f00
48 
49 #define PHYTX_ABORT_REQUEST_INFO_RESERVED_OFFSET                                    0x00000000
50 #define PHYTX_ABORT_REQUEST_INFO_RESERVED_LSB                                       14
51 #define PHYTX_ABORT_REQUEST_INFO_RESERVED_MSB                                       15
52 #define PHYTX_ABORT_REQUEST_INFO_RESERVED_MASK                                      0x0000c000
53 
54 #endif
55