1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2016 - 2017 Realtek Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of version 2 of the GNU General Public License as 8 * published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 *****************************************************************************/ 16 #ifndef __CUSTOM_GPIO_H__ 17 #define __CUSTOM_GPIO_H___ 18 19 #include <drv_conf.h> 20 #include <osdep_service.h> 21 22 #ifdef PLATFORM_OS_XP 23 #include <drv_types_xp.h> 24 #endif 25 26 #ifdef PLATFORM_OS_CE 27 #include <drv_types_ce.h> 28 #endif 29 30 #ifdef PLATFORM_LINUX 31 #include <drv_types_linux.h> 32 #endif 33 34 typedef enum cust_gpio_modes { 35 WLAN_PWDN_ON, 36 WLAN_PWDN_OFF, 37 WLAN_POWER_ON, 38 WLAN_POWER_OFF, 39 WLAN_BT_PWDN_ON, 40 WLAN_BT_PWDN_OFF 41 } cust_gpio_modes_t; 42 43 extern int rtw_wifi_gpio_init(void); 44 extern int rtw_wifi_gpio_deinit(void); 45 extern void rtw_wifi_gpio_wlan_ctrl(int onoff); 46 47 #endif 48