xref: /openbmc/linux/drivers/net/wireless/ti/wl18xx/tx.h (revision bef7a78d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * This file is part of wl18xx
4  *
5  * Copyright (C) 2011 Texas Instruments. All rights reserved.
6  */
7 
8 #ifndef __WL18XX_TX_H__
9 #define __WL18XX_TX_H__
10 
11 #include "../wlcore/wlcore.h"
12 
13 #define WL18XX_TX_HW_BLOCK_SPARE        1
14 /* for special cases - namely, TKIP and GEM */
15 #define WL18XX_TX_HW_EXTRA_BLOCK_SPARE  2
16 #define WL18XX_TX_HW_BLOCK_SIZE         268
17 
18 #define WL18XX_TX_STATUS_DESC_ID_MASK    0x7F
19 #define WL18XX_TX_STATUS_STAT_BIT_IDX    7
20 
21 /* Indicates this TX HW frame is not padded to SDIO block size */
22 #define WL18XX_TX_CTRL_NOT_PADDED	BIT(7)
23 
24 /*
25  * The FW uses a special bit to indicate a wide channel should be used in
26  * the rate policy.
27  */
28 #define CONF_TX_RATE_USE_WIDE_CHAN BIT(31)
29 
30 void wl18xx_tx_immediate_complete(struct wl1271 *wl);
31 
32 #endif /* __WL12XX_TX_H__ */
33