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