summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorPanduranga Mallireddy <x0125717@ti.com>2010-08-10 15:08:10 +0530
committerRicardo Perez Olivares <x0081762@ti.com>2010-09-14 19:27:24 -0500
commit2881cbc692c05b38f7863697c20d0177c3ad7cd3 (patch)
tree0356385982b8ca98e4db0dc8d32d70a1ce490f36 /include/linux/mmc
parent68f674aefac4cce49933f1e3425efaec678ac51f (diff)
OMAP4: sdio: added structure embedded_sdio_data
Added Structure used to hold embedded SDIO device data from platform layer. Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h18
-rw-r--r--include/linux/mmc/sdio_func.h10
2 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index f65913c9f5a4..d93d73eefa09 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -211,6 +211,17 @@ struct mmc_host {
struct dentry *debugfs_root;
+#ifdef CONFIG_TIWLAN_SDIO
+ struct {
+ struct sdio_cis *cis;
+ struct sdio_embedded_func *funcs;
+ unsigned int quirks; /* embedded sdio card quirks */
+#define MMC_QUIRK_VDD_165_195 (1<<0) /* do not ignore MMC_VDD_165_195 */
+#define MMC_QUIRK_LENIENT_FUNC0 (1<<1)
+ /* allow SDIO FN0 writes outside of VS CCCR */
+ } embedded_sdio_data;
+#endif
+
unsigned long private[0] ____cacheline_aligned;
};
@@ -219,6 +230,13 @@ extern int mmc_add_host(struct mmc_host *);
extern void mmc_remove_host(struct mmc_host *);
extern void mmc_free_host(struct mmc_host *);
+#ifdef CONFIG_TIWLAN_SDIO
+extern void mmc_set_embedded_sdio_data(struct mmc_host *host,
+ struct sdio_cis *cis,
+ struct sdio_embedded_func *funcs,
+ unsigned int quirks);
+#endif
+
static inline void *mmc_priv(struct mmc_host *host)
{
return (void *)host->private;
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h
index 31baaf82f458..4bb030649f28 100644
--- a/include/linux/mmc/sdio_func.h
+++ b/include/linux/mmc/sdio_func.h
@@ -22,6 +22,16 @@ struct sdio_func;
typedef void (sdio_irq_handler_t)(struct sdio_func *);
+#ifdef CONFIG_TIWLAN_SDIO
+/*
+ * Structure used to hold embedded SDIO device data from platform layer
+ */
+struct sdio_embedded_func {
+ uint8_t f_class;
+ uint32_t f_maxblksize;
+};
+#endif
+
/*
* SDIO function CIS tuple (unknown to the core)
*/