1 /******************************************************************************
3 * Copyright(c) 2016 - 2018 Realtek Corporation. All rights reserved.
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.
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
14 ******************************************************************************/
16 #ifndef _HALMAC_GPIO_88XX_H_
17 #define _HALMAC_GPIO_88XX_H_
19 #include "../halmac_api.h"
20 #include "../halmac_gpio_cmd.h"
22 #if HALMAC_88XX_SUPPORT
24 enum halmac_ret_status
25 pinmux_wl_led_mode_88xx(struct halmac_adapter *adapter,
26 enum halmac_wlled_mode mode);
29 pinmux_wl_led_sw_ctrl_88xx(struct halmac_adapter *adapter, u8 on);
32 pinmux_sdio_int_polarity_88xx(struct halmac_adapter *adapter, u8 low_active);
34 enum halmac_ret_status
35 pinmux_gpio_mode_88xx(struct halmac_adapter *adapter, u8 gpio_id, u8 output);
37 enum halmac_ret_status
38 pinmux_gpio_output_88xx(struct halmac_adapter *adapter, u8 gpio_id, u8 high);
40 enum halmac_ret_status
41 pinmux_pin_status_88xx(struct halmac_adapter *adapter, u8 pin_id, u8 *high);
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);
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);
53 enum halmac_ret_status
54 pinmux_record_88xx(struct halmac_adapter *adapter,
55 enum halmac_gpio_func gpio_func, u8 val);
57 #endif /* HALMAC_88XX_SUPPORT */
59 #endif/* _HALMAC_GPIO_88XX_H_ */