mmc-msm_sdcc.h 635 B

123456789101112131415161718192021222324252627
  1. #ifndef __MMC_MSM_SDCC_H
  2. #define __MMC_MSM_SDCC_H
  3. #include <linux/mmc/host.h>
  4. #include <linux/mmc/card.h>
  5. #include <linux/mmc/sdio_func.h>
  6. struct msm_mmc_gpio {
  7. unsigned no;
  8. const char *name;
  9. };
  10. struct msm_mmc_gpio_data {
  11. struct msm_mmc_gpio *gpio;
  12. u8 size;
  13. };
  14. struct msm_mmc_platform_data {
  15. unsigned int ocr_mask; /* available voltages */
  16. u32 (*translate_vdd)(struct device *, unsigned int);
  17. unsigned int (*status)(struct device *);
  18. int (*register_status_notify)(void (*callback)(int card_present, void *dev_id), void *dev_id);
  19. struct msm_mmc_gpio_data *gpio_data;
  20. void (*init_card)(struct mmc_card *card);
  21. };
  22. #endif