tx.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * This file is part of wl18xx
  3. *
  4. * Copyright (C) 2011 Texas Instruments. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  18. * 02110-1301 USA
  19. *
  20. */
  21. #ifndef __WL18XX_TX_H__
  22. #define __WL18XX_TX_H__
  23. #include "../wlcore/wlcore.h"
  24. #define WL18XX_TX_HW_BLOCK_SPARE 1
  25. /* for special cases - namely, TKIP and GEM */
  26. #define WL18XX_TX_HW_EXTRA_BLOCK_SPARE 2
  27. #define WL18XX_TX_HW_BLOCK_SIZE 268
  28. #define WL18XX_TX_STATUS_DESC_ID_MASK 0x7F
  29. #define WL18XX_TX_STATUS_STAT_BIT_IDX 7
  30. /* Indicates this TX HW frame is not padded to SDIO block size */
  31. #define WL18XX_TX_CTRL_NOT_PADDED BIT(7)
  32. /*
  33. * The FW uses a special bit to indicate a wide channel should be used in
  34. * the rate policy.
  35. */
  36. #define CONF_TX_RATE_USE_WIDE_CHAN BIT(31)
  37. void wl18xx_tx_immediate_complete(struct wl1271 *wl);
  38. #endif /* __WL12XX_TX_H__ */