platform_hisilicon_hi3798_sdio.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2017 - 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_HISILICON_HI3798_SDIO_H__
  16. #define __PLATFORM_HISILICON_HI3798_SDIO_H__
  17. typedef unsigned int HI_U32;
  18. typedef int HI_S32;
  19. #define HI_SUCCESS 0
  20. #define HI_FAILURE (-1)
  21. extern HI_S32 HI_DRV_GPIO_SetDirBit(HI_U32 u32GpioNo, HI_U32 u32DirBit);
  22. extern HI_S32 HI_DRV_GPIO_WriteBit(HI_U32 u32GpioNo, HI_U32 u32BitValue);
  23. #endif /* __PLATFORM_HISILICON_HI3798_SDIO_H__ */