/* SPDX-License-Identifier: GPL-2.0-only */ /** * @brief Common structures and definations. */ #ifndef _DESCRIPTOR_H_ #define _DESCRIPTOR_H_ #define NUM_ACS 5 /* Control Path: 1 for CMD and 1 for EVENT */ #define NUM_CTRL_DESCS 2 /* Data Path */ /* Reserved TX descriptors per AC * (must be multiple of 2, minimum of 2 * and maximum of 4) */ #define NUM_TX_DESCS_PER_AC 2 /* Spare Descriptors shared between all ACs * (at least 1 and maximum of 2) */ #define NUM_SPARE_TX_DESCS 2 #define NUM_TX_DESCS ((NUM_ACS * NUM_TX_DESCS_PER_AC) + NUM_SPARE_TX_DESCS) #ifdef BB_PKTRAM /* Max no of sub frames in an AMPDU */ #define MAX_SUBFRAMES_IN_AMPDU_HT 4 #define MAX_SUBFRAMES_IN_AMPDU_VHT 4 #else /* Max no of sub frames in an AMPDU */ #define MAX_SUBFRAMES_IN_AMPDU_HT 16 #define MAX_SUBFRAMES_IN_AMPDU_VHT 16 #endif #define HAL_PRIV_SIZE 8 #ifdef BB_PKTRAM #define NUM_RX_BUFS_2K 64 #else #define NUM_RX_BUFS_2K 128 #endif #define NUM_RX_BUFS_12K 0 #define RX_BUFS_12K_START 0 #define RX_BUFS_12K_END (RX_BUFS_12K_START + NUM_RX_BUFS_12K) #define RX_BUFS_2K_START NUM_RX_BUFS_12K #define RX_BUFS_2K_END (RX_BUFS_2K_START + NUM_RX_BUFS_2K) #endif /* _DESCRIPTOR_H_ */ /* EOF */