rtl8188f_recv.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. *
  19. ******************************************************************************/
  20. #ifndef __RTL8188F_RECV_H__
  21. #define __RTL8188F_RECV_H__
  22. #if defined(CONFIG_USB_HCI)
  23. #ifndef MAX_RECVBUF_SZ
  24. #ifdef PLATFORM_OS_CE
  25. #define MAX_RECVBUF_SZ (8192+1024) /* 8K+1k */
  26. #else
  27. #ifdef CONFIG_MINIMAL_MEMORY_USAGE
  28. #define MAX_RECVBUF_SZ (4000) /* about 4K */
  29. #else
  30. #ifdef CONFIG_PLATFORM_MSTAR
  31. #define MAX_RECVBUF_SZ (8192) /* 8K */
  32. #elif defined(CONFIG_PLATFORM_HISILICON)
  33. #define MAX_RECVBUF_SZ (16384) /* 16k */
  34. #else
  35. #define MAX_RECVBUF_SZ (32768) /* 32k */
  36. #endif
  37. /* #define MAX_RECVBUF_SZ (20480) */ /* 20K */
  38. /* #define MAX_RECVBUF_SZ (10240) */ /* 10K */
  39. /* #define MAX_RECVBUF_SZ (16384) */ /* 16k - 92E RX BUF :16K */
  40. /* #define MAX_RECVBUF_SZ (8192+1024) */ /* 8K+1k */
  41. #endif
  42. #endif
  43. #endif /* !MAX_RECVBUF_SZ */
  44. #elif defined(CONFIG_PCI_HCI)
  45. #define MAX_RECVBUF_SZ (4000) /* about 4K */
  46. #elif defined(CONFIG_SDIO_HCI)
  47. #define MAX_RECVBUF_SZ (RX_DMA_BOUNDARY_8188F + 1)
  48. #endif /* CONFIG_SDIO_HCI */
  49. /* Rx smooth factor */
  50. #define Rx_Smooth_Factor (20)
  51. #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
  52. s32 rtl8188fs_init_recv_priv(PADAPTER padapter);
  53. void rtl8188fs_free_recv_priv(PADAPTER padapter);
  54. s32 rtl8188fs_recv_hdl(_adapter *padapter);
  55. #endif
  56. #ifdef CONFIG_USB_HCI
  57. int rtl8188fu_init_recv_priv(_adapter *padapter);
  58. void rtl8188fu_free_recv_priv(_adapter *padapter);
  59. void rtl8188fu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf);
  60. #endif
  61. #ifdef CONFIG_PCI_HCI
  62. s32 rtl8188fe_init_recv_priv(PADAPTER padapter);
  63. void rtl8188fe_free_recv_priv(PADAPTER padapter);
  64. #endif
  65. void rtl8188f_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc);
  66. #endif /* __RTL8188F_RECV_H__ */