162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * This file is part of wl18xx
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2011 Texas Instruments. All rights reserved.
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef __WL18XX_TX_H__
962306a36Sopenharmony_ci#define __WL18XX_TX_H__
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include "../wlcore/wlcore.h"
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define WL18XX_TX_HW_BLOCK_SPARE        1
1462306a36Sopenharmony_ci/* for special cases - namely, TKIP and GEM */
1562306a36Sopenharmony_ci#define WL18XX_TX_HW_EXTRA_BLOCK_SPARE  2
1662306a36Sopenharmony_ci#define WL18XX_TX_HW_BLOCK_SIZE         268
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci#define WL18XX_TX_STATUS_DESC_ID_MASK    0x7F
1962306a36Sopenharmony_ci#define WL18XX_TX_STATUS_STAT_BIT_IDX    7
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci/* Indicates this TX HW frame is not padded to SDIO block size */
2262306a36Sopenharmony_ci#define WL18XX_TX_CTRL_NOT_PADDED	BIT(7)
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci/*
2562306a36Sopenharmony_ci * The FW uses a special bit to indicate a wide channel should be used in
2662306a36Sopenharmony_ci * the rate policy.
2762306a36Sopenharmony_ci */
2862306a36Sopenharmony_ci#define CONF_TX_RATE_USE_WIDE_CHAN BIT(31)
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_civoid wl18xx_tx_immediate_complete(struct wl1271 *wl);
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci#endif /* __WL12XX_TX_H__ */
33