1 /* 2 * Copyright (c) 2023 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 #ifndef _UNALLOCATED_RU_160_INFO_H_ 18 #define _UNALLOCATED_RU_160_INFO_H_ 19 #if !defined(__ASSEMBLER__) 20 #endif 21 22 #define NUM_OF_DWORDS_UNALLOCATED_RU_160_INFO 1 23 24 25 struct unallocated_ru_160_info { 26 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 27 uint32_t subband80_0_cc0 : 8, // [7:0] 28 subband80_0_cc1 : 8, // [15:8] 29 subband80_1_cc0 : 8, // [23:16] 30 subband80_1_cc1 : 8; // [31:24] 31 #else 32 uint32_t subband80_1_cc1 : 8, // [31:24] 33 subband80_1_cc0 : 8, // [23:16] 34 subband80_0_cc1 : 8, // [15:8] 35 subband80_0_cc0 : 8; // [7:0] 36 #endif 37 }; 38 39 40 /* Description SUBBAND80_0_CC0 41 42 Number of STA_ID=2046 HE-SIG-B/EHT-SIG user fields microcode 43 should generate for content channel 0 (HE_SIGB0 or EHT_SIG0) 44 for the lower 80 MHz 45 46 Valid for HE_20/HE_40/HE_80/HE_160/ EHT_20/EHT_40/EHT_80/EHT_160/ 47 EHT_240/EHT_320 48 <legal all> 49 */ 50 51 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC0_OFFSET 0x00000000 52 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC0_LSB 0 53 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC0_MSB 7 54 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC0_MASK 0x000000ff 55 56 57 /* Description SUBBAND80_0_CC1 58 59 Number of STA_ID=2046 HE-SIG-B/EHT-SIG user fields microcode 60 should generate for content channel 1 (HE_SIGB1 or EHT_SIG1) 61 for the lower 80 MHz 62 63 Valid for HE_40/HE_80/HE_160 (80+80)/ EHT_40/EHT_80/EHT_160/EHT_240/EHT_320 64 65 <legal all> 66 */ 67 68 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC1_OFFSET 0x00000000 69 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC1_LSB 8 70 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC1_MSB 15 71 #define UNALLOCATED_RU_160_INFO_SUBBAND80_0_CC1_MASK 0x0000ff00 72 73 74 /* Description SUBBAND80_1_CC0 75 76 Number of STA_ID=2046 HE-SIG-B/EHT-SIG user fields microcode 77 should generate for content channel 0 (HE_SIGB0 or EHT_SIG0) 78 for the higher 80 MHz 79 80 Valid for EHT_160/EHT_240/EHT_320 81 All 80 MHz subbands are identical for HE_160 (80+80). 82 <legal all> 83 */ 84 85 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC0_OFFSET 0x00000000 86 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC0_LSB 16 87 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC0_MSB 23 88 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC0_MASK 0x00ff0000 89 90 91 /* Description SUBBAND80_1_CC1 92 93 Number of STA_ID=2046 HE-SIG-B/EHT-SIG user fields microcode 94 should generate for content channel 1 (HE_SIGB1 or EHT_SIG1) 95 for the higher 80 MHz 96 97 Valid for EHT_160/EHT_240/EHT_320 98 All 80 MHz subbands are identical for HE_160 (80+80). 99 <legal all> 100 */ 101 102 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC1_OFFSET 0x00000000 103 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC1_LSB 24 104 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC1_MSB 31 105 #define UNALLOCATED_RU_160_INFO_SUBBAND80_1_CC1_MASK 0xff000000 106 107 108 109 #endif // UNALLOCATED_RU_160_INFO 110