hc
2024-07-02 39af2116d7581c9a12be9e73bb6bdc31496495ef
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
59
60
61
62
63
64
65
/******************************************************************************
 *
 * Copyright(c) 2016 - 2017 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 _RTL8821CU_H_
#define _RTL8821CU_H_
 
#include <drv_types.h>        /* PADAPTER, basic_types.h, rtw_xmit.h and etc. */
 
#define USB_AGG_EN_8821C            BIT(7)
 
#ifdef CONFIG_LPS_LCLK
/* for CONFIG_LPS_LCLK setting in rtl8821cu_ops.c */
#define REG_USB_HRPWM_8821C        0xFE58
#define REG_USB_HCPWM_8821C        0xFE57
#endif /* CONFIG_LPS_LCLK */
 
/* rtl8821cu_halinit.c */
u32 rtl8821cu_hal_init(PADAPTER);
u32 rtl8821cu_hal_deinit(PADAPTER);
u32 rtl8821cu_inirp_init(PADAPTER);
u32 rtl8821cu_inirp_deinit(PADAPTER);
void rtl8821cu_interface_configure(PADAPTER);
 
/* rtl8821cu_halmac.c */
int rtl8821cu_halmac_init_adapter(PADAPTER);
 
/* rtl8821cu_io.c */
 
/* rtl8821cu_led.c */
void rtl8821cu_initswleds(PADAPTER);
void rtl8821cu_deinitswleds(PADAPTER);
 
/* rtl8821cu_xmit.c */
#define OFFSET_SZ 0
#define MAX_TX_AGG_PACKET_NUMBER_8821C 0xff
 
s32 rtl8821cu_init_xmit_priv(PADAPTER);
void rtl8821cu_free_xmit_priv(PADAPTER);
s32 rtl8821cu_mgnt_xmit(PADAPTER, struct xmit_frame *);
s32 rtl8821cu_hal_xmit(PADAPTER, struct xmit_frame *);
#ifdef CONFIG_RTW_MGMT_QUEUE
s32 rtl8821cu_hal_mgmt_xmitframe_enqueue(PADAPTER, struct xmit_frame *);
#endif
s32 rtl8821cu_hal_xmitframe_enqueue(PADAPTER, struct xmit_frame *);
s32 rtl8821cu_hostap_mgnt_xmit_entry(PADAPTER, _pkt *);
#ifdef CONFIG_XMIT_THREAD_MODE
s32 rtl8821cu_xmit_buf_handler(PADAPTER padapter);
#endif /* CONFIG_XMIT_THREAD_MODE */
 
/* rtl8821cu_recv.c */
int rtl8821cu_init_recv_priv(PADAPTER);
void rtl8821cu_free_recv_priv(PADAPTER);
 
#endif /* _RTL8821CU_H_ */