GNU Linux-libre 4.19.207-gnu1
[releases.git] / drivers / staging / rtlwifi / halmac / halmac_api.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2016  Realtek Corporation.
5  *
6  * Contact Information:
7  * wlanfae <wlanfae@realtek.com>
8  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
9  * Hsinchu 300, Taiwan.
10  *
11  * Larry Finger <Larry.Finger@lwfinger.net>
12  *
13  *****************************************************************************/
14 #ifndef _HALMAC_API_H_
15 #define _HALMAC_API_H_
16
17 #define HALMAC_SVN_VER "13348M"
18
19 #define HALMAC_MAJOR_VER 0x0001 /* major version, ver_1 for async_api */
20 /* For halmac_api num change or prototype change, increment prototype version.
21  * Otherwise, increase minor version
22  */
23 #define HALMAC_PROTOTYPE_VER 0x0003 /* prototype version */
24 #define HALMAC_MINOR_VER 0x0005 /* minor version */
25 #define HALMAC_PATCH_VER 0x0000 /* patch version */
26
27 #include "halmac_2_platform.h"
28 #include "halmac_type.h"
29
30 #include "halmac_usb_reg.h"
31 #include "halmac_sdio_reg.h"
32
33 #include "halmac_bit2.h"
34 #include "halmac_reg2.h"
35
36 #include "halmac_tx_desc_nic.h"
37 #include "halmac_rx_desc_nic.h"
38 #include "halmac_tx_bd_nic.h"
39 #include "halmac_rx_bd_nic.h"
40 #include "halmac_fw_offload_c2h_nic.h"
41 #include "halmac_fw_offload_h2c_nic.h"
42 #include "halmac_h2c_extra_info_nic.h"
43 #include "halmac_original_c2h_nic.h"
44 #include "halmac_original_h2c_nic.h"
45
46 #include "halmac_tx_desc_chip.h"
47 #include "halmac_rx_desc_chip.h"
48 #include "halmac_tx_bd_chip.h"
49 #include "halmac_rx_bd_chip.h"
50 #include "halmac_88xx/halmac_88xx_cfg.h"
51
52 #include "halmac_88xx/halmac_8822b/halmac_8822b_cfg.h"
53 #include "halmac_reg_8822b.h"
54 #include "halmac_bit_8822b.h"
55
56 enum halmac_ret_status
57 halmac_init_adapter(void *driver_adapter,
58                     struct halmac_platform_api *halmac_platform_api,
59                     enum halmac_interface halmac_interface,
60                     struct halmac_adapter **pp_halmac_adapter,
61                     struct halmac_api **pp_halmac_api);
62
63 enum halmac_ret_status
64 halmac_deinit_adapter(struct halmac_adapter *halmac_adapter);
65
66 enum halmac_ret_status halmac_halt_api(struct halmac_adapter *halmac_adapter);
67
68 enum halmac_ret_status halmac_get_version(struct halmac_ver *version);
69
70 #endif