1 /******************************************************************************
3 * Copyright(c) 2016 Realtek Corporation.
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.
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
14 * The full GNU General Public License is included in this distribution in the
15 * file called LICENSE.
17 * Contact Information:
18 * wlanfae <wlanfae@realtek.com>
19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20 * Hsinchu 300, Taiwan.
22 * Larry Finger <Larry.Finger@lwfinger.net>
24 *****************************************************************************/
25 #ifndef _HALMAC_API_H_
26 #define _HALMAC_API_H_
28 #define HALMAC_SVN_VER "13348M"
30 #define HALMAC_MAJOR_VER 0x0001 /* major version, ver_1 for async_api */
31 /* For halmac_api num change or prototype change, increment prototype version.
32 * Otherwise, increase minor version
34 #define HALMAC_PROTOTYPE_VER 0x0003 /* prototype version */
35 #define HALMAC_MINOR_VER 0x0005 /* minor version */
36 #define HALMAC_PATCH_VER 0x0000 /* patch version */
38 #include "halmac_2_platform.h"
39 #include "halmac_type.h"
41 #include "halmac_usb_reg.h"
42 #include "halmac_sdio_reg.h"
43 #include "halmac_pcie_reg.h"
45 #include "halmac_bit2.h"
46 #include "halmac_reg2.h"
48 #include "halmac_tx_desc_nic.h"
49 #include "halmac_rx_desc_nic.h"
50 #include "halmac_tx_bd_nic.h"
51 #include "halmac_rx_bd_nic.h"
52 #include "halmac_fw_offload_c2h_nic.h"
53 #include "halmac_fw_offload_h2c_nic.h"
54 #include "halmac_h2c_extra_info_nic.h"
55 #include "halmac_original_c2h_nic.h"
56 #include "halmac_original_h2c_nic.h"
58 #include "halmac_tx_desc_chip.h"
59 #include "halmac_rx_desc_chip.h"
60 #include "halmac_tx_bd_chip.h"
61 #include "halmac_rx_bd_chip.h"
62 #include "halmac_88xx/halmac_88xx_cfg.h"
64 #include "halmac_88xx/halmac_8822b/halmac_8822b_cfg.h"
65 #include "halmac_reg_8822b.h"
66 #include "halmac_bit_8822b.h"
68 enum halmac_ret_status
69 halmac_init_adapter(void *driver_adapter,
70 struct halmac_platform_api *halmac_platform_api,
71 enum halmac_interface halmac_interface,
72 struct halmac_adapter **pp_halmac_adapter,
73 struct halmac_api **pp_halmac_api);
75 enum halmac_ret_status
76 halmac_deinit_adapter(struct halmac_adapter *halmac_adapter);
78 enum halmac_ret_status halmac_halt_api(struct halmac_adapter *halmac_adapter);
80 enum halmac_ret_status halmac_get_version(struct halmac_ver *version);