[SCSI] mvsas: get phy info.
[linux-2.6/verdex.git] / include / linux / spi / mmc_spi.h
blobe9bbe3ebd7217c23a9a96bb2f3adfe6f536914f5
1 #ifndef __LINUX_SPI_MMC_SPI_H
2 #define __LINUX_SPI_MMC_SPI_H
4 struct device;
5 struct mmc_host;
7 /* Put this in platform_data of a device being used to manage an MMC/SD
8 * card slot. (Modeled after PXA mmc glue; see that for usage examples.)
10 * REVISIT This is not a spi-specific notion. Any card slot should be
11 * able to handle it. If the MMC core doesn't adopt this kind of notion,
12 * switch the "struct device *" parameters over to "struct spi_device *".
14 struct mmc_spi_platform_data {
15 /* driver activation and (optional) card detect irq hookup */
16 int (*init)(struct device *,
17 irqreturn_t (*)(int, void *),
18 void *);
19 void (*exit)(struct device *, void *);
21 /* sense switch on sd cards */
22 int (*get_ro)(struct device *);
24 /* how long to debounce card detect, in msecs */
25 u16 detect_delay;
27 /* power management */
28 u16 powerup_msecs; /* delay of up to 250 msec */
29 u32 ocr_mask; /* available voltages */
30 void (*setpower)(struct device *, unsigned int maskval);
33 #endif /* __LINUX_SPI_MMC_SPI_H */