1 /****************************************************************************** 2 * 3 * Copyright(c) 2016 - 2019 Realtek Corporation. All rights reserved. 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 16 #ifndef _HALMAC_API_H_ 17 #define _HALMAC_API_H_ 18 19 #define HALMAC_SVN_VER "55772M" 20 21 #define HALMAC_MAJOR_VER 1 22 #define HALMAC_PROTOTYPE_VER 6 23 #define HALMAC_MINOR_VER 6 24 #define HALMAC_PATCH_VER 26 25 26 #define HALMAC_88XX_SUPPORT (HALMAC_8821C_SUPPORT || \ 27 HALMAC_8822B_SUPPORT || \ 28 HALMAC_8822C_SUPPORT || \ 29 HALMAC_8812F_SUPPORT) 30 31 #define HALMAC_88XX_V1_SUPPORT HALMAC_8814B_SUPPORT 32 33 #include "halmac_2_platform.h" 34 #include "halmac_type.h" 35 #include "halmac_hw_cfg.h" 36 #include "halmac_usb_reg.h" 37 #include "halmac_sdio_reg.h" 38 #include "halmac_pcie_reg.h" 39 #include "halmac_bit2.h" 40 #include "halmac_reg2.h" 41 42 #if HALMAC_PLATFORM_TESTPROGRAM 43 #include "halmac_type_testprogram.h" 44 #endif 45 46 #ifndef HALMAC_USE_TYPEDEF 47 #define HALMAC_USE_TYPEDEF 1 48 #endif 49 50 #if HALMAC_USE_TYPEDEF 51 #include "halmac_typedef.h" 52 #endif 53 54 #if HALMAC_8822B_SUPPORT 55 #include "halmac_reg_8822b.h" 56 #include "halmac_bit_8822b.h" 57 #endif 58 59 #if HALMAC_8821C_SUPPORT 60 #include "halmac_reg_8821c.h" 61 #include "halmac_bit_8821c.h" 62 #endif 63 64 #if HALMAC_8814B_SUPPORT 65 #include "halmac_reg_8814b.h" 66 #include "halmac_bit_8814b.h" 67 #endif 68 69 #if HALMAC_8822C_SUPPORT 70 #include "halmac_reg_8822c.h" 71 #include "halmac_bit_8822c.h" 72 #endif 73 74 #if HALMAC_8812F_SUPPORT 75 #include "halmac_reg_8812f.h" 76 #include "halmac_bit_8812f.h" 77 #endif 78 79 #if (HALMAC_PLATFORM_WINDOWS || HALMAC_PLATFORM_LINUX) 80 #include "halmac_tx_desc_nic.h" 81 #include "halmac_tx_desc_buffer_nic.h" 82 #include "halmac_tx_desc_ie_nic.h" 83 #include "halmac_rx_desc_nic.h" 84 #include "halmac_tx_bd_nic.h" 85 #include "halmac_rx_bd_nic.h" 86 #include "halmac_fw_offload_c2h_nic.h" 87 #include "halmac_fw_offload_h2c_nic.h" 88 #include "halmac_h2c_extra_info_nic.h" 89 #include "halmac_original_c2h_nic.h" 90 #include "halmac_original_h2c_nic.h" 91 #endif 92 93 #if (HALMAC_PLATFORM_AP) 94 #include "halmac_rx_desc_ap.h" 95 #include "halmac_tx_desc_ap.h" 96 #include "halmac_tx_desc_buffer_ap.h" 97 #include "halmac_tx_desc_ie_ap.h" 98 #include "halmac_fw_offload_c2h_ap.h" 99 #include "halmac_fw_offload_h2c_ap.h" 100 #include "halmac_h2c_extra_info_ap.h" 101 #include "halmac_original_c2h_ap.h" 102 #include "halmac_original_h2c_ap.h" 103 #endif 104 105 #if HALMAC_DBG_MONITOR_IO 106 #include "halmac_dbg.h" 107 #endif 108 #include "halmac_tx_desc_chip.h" 109 #include "halmac_rx_desc_chip.h" 110 #include "halmac_tx_desc_buffer_chip.h" 111 #include "halmac_tx_desc_ie_chip.h" 112 113 enum halmac_ret_status 114 halmac_init_adapter(void *drv_adapter, struct halmac_platform_api *pltfm_api, 115 enum halmac_interface intf, 116 struct halmac_adapter **halmac_adapter, 117 struct halmac_api **halmac_api); 118 119 enum halmac_ret_status 120 halmac_deinit_adapter(struct halmac_adapter *adapter); 121 122 enum halmac_ret_status 123 halmac_halt_api(struct halmac_adapter *adapter); 124 125 enum halmac_ret_status 126 halmac_get_version(struct halmac_ver *version); 127 128 #endif 129