1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __CUSTOM_GPIO_H__ 3 #define __CUSTOM_GPIO_H___ 4 5 #include <drv_conf.h> 6 #include <osdep_service.h> 7 8 #ifdef PLATFORM_OS_XP 9 #include <drv_types_xp.h> 10 #endif 11 12 #ifdef PLATFORM_OS_CE 13 #include <drv_types_ce.h> 14 #endif 15 16 #ifdef PLATFORM_LINUX 17 #include <drv_types_linux.h> 18 #endif 19 20 typedef enum cust_gpio_modes { 21 WLAN_PWDN_ON, 22 WLAN_PWDN_OFF, 23 WLAN_POWER_ON, 24 WLAN_POWER_OFF, 25 WLAN_BT_PWDN_ON, 26 WLAN_BT_PWDN_OFF 27 } cust_gpio_modes_t; 28 29 extern int rtw_wifi_gpio_init(void); 30 extern int rtw_wifi_gpio_deinit(void); 31 extern void rtw_wifi_gpio_wlan_ctrl(int onoff); 32 33 #endif 34