wl18xx.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * This file is part of wl18xx
  3. *
  4. * Copyright (C) 2011 Texas Instruments Inc.
  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_PRIV_H__
  22. #define __WL18XX_PRIV_H__
  23. #define WL18XX_CMD_MAX_SIZE 740
  24. struct wl18xx_priv {
  25. /* buffer for sending commands to FW */
  26. u8 cmd_buf[WL18XX_CMD_MAX_SIZE];
  27. /* Index of last released Tx desc in FW */
  28. u8 last_fw_rls_idx;
  29. };
  30. #define WL18XX_FW_MAX_TX_STATUS_DESC 33
  31. struct wl18xx_fw_status_priv {
  32. /*
  33. * Index in released_tx_desc for first byte that holds
  34. * released tx host desc
  35. */
  36. u8 fw_release_idx;
  37. /*
  38. * Array of host Tx descriptors, where fw_release_idx
  39. * indicated the first released idx.
  40. */
  41. u8 released_tx_desc[WL18XX_FW_MAX_TX_STATUS_DESC];
  42. u8 padding[2];
  43. };
  44. #endif /* __WL18XX_PRIV_H__ */