OSDN Git Service

Add rtl8821ce driver version 5.5.2
[android-x86/external-kernel-drivers.git] / rtl8821ce / include / custom_gpio.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2016 - 2017 Realtek Corporation.
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 #ifndef __CUSTOM_GPIO_H__
16 #define __CUSTOM_GPIO_H___
17
18 #include <drv_conf.h>
19 #include <osdep_service.h>
20
21 #ifdef PLATFORM_OS_XP
22         #include <drv_types_xp.h>
23 #endif
24
25 #ifdef PLATFORM_OS_CE
26         #include <drv_types_ce.h>
27 #endif
28
29 #ifdef PLATFORM_LINUX
30         #include <drv_types_linux.h>
31 #endif
32
33 typedef enum cust_gpio_modes {
34         WLAN_PWDN_ON,
35         WLAN_PWDN_OFF,
36         WLAN_POWER_ON,
37         WLAN_POWER_OFF,
38         WLAN_BT_PWDN_ON,
39         WLAN_BT_PWDN_OFF
40 } cust_gpio_modes_t;
41
42 extern int rtw_wifi_gpio_init(void);
43 extern int rtw_wifi_gpio_deinit(void);
44 extern void rtw_wifi_gpio_wlan_ctrl(int onoff);
45
46 #endif