/* * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved. * SPDX-License-Identifier: ISC */ #ifndef _TXPCU_USER_BUFFER_STATUS_H_ #define _TXPCU_USER_BUFFER_STATUS_H_ #if !defined(__ASSEMBLER__) #endif #include "txpcu_buffer_basics.h" #define NUM_OF_DWORDS_TXPCU_USER_BUFFER_STATUS 2 #define NUM_OF_QWORDS_TXPCU_USER_BUFFER_STATUS 1 struct txpcu_user_buffer_status { #ifndef WIFI_BIT_ORDER_BIG_ENDIAN struct txpcu_buffer_basics txpcu_basic_buffer_info; uint32_t stored_word_count_user : 14, reserved_1a : 1, msdu_end : 1, tx_data_sync_value : 16; #else struct txpcu_buffer_basics txpcu_basic_buffer_info; uint32_t tx_data_sync_value : 16, msdu_end : 1, reserved_1a : 1, stored_word_count_user : 14; #endif }; #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_OFFSET 0x0000000000000000 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_LSB 0 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_MSB 7 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_MASK 0x00000000000000ff #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_OFFSET 0x0000000000000000 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_LSB 8 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_MSB 15 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_MASK 0x000000000000ff00 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_OFFSET 0x0000000000000000 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_LSB 16 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_MSB 31 #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_MASK 0x00000000ffff0000 #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_OFFSET 0x0000000000000000 #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_LSB 32 #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_MSB 45 #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_MASK 0x00003fff00000000 #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_OFFSET 0x0000000000000000 #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_LSB 46 #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_MSB 46 #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_MASK 0x0000400000000000 #define TXPCU_USER_BUFFER_STATUS_MSDU_END_OFFSET 0x0000000000000000 #define TXPCU_USER_BUFFER_STATUS_MSDU_END_LSB 47 #define TXPCU_USER_BUFFER_STATUS_MSDU_END_MSB 47 #define TXPCU_USER_BUFFER_STATUS_MSDU_END_MASK 0x0000800000000000 #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_OFFSET 0x0000000000000000 #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_LSB 48 #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_MSB 63 #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_MASK 0xffff000000000000 #endif