rtl8188e_recv.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 __RTL8188E_RECV_H__
  21. #define __RTL8188E_RECV_H__
  22. #include <rtl8192c_recv.h>
  23. #define TX_RPT1_PKT_LEN 8
  24. typedef struct rxreport_8188e
  25. {
  26. //Offset 0
  27. u32 pktlen:14;
  28. u32 crc32:1;
  29. u32 icverr:1;
  30. u32 drvinfosize:4;
  31. u32 security:3;
  32. u32 qos:1;
  33. u32 shift:2;
  34. u32 physt:1;
  35. u32 swdec:1;
  36. u32 ls:1;
  37. u32 fs:1;
  38. u32 eor:1;
  39. u32 own:1;
  40. //Offset 4
  41. u32 macid:5;
  42. u32 tid:4;
  43. u32 hwrsvd:4;
  44. u32 amsdu:1;
  45. u32 paggr:1;
  46. u32 faggr:1;
  47. u32 a1fit:4;
  48. u32 a2fit:4;
  49. u32 pam:1;
  50. u32 pwr:1;
  51. u32 md:1;
  52. u32 mf:1;
  53. u32 type:2;
  54. u32 mc:1;
  55. u32 bc:1;
  56. //Offset 8
  57. u32 seq:12;
  58. u32 frag:4;
  59. u32 nextpktlen:14;
  60. u32 nextind:1;
  61. u32 rsvd0831:1;
  62. //Offset 12
  63. u32 rxmcs:6;
  64. u32 rxht:1;
  65. u32 gf:1;
  66. u32 splcp:1;
  67. u32 bw:1;
  68. u32 htc:1;
  69. u32 eosp:1;
  70. u32 bssidfit:2;
  71. u32 rpt_sel:2;
  72. u32 rsvd1216:13;
  73. u32 pattern_match:1;
  74. u32 unicastwake:1;
  75. u32 magicwake:1;
  76. //Offset 16
  77. /*
  78. u32 pattern0match:1;
  79. u32 pattern1match:1;
  80. u32 pattern2match:1;
  81. u32 pattern3match:1;
  82. u32 pattern4match:1;
  83. u32 pattern5match:1;
  84. u32 pattern6match:1;
  85. u32 pattern7match:1;
  86. u32 pattern8match:1;
  87. u32 pattern9match:1;
  88. u32 patternamatch:1;
  89. u32 patternbmatch:1;
  90. u32 patterncmatch:1;
  91. u32 rsvd1613:19;
  92. */
  93. u32 rsvd16;
  94. //Offset 20
  95. u32 tsfl;
  96. //Offset 24
  97. u32 bassn:12;
  98. u32 bavld:1;
  99. u32 rsvd2413:19;
  100. } RXREPORT, *PRXREPORT;
  101. #ifdef CONFIG_SDIO_HCI
  102. s32 rtl8188es_init_recv_priv(PADAPTER padapter);
  103. void rtl8188es_free_recv_priv(PADAPTER padapter);
  104. void rtl8188es_recv_hdl(PADAPTER padapter, struct recv_buf *precvbuf);
  105. #endif
  106. #ifdef CONFIG_USB_HCI
  107. #define INTERRUPT_MSG_FORMAT_LEN 60
  108. void rtl8188eu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf);
  109. s32 rtl8188eu_init_recv_priv(PADAPTER padapter);
  110. void rtl8188eu_free_recv_priv(PADAPTER padapter);
  111. void rtl8188eu_recv_hdl(PADAPTER padapter, struct recv_buf *precvbuf);
  112. void rtl8188eu_recv_tasklet(void *priv);
  113. #endif
  114. #ifdef CONFIG_PCI_HCI
  115. s32 rtl8188ee_init_recv_priv(PADAPTER padapter);
  116. void rtl8188ee_free_recv_priv(PADAPTER padapter);
  117. #endif
  118. void rtl8188e_query_rx_phy_status(union recv_frame *prframe, struct phy_stat *pphy_stat);
  119. void rtl8188e_process_phy_info(PADAPTER padapter, void *prframe);
  120. void update_recvframe_phyinfo_88e(union recv_frame *precvframe,struct phy_stat *pphy_status);
  121. void update_recvframe_attrib_88e( union recv_frame *precvframe, struct recv_stat *prxstat);
  122. #endif