xref: /wlan-driver/fw-api/hw/peach/v2/macrx_abort_request_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 
18 #ifndef _MACRX_ABORT_REQUEST_INFO_H_
19 #define _MACRX_ABORT_REQUEST_INFO_H_
20 
21 #define NUM_OF_WORDS_MACRX_ABORT_REQUEST_INFO 1
22 
23 struct macrx_abort_request_info {
24 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
25              uint16_t macrx_abort_reason                                      :  8,
26                       reserved_0                                              :  8;
27 #else
28              uint16_t reserved_0                                              :  8,
29                       macrx_abort_reason                                      :  8;
30 #endif
31 };
32 
33 #define MACRX_ABORT_REQUEST_INFO_MACRX_ABORT_REASON_OFFSET                          0x00000000
34 #define MACRX_ABORT_REQUEST_INFO_MACRX_ABORT_REASON_LSB                             0
35 #define MACRX_ABORT_REQUEST_INFO_MACRX_ABORT_REASON_MSB                             7
36 #define MACRX_ABORT_REQUEST_INFO_MACRX_ABORT_REASON_MASK                            0x000000ff
37 
38 #define MACRX_ABORT_REQUEST_INFO_RESERVED_0_OFFSET                                  0x00000000
39 #define MACRX_ABORT_REQUEST_INFO_RESERVED_0_LSB                                     8
40 #define MACRX_ABORT_REQUEST_INFO_RESERVED_0_MSB                                     15
41 #define MACRX_ABORT_REQUEST_INFO_RESERVED_0_MASK                                    0x0000ff00
42 
43 #endif
44