• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright(c) 2015 - 2017 Realtek Corporation.
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  *****************************************************************************/
15 #ifndef _RTL8822CS_H_
16 #define _RTL8822CS_H_
17 
18 #include <drv_types.h>		/* PADAPTER, struct dvobj_priv and etc. */
19 
20 
21 /* rtl8822cs_halinit.c */
22 u32 rtl8822cs_init(PADAPTER);
23 u32 rtl8822cs_deinit(PADAPTER adapter);
24 void rtl8822cs_init_default_value(PADAPTER);
25 
26 /* rtl8822cs_halmac.c */
27 int rtl8822cs_halmac_init_adapter(PADAPTER);
28 
29 /* rtl8822cs_io.c */
30 u32 rtl8822cs_read_port(struct dvobj_priv *, u32 cnt, u8 *mem);
31 u32 rtl8822cs_write_port(struct dvobj_priv *, u32 cnt, u8 *mem);
32 
33 /* rtl8822cs_led.c */
34 void rtl8822cs_initswleds(PADAPTER);
35 void rtl8822cs_deinitswleds(PADAPTER);
36 
37 /* rtl8822cs_xmit.c */
38 s32 rtl8822cs_init_xmit_priv(PADAPTER);
39 void rtl8822cs_free_xmit_priv(PADAPTER);
40 #ifdef CONFIG_RTW_MGMT_QUEUE
41 s32 rtl8822cs_hal_mgmt_xmit_enqueue(PADAPTER, struct xmit_frame *);
42 #endif
43 s32 rtl8822cs_hal_xmit_enqueue(PADAPTER, struct xmit_frame *);
44 s32 rtl8822cs_hal_xmit(PADAPTER, struct xmit_frame *);
45 s32 rtl8822cs_mgnt_xmit(PADAPTER, struct xmit_frame *);
46 s32 rtl8822cs_xmit_buf_handler(PADAPTER);
47 thread_return rtl8822cs_xmit_thread(thread_context);
48 
49 /* rtl8822cs_recv.c */
50 s32 rtl8822cs_init_recv_priv(PADAPTER);
51 void rtl8822cs_free_recv_priv(PADAPTER);
52 _pkt *rtl8822cs_alloc_recvbuf_skb(struct recv_buf *, u32 size);
53 void rtl8822cs_free_recvbuf_skb(struct recv_buf *);
54 s32 rtl8822cs_recv_hdl(_adapter *adapter);
55 void rtl8822cs_rxhandler(PADAPTER, struct recv_buf *);
56 
57 /* rtl8822cs_ops.c */
58 void rtl8822cs_get_interrupt(PADAPTER, u32 *hisr, u32 *rx_len);
59 void rtl8822cs_clear_interrupt(PADAPTER, u32 hisr);
60 
61 #endif /* _RTL8822CS_H_ */
62