halmac_gpio_88xx.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #ifndef _HALMAC_GPIO_88XX_H_
  16. #define _HALMAC_GPIO_88XX_H_
  17. #include "../halmac_api.h"
  18. #include "../halmac_gpio_cmd.h"
  19. #if HALMAC_88XX_SUPPORT
  20. enum halmac_ret_status
  21. pinmux_wl_led_mode_88xx(struct halmac_adapter *adapter,
  22. enum halmac_wlled_mode mode);
  23. void
  24. pinmux_wl_led_sw_ctrl_88xx(struct halmac_adapter *adapter, u8 on);
  25. void
  26. pinmux_sdio_int_polarity_88xx(struct halmac_adapter *adapter, u8 low_active);
  27. enum halmac_ret_status
  28. pinmux_gpio_mode_88xx(struct halmac_adapter *adapter, u8 gpio_id, u8 output);
  29. enum halmac_ret_status
  30. pinmux_gpio_output_88xx(struct halmac_adapter *adapter, u8 gpio_id, u8 high);
  31. enum halmac_ret_status
  32. pinmux_pin_status_88xx(struct halmac_adapter *adapter, u8 pin_id, u8 *high);
  33. enum halmac_ret_status
  34. pinmux_parser_88xx(struct halmac_adapter *adapter,
  35. const struct halmac_gpio_pimux_list *list, u32 size,
  36. u32 gpio_id, u32 *cur_func);
  37. enum halmac_ret_status
  38. pinmux_switch_88xx(struct halmac_adapter *adapter,
  39. const struct halmac_gpio_pimux_list *list, u32 size,
  40. u32 gpio_id, enum halmac_gpio_func gpio_func);
  41. enum halmac_ret_status
  42. pinmux_record_88xx(struct halmac_adapter *adapter,
  43. enum halmac_gpio_func gpio_func, u8 val);
  44. #endif /* HALMAC_88XX_SUPPORT */
  45. #endif/* _HALMAC_GPIO_88XX_H_ */