1*5113495bSYour Name 2*5113495bSYour Name /* 3*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 6*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 7*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 8*5113495bSYour Name * 9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16*5113495bSYour Name */ 17*5113495bSYour Name 18*5113495bSYour Name 19*5113495bSYour Name 20*5113495bSYour Name #ifndef _TXPCU_USER_BUFFER_STATUS_H_ 21*5113495bSYour Name #define _TXPCU_USER_BUFFER_STATUS_H_ 22*5113495bSYour Name #if !defined(__ASSEMBLER__) 23*5113495bSYour Name #endif 24*5113495bSYour Name 25*5113495bSYour Name #include "txpcu_buffer_basics.h" 26*5113495bSYour Name #define NUM_OF_DWORDS_TXPCU_USER_BUFFER_STATUS 2 27*5113495bSYour Name 28*5113495bSYour Name #define NUM_OF_QWORDS_TXPCU_USER_BUFFER_STATUS 1 29*5113495bSYour Name 30*5113495bSYour Name struct txpcu_user_buffer_status { 31*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 32*5113495bSYour Name struct txpcu_buffer_basics txpcu_basic_buffer_info; 33*5113495bSYour Name uint32_t stored_word_count_user : 14, 34*5113495bSYour Name reserved_1a : 1, 35*5113495bSYour Name msdu_end : 1, 36*5113495bSYour Name tx_data_sync_value : 16; 37*5113495bSYour Name #else 38*5113495bSYour Name struct txpcu_buffer_basics txpcu_basic_buffer_info; 39*5113495bSYour Name uint32_t tx_data_sync_value : 16, 40*5113495bSYour Name msdu_end : 1, 41*5113495bSYour Name reserved_1a : 1, 42*5113495bSYour Name stored_word_count_user : 14; 43*5113495bSYour Name #endif 44*5113495bSYour Name }; 45*5113495bSYour Name 46*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_OFFSET 0x0000000000000000 47*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_LSB 0 48*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_MSB 7 49*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_AVAILABLE_MEMORY_MASK 0x00000000000000ff 50*5113495bSYour Name 51*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_OFFSET 0x0000000000000000 52*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_LSB 8 53*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_MSB 15 54*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_PARTIAL_TX_DATA_TLV_COUNT_MASK 0x000000000000ff00 55*5113495bSYour Name 56*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_OFFSET 0x0000000000000000 57*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_LSB 16 58*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_MSB 31 59*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TXPCU_BASIC_BUFFER_INFO_TX_DATA_TLV_COUNT_MASK 0x00000000ffff0000 60*5113495bSYour Name 61*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_OFFSET 0x0000000000000000 62*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_LSB 32 63*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_MSB 45 64*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_STORED_WORD_COUNT_USER_MASK 0x00003fff00000000 65*5113495bSYour Name 66*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_OFFSET 0x0000000000000000 67*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_LSB 46 68*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_MSB 46 69*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_RESERVED_1A_MASK 0x0000400000000000 70*5113495bSYour Name 71*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_MSDU_END_OFFSET 0x0000000000000000 72*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_MSDU_END_LSB 47 73*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_MSDU_END_MSB 47 74*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_MSDU_END_MASK 0x0000800000000000 75*5113495bSYour Name 76*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_OFFSET 0x0000000000000000 77*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_LSB 48 78*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_MSB 63 79*5113495bSYour Name #define TXPCU_USER_BUFFER_STATUS_TX_DATA_SYNC_VALUE_MASK 0xffff000000000000 80*5113495bSYour Name 81*5113495bSYour Name #endif 82