xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/include/custom_gpio.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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 typedef enum cust_gpio_modes {
23 	WLAN_PWDN_ON,
24 	WLAN_PWDN_OFF,
25 	WLAN_POWER_ON,
26 	WLAN_POWER_OFF,
27 	WLAN_BT_PWDN_ON,
28 	WLAN_BT_PWDN_OFF
29 } cust_gpio_modes_t;
30 
31 extern int rtw_wifi_gpio_init(void);
32 extern int rtw_wifi_gpio_deinit(void);
33 extern void rtw_wifi_gpio_wlan_ctrl(int onoff);
34 
35 #endif
36