recv_osdep.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2010 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. * Modifications for inclusion into the Linux staging tree are
  19. * Copyright(c) 2010 Larry Finger. All rights reserved.
  20. *
  21. * Contact information:
  22. * WLAN FAE <wlanfae@realtek.com>
  23. * Larry Finger <Larry.Finger@lwfinger.net>
  24. *
  25. ******************************************************************************/
  26. #ifndef __RECV_OSDEP_H_
  27. #define __RECV_OSDEP_H_
  28. #include "osdep_service.h"
  29. #include "drv_types.h"
  30. #include <linux/skbuff.h>
  31. sint _r8712_init_recv_priv(struct recv_priv *precvpriv,
  32. struct _adapter *padapter);
  33. void _r8712_free_recv_priv(struct recv_priv *precvpriv);
  34. s32 r8712_recv_entry(union recv_frame *precv_frame);
  35. void r8712_recv_indicatepkt(struct _adapter *adapter,
  36. union recv_frame *precv_frame);
  37. void r8712_handle_tkip_mic_err(struct _adapter *padapter, u8 bgroup);
  38. int r8712_init_recv_priv(struct recv_priv *precvpriv,
  39. struct _adapter *padapter);
  40. void r8712_free_recv_priv(struct recv_priv *precvpriv);
  41. int r8712_os_recv_resource_alloc(struct _adapter *padapter,
  42. union recv_frame *precvframe);
  43. int r8712_os_recvbuf_resource_alloc(struct _adapter *padapter,
  44. struct recv_buf *precvbuf);
  45. int r8712_os_recvbuf_resource_free(struct _adapter *padapter,
  46. struct recv_buf *precvbuf);
  47. void r8712_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
  48. #endif