drv_sdio.h 586 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __DRV_SDIO_H__
  2. #define __DRV_SDIO_H__
  3. #include <rtthread.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef enum
  8. {
  9. SDIO_DEVICE_TYPE_NORMAL = 0, //!< Normal transfer type for SD/SDHC/MMC cards (default)
  10. SDIO_DEVICE_TYPE_WIFI,
  11. } SDIO_DEVICE_TYPE_E;
  12. struct gk_sdio_info
  13. {
  14. rt_uint32_t id;
  15. SDIO_DEVICE_TYPE_E type;
  16. };
  17. struct gk_sdio
  18. {
  19. struct rt_mmcsd_host *host;
  20. struct rt_mmcsd_req *req;
  21. struct rt_mmcsd_cmd *cmd;
  22. struct rt_completion completion;
  23. void *priv;
  24. };
  25. void rt_hw_sdio_init(void);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif