1 2 /* 3 * Copyright (c) 2022, 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 21 22 23 24 25 26 27 #ifndef _TXPCU_BUFFER_BASICS_H_ 28 #define _TXPCU_BUFFER_BASICS_H_ 29 #if !defined(__ASSEMBLER__) 30 #endif 31 32 #define NUM_OF_DWORDS_TXPCU_BUFFER_BASICS 1 33 34 35 struct txpcu_buffer_basics { 36 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 37 uint32_t available_memory : 8, // [7:0] 38 partial_tx_data_tlv_count : 8, // [15:8] 39 tx_data_tlv_count : 16; // [31:16] 40 #else 41 uint32_t tx_data_tlv_count : 16, // [31:16] 42 partial_tx_data_tlv_count : 8, // [15:8] 43 available_memory : 8; // [7:0] 44 #endif 45 }; 46 47 48 49 50 #define TXPCU_BUFFER_BASICS_AVAILABLE_MEMORY_OFFSET 0x00000000 51 #define TXPCU_BUFFER_BASICS_AVAILABLE_MEMORY_LSB 0 52 #define TXPCU_BUFFER_BASICS_AVAILABLE_MEMORY_MSB 7 53 #define TXPCU_BUFFER_BASICS_AVAILABLE_MEMORY_MASK 0x000000ff 54 55 56 57 58 #define TXPCU_BUFFER_BASICS_PARTIAL_TX_DATA_TLV_COUNT_OFFSET 0x00000000 59 #define TXPCU_BUFFER_BASICS_PARTIAL_TX_DATA_TLV_COUNT_LSB 8 60 #define TXPCU_BUFFER_BASICS_PARTIAL_TX_DATA_TLV_COUNT_MSB 15 61 #define TXPCU_BUFFER_BASICS_PARTIAL_TX_DATA_TLV_COUNT_MASK 0x0000ff00 62 63 64 65 66 #define TXPCU_BUFFER_BASICS_TX_DATA_TLV_COUNT_OFFSET 0x00000000 67 #define TXPCU_BUFFER_BASICS_TX_DATA_TLV_COUNT_LSB 16 68 #define TXPCU_BUFFER_BASICS_TX_DATA_TLV_COUNT_MSB 31 69 #define TXPCU_BUFFER_BASICS_TX_DATA_TLV_COUNT_MASK 0xffff0000 70 71 72 73 74 #endif 75