Robert P. J. Day | 100e918 | 2011-05-27 16:04:03 -0400 | [diff] [blame] | 1 | #ifndef LINUX_MMC_SH_MOBILE_SDHI_H |
| 2 | #define LINUX_MMC_SH_MOBILE_SDHI_H |
Guennadi Liakhovetski | 42051e8 | 2011-03-14 09:52:33 +0100 | [diff] [blame] | 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
Guennadi Liakhovetski | 2595880 | 2011-05-11 16:51:15 +0000 | [diff] [blame] | 6 | struct platform_device; |
| 7 | struct tmio_mmc_data; |
| 8 | |
Simon Horman | d5098cb | 2011-08-26 10:42:39 +0200 | [diff] [blame] | 9 | #define SH_MOBILE_SDHI_IRQ_CARD_DETECT "card_detect" |
| 10 | #define SH_MOBILE_SDHI_IRQ_SDCARD "sdcard" |
| 11 | #define SH_MOBILE_SDHI_IRQ_SDIO "sdio" |
| 12 | |
Guennadi Liakhovetski | 42051e8 | 2011-03-14 09:52:33 +0100 | [diff] [blame] | 13 | struct sh_mobile_sdhi_info { |
| 14 | int dma_slave_tx; |
| 15 | int dma_slave_rx; |
| 16 | unsigned long tmio_flags; |
| 17 | unsigned long tmio_caps; |
| 18 | u32 tmio_ocr_mask; /* available MMC voltages */ |
Guennadi Liakhovetski | 2595880 | 2011-05-11 16:51:15 +0000 | [diff] [blame] | 19 | struct tmio_mmc_data *pdata; |
Guennadi Liakhovetski | 42051e8 | 2011-03-14 09:52:33 +0100 | [diff] [blame] | 20 | void (*set_pwr)(struct platform_device *pdev, int state); |
| 21 | int (*get_cd)(struct platform_device *pdev); |
| 22 | }; |
| 23 | |
Robert P. J. Day | 100e918 | 2011-05-27 16:04:03 -0400 | [diff] [blame] | 24 | #endif /* LINUX_MMC_SH_MOBILE_SDHI_H */ |