mmc.h 809 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * arch/arm/include/asm/mach/mmc.h
  3. */
  4. #ifndef ASMARM_MACH_MMC_H
  5. #define ASMARM_MACH_MMC_H
  6. #include <linux/mmc/host.h>
  7. #include <linux/mmc/card.h>
  8. #include <linux/mmc/sdio_func.h>
  9. struct embedded_sdio_data {
  10. struct sdio_cis cis;
  11. struct sdio_cccr cccr;
  12. struct sdio_embedded_func *funcs;
  13. int num_funcs;
  14. };
  15. struct msm_mmc_gpio {
  16. unsigned no;
  17. const char *name;
  18. };
  19. struct msm_mmc_gpio_data {
  20. struct msm_mmc_gpio *gpio;
  21. u8 size;
  22. };
  23. struct msm_mmc_platform_data {
  24. unsigned int ocr_mask; /* available voltages */
  25. u32 (*translate_vdd)(struct device *, unsigned int);
  26. unsigned int (*status)(struct device *);
  27. struct embedded_sdio_data *embedded_sdio;
  28. int (*register_status_notify)(void (*callback)(int card_present, void *dev_id), void *dev_id);
  29. struct msm_mmc_gpio_data *gpio_data;
  30. };
  31. #endif