• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2007 - 2011 Realtek Corporation. */
3 
4 #ifndef __RECV_OSDEP_H_
5 #define __RECV_OSDEP_H_
6 
7 #include "osdep_service.h"
8 #include "drv_types.h"
9 
10 int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
11 void _rtw_free_recv_priv(struct recv_priv *precvpriv);
12 
13 s32  rtw_recv_entry(struct recv_frame *precv_frame);
14 int rtw_recv_indicatepkt(struct adapter *adapter, struct recv_frame *recv_frame);
15 void rtw_recv_returnpacket(struct  net_device *cnxt, struct sk_buff *retpkt);
16 
17 void rtw_hostapd_mlme_rx(struct adapter *padapter, struct recv_frame *recv_fr);
18 void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup);
19 
20 int rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
21 void rtw_free_recv_priv(struct recv_priv *precvpriv);
22 
23 int rtw_os_recv_resource_init(struct recv_priv *recvpr, struct adapter *adapt);
24 int rtw_os_recv_resource_alloc(struct adapter *adapt, struct recv_frame *recvfr);
25 void rtw_os_recv_resource_free(struct recv_priv *precvpriv);
26 
27 int rtw_os_recvbuf_resource_alloc(struct adapter *adapt, struct recv_buf *buf);
28 int rtw_os_recvbuf_resource_free(struct adapter *adapt, struct recv_buf *buf);
29 
30 void rtw_os_read_port(struct adapter *padapter, struct recv_buf *precvbuf);
31 
32 void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
33 int _netdev_open(struct net_device *pnetdev);
34 int netdev_open(struct net_device *pnetdev);
35 int netdev_close(struct net_device *pnetdev);
36 
37 #endif /*  */
38