18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This file is part of wl18xx 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2011 Texas Instruments. All rights reserved. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __WL18XX_TX_H__ 98c2ecf20Sopenharmony_ci#define __WL18XX_TX_H__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include "../wlcore/wlcore.h" 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define WL18XX_TX_HW_BLOCK_SPARE 1 148c2ecf20Sopenharmony_ci/* for special cases - namely, TKIP and GEM */ 158c2ecf20Sopenharmony_ci#define WL18XX_TX_HW_EXTRA_BLOCK_SPARE 2 168c2ecf20Sopenharmony_ci#define WL18XX_TX_HW_BLOCK_SIZE 268 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define WL18XX_TX_STATUS_DESC_ID_MASK 0x7F 198c2ecf20Sopenharmony_ci#define WL18XX_TX_STATUS_STAT_BIT_IDX 7 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* Indicates this TX HW frame is not padded to SDIO block size */ 228c2ecf20Sopenharmony_ci#define WL18XX_TX_CTRL_NOT_PADDED BIT(7) 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* 258c2ecf20Sopenharmony_ci * The FW uses a special bit to indicate a wide channel should be used in 268c2ecf20Sopenharmony_ci * the rate policy. 278c2ecf20Sopenharmony_ci */ 288c2ecf20Sopenharmony_ci#define CONF_TX_RATE_USE_WIDE_CHAN BIT(31) 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_civoid wl18xx_tx_immediate_complete(struct wl1271 *wl); 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#endif /* __WL12XX_TX_H__ */ 33