platform_aml_s905_sdio.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 2018 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 __PLATFORM_AML_S905_SDIO_H__
  16. #define __PLATFORM_AML_S905_SDIO_H__
  17. #include <linux/version.h> /* Linux vresion */
  18. extern void sdio_reinit(void);
  19. extern void extern_wifi_set_enable(int is_on);
  20. #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0))
  21. extern void wifi_teardown_dt(void);
  22. extern int wifi_setup_dt(void);
  23. #endif /* kernel < 3.14.0 */
  24. #endif /* __PLATFORM_AML_S905_SDIO_H__ */