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 _PHYTX_PPDU_HEADER_INFO_REQUEST_H_ 19 #define _PHYTX_PPDU_HEADER_INFO_REQUEST_H_ 20 21 #define NUM_OF_WORDS_PHYTX_PPDU_HEADER_INFO_REQUEST 2 22 23 #define NUM_OF_DWORDS_PHYTX_PPDU_HEADER_INFO_REQUEST 1 24 25 struct phytx_ppdu_header_info_request { 26 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 27 uint16_t request_type : 5, 28 reserved : 11; 29 uint16_t tlv32_padding : 16; 30 #else 31 uint16_t reserved : 11, 32 request_type : 5; 33 uint16_t tlv32_padding : 16; 34 #endif 35 }; 36 37 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_OFFSET 0x00000000 38 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_LSB 0 39 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_MSB 4 40 #define PHYTX_PPDU_HEADER_INFO_REQUEST_REQUEST_TYPE_MASK 0x0000001f 41 42 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_OFFSET 0x00000000 43 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_LSB 5 44 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_MSB 15 45 #define PHYTX_PPDU_HEADER_INFO_REQUEST_RESERVED_MASK 0x0000ffe0 46 47 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_OFFSET 0x00000002 48 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_LSB 0 49 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_MSB 15 50 #define PHYTX_PPDU_HEADER_INFO_REQUEST_TLV32_PADDING_MASK 0x0000ffff 51 52 #endif 53