/* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_ #define _PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_H_ #if !defined(__ASSEMBLER__) #endif #define NUM_OF_DWORDS_PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS 4 #define NUM_OF_QWORDS_PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS 2 struct phyrx_other_receive_info_ru_details { #ifndef WIFI_BIT_ORDER_BIG_ENDIAN uint32_t ru_details_channel_0 : 32; // [31:0] uint32_t ru_details_channel_1 : 32; // [31:0] uint32_t spare : 32; // [31:0] uint32_t tlv64_padding : 32; // [31:0] #else uint32_t ru_details_channel_0 : 32; // [31:0] uint32_t ru_details_channel_1 : 32; // [31:0] uint32_t spare : 32; // [31:0] uint32_t tlv64_padding : 32; // [31:0] #endif }; /* Description RU_DETAILS_CHANNEL_0 Ru_allocation from content channel 0 [7:0] for 20/40 MHz [15:0] for 80 MHz [31:0] for 160 MHz */ #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_0_OFFSET 0x0000000000000000 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_0_LSB 0 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_0_MSB 31 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_0_MASK 0x00000000ffffffff /* Description RU_DETAILS_CHANNEL_1 Ru_allocation from content channel 1 [7:0] for 40 MHz [15:0] for 80 MHz [31:0] for 160 MHz */ #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_1_OFFSET 0x0000000000000000 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_1_LSB 32 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_1_MSB 63 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_RU_DETAILS_CHANNEL_1_MASK 0xffffffff00000000 /* Description SPARE Extra spare bits added to convey additional information */ #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_SPARE_OFFSET 0x0000000000000008 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_SPARE_LSB 0 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_SPARE_MSB 31 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_SPARE_MASK 0x00000000ffffffff /* Description TLV64_PADDING Automatic DWORD padding inserted while converting TLV32 to TLV64 for 64 bit ARCH */ #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_TLV64_PADDING_OFFSET 0x0000000000000008 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_TLV64_PADDING_LSB 32 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_TLV64_PADDING_MSB 63 #define PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS_TLV64_PADDING_MASK 0xffffffff00000000 #endif // PHYRX_OTHER_RECEIVE_INFO_RU_DETAILS