aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/sdio_func.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-07-06 13:35:01 +0200
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 21:09:34 +0200
commit112c9db91ee6bf19eca7cbb6854be3127381c229 (patch)
treee2d45c7d18a4a218cc0716d7aef79aa04b73a498 /include/linux/mmc/sdio_func.h
parent5ed334a1f8caaae98806d572f78c5802975ea20f (diff)
downloadkernel_samsung_smdk4412-112c9db91ee6bf19eca7cbb6854be3127381c229.zip
kernel_samsung_smdk4412-112c9db91ee6bf19eca7cbb6854be3127381c229.tar.gz
kernel_samsung_smdk4412-112c9db91ee6bf19eca7cbb6854be3127381c229.tar.bz2
sdio: support IO_RW_EXTENDED
Support the multi-byte transfer operation, including handlers for common operations like writel()/readl(). Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc/sdio_func.h')
-rw-r--r--include/linux/mmc/sdio_func.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h
index a8d268c..af813ff 100644
--- a/include/linux/mmc/sdio_func.h
+++ b/include/linux/mmc/sdio_func.h
@@ -48,6 +48,8 @@ struct sdio_func {
unsigned int state; /* function state */
#define SDIO_STATE_PRESENT (1<<0) /* present in sysfs */
+ u8 tmpbuf[4]; /* DMA:able scratch buffer */
+
struct sdio_func_tuple *tuples;
};
@@ -114,9 +116,27 @@ extern int sdio_release_irq(struct sdio_func *func);
extern unsigned char sdio_readb(struct sdio_func *func,
unsigned int addr, int *err_ret);
+extern unsigned short sdio_readw(struct sdio_func *func,
+ unsigned int addr, int *err_ret);
+extern unsigned long sdio_readl(struct sdio_func *func,
+ unsigned int addr, int *err_ret);
+
+extern int sdio_memcpy_fromio(struct sdio_func *func, void *dst,
+ unsigned int addr, int count);
+extern int sdio_readsb(struct sdio_func *func, void *dst,
+ unsigned int addr, int count);
extern void sdio_writeb(struct sdio_func *func, unsigned char b,
unsigned int addr, int *err_ret);
+extern void sdio_writew(struct sdio_func *func, unsigned short b,
+ unsigned int addr, int *err_ret);
+extern void sdio_writel(struct sdio_func *func, unsigned long b,
+ unsigned int addr, int *err_ret);
+
+extern int sdio_memcpy_toio(struct sdio_func *func, unsigned int addr,
+ void *src, int count);
+extern int sdio_writesb(struct sdio_func *func, unsigned int addr,
+ void *src, int count);
#endif