hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/******************************************************************************
 *
 * Copyright(c) 2015 - 2019 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef _RTL8822BS_H_
#define _RTL8822BS_H_
 
#include <drv_types.h>        /* PADAPTER, struct dvobj_priv and etc. */
 
 
/* rtl8822bs_halinit.c */
u32 rtl8822bs_init(PADAPTER);
u32 rtl8822bs_deinit(PADAPTER);
void rtl8822bs_init_default_value(PADAPTER);
 
/* rtl8822bs_halmac.c */
int rtl8822bs_halmac_init_adapter(PADAPTER);
 
/* rtl8822bs_io.c */
u32 rtl8822bs_read_port(struct dvobj_priv *, u32 cnt, u8 *mem);
u32 rtl8822bs_write_port(struct dvobj_priv *, u32 cnt, u8 *mem);
 
/* rtl8822bs_led.c */
void rtl8822bs_initswleds(PADAPTER);
void rtl8822bs_deinitswleds(PADAPTER);
 
/* rtl8822bs_xmit.c */
s32 rtl8822bs_init_xmit_priv(PADAPTER);
void rtl8822bs_free_xmit_priv(PADAPTER);
s32 rtl8822bs_hal_xmit_enqueue(PADAPTER, struct xmit_frame *);
s32 rtl8822bs_hal_xmit(PADAPTER, struct xmit_frame *);
s32 rtl8822bs_mgnt_xmit(PADAPTER, struct xmit_frame *);
s32 rtl8822bs_xmit_buf_handler(PADAPTER);
thread_return rtl8822bs_xmit_thread(thread_context);
 
/* rtl8822bs_recv.c */
s32 rtl8822bs_init_recv_priv(PADAPTER);
void rtl8822bs_free_recv_priv(PADAPTER);
_pkt *rtl8822bs_alloc_recvbuf_skb(struct recv_buf *, u32 size);
void rtl8822bs_free_recvbuf_skb(struct recv_buf *);
s32 rtl8822bs_recv_hdl(_adapter *adapter);
void rtl8822bs_rxhandler(PADAPTER, struct recv_buf *);
 
/* rtl8822bs_ops.c */
void rtl8822bs_get_interrupt(PADAPTER, u32 *hisr, u16 *rx_len);
void rtl8822bs_clear_interrupt(PADAPTER, u32 hisr);
 
#endif /* _RTL8822BS_H_ */