OSDN Git Service

Add rtl8821ce driver version 5.5.2
[android-x86/external-kernel-drivers.git] / rtl8821ce / hal / halmac / halmac_88xx / halmac_gpio_88xx.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2016 - 2018 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_GPIO_88XX_H_
17 #define _HALMAC_GPIO_88XX_H_
18
19 #include "../halmac_api.h"
20 #include "../halmac_gpio_cmd.h"
21
22 #if HALMAC_88XX_SUPPORT
23
24 enum halmac_ret_status
25 pinmux_wl_led_mode_88xx(struct halmac_adapter *adapter,
26                         enum halmac_wlled_mode mode);
27
28 void
29 pinmux_wl_led_sw_ctrl_88xx(struct halmac_adapter *adapter, u8 on);
30
31 void
32 pinmux_sdio_int_polarity_88xx(struct halmac_adapter *adapter, u8 low_active);
33
34 enum halmac_ret_status
35 pinmux_gpio_mode_88xx(struct halmac_adapter *adapter, u8 gpio_id, u8 output);
36
37 enum halmac_ret_status
38 pinmux_gpio_output_88xx(struct halmac_adapter *adapter, u8 gpio_id, u8 high);
39
40 enum halmac_ret_status
41 pinmux_pin_status_88xx(struct halmac_adapter *adapter, u8 pin_id, u8 *high);
42
43 enum halmac_ret_status
44 pinmux_parser_88xx(struct halmac_adapter *adapter,
45                    const struct halmac_gpio_pimux_list *list, u32 size,
46                    u32 gpio_id, u32 *cur_func);
47
48 enum halmac_ret_status
49 pinmux_switch_88xx(struct halmac_adapter *adapter,
50                    const struct halmac_gpio_pimux_list *list, u32 size,
51                    u32 gpio_id, enum halmac_gpio_func gpio_func);
52
53 enum halmac_ret_status
54 pinmux_record_88xx(struct halmac_adapter *adapter,
55                    enum halmac_gpio_func gpio_func, u8 val);
56
57 #endif /* HALMAC_88XX_SUPPORT */
58
59 #endif/* _HALMAC_GPIO_88XX_H_ */