aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-07-24 02:09:39 -0400
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 21:13:08 +0200
commit17b759aff916b4d02721e75ce5ed82b1903e5bd6 (patch)
treeeef4463cbc556e7ae4bd78dba0e6acd861b283c3 /include/linux/mmc
parent112c9db91ee6bf19eca7cbb6854be3127381c229 (diff)
downloadkernel_samsung_espresso10-17b759aff916b4d02721e75ce5ed82b1903e5bd6.zip
kernel_samsung_espresso10-17b759aff916b4d02721e75ce5ed82b1903e5bd6.tar.gz
kernel_samsung_espresso10-17b759aff916b4d02721e75ce5ed82b1903e5bd6.tar.bz2
sdio: add interface for host side SDIO interrupt reporting
Signed-off-by: Nicolas Pitre <npitre@mvista.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 00dc180..3fd1979 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -51,6 +51,7 @@ struct mmc_host_ops {
void (*request)(struct mmc_host *host, struct mmc_request *req);
void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
int (*get_ro)(struct mmc_host *host);
+ void (*enable_sdio_irq)(struct mmc_host *host, int enable);
};
struct mmc_card;
@@ -89,6 +90,7 @@ struct mmc_host {
#define MMC_CAP_MULTIWRITE (1 << 1) /* Can accurately report bytes sent to card on error */
#define MMC_CAP_MMC_HIGHSPEED (1 << 2) /* Can do MMC high-speed timing */
#define MMC_CAP_SD_HIGHSPEED (1 << 3) /* Can do SD high-speed timing */
+#define MMC_CAP_SDIO_IRQ (1 << 4) /* Can signal pending SDIO IRQs */
/* host specific block data */
unsigned int max_seg_size; /* see blk_queue_max_segment_size */
@@ -150,5 +152,11 @@ extern int mmc_resume_host(struct mmc_host *);
extern void mmc_detect_change(struct mmc_host *, unsigned long delay);
extern void mmc_request_done(struct mmc_host *, struct mmc_request *);
+static inline void mmc_signal_sdio_irq(struct mmc_host *host)
+{
+ host->ops->enable_sdio_irq(host, 0);
+ wake_up_process(host->sdio_irq_thread);
+}
+
#endif