diff options
Diffstat (limited to 'include/linux/mmc/sdio_func.h')
-rw-r--r-- | include/linux/mmc/sdio_func.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h index a8d268c9c276..af813fffc4ac 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h | |||
@@ -48,6 +48,8 @@ struct sdio_func { | |||
48 | unsigned int state; /* function state */ | 48 | unsigned int state; /* function state */ |
49 | #define SDIO_STATE_PRESENT (1<<0) /* present in sysfs */ | 49 | #define SDIO_STATE_PRESENT (1<<0) /* present in sysfs */ |
50 | 50 | ||
51 | u8 tmpbuf[4]; /* DMA:able scratch buffer */ | ||
52 | |||
51 | struct sdio_func_tuple *tuples; | 53 | struct sdio_func_tuple *tuples; |
52 | }; | 54 | }; |
53 | 55 | ||
@@ -114,9 +116,27 @@ extern int sdio_release_irq(struct sdio_func *func); | |||
114 | 116 | ||
115 | extern unsigned char sdio_readb(struct sdio_func *func, | 117 | extern unsigned char sdio_readb(struct sdio_func *func, |
116 | unsigned int addr, int *err_ret); | 118 | unsigned int addr, int *err_ret); |
119 | extern unsigned short sdio_readw(struct sdio_func *func, | ||
120 | unsigned int addr, int *err_ret); | ||
121 | extern unsigned long sdio_readl(struct sdio_func *func, | ||
122 | unsigned int addr, int *err_ret); | ||
123 | |||
124 | extern int sdio_memcpy_fromio(struct sdio_func *func, void *dst, | ||
125 | unsigned int addr, int count); | ||
126 | extern int sdio_readsb(struct sdio_func *func, void *dst, | ||
127 | unsigned int addr, int count); | ||
117 | 128 | ||
118 | extern void sdio_writeb(struct sdio_func *func, unsigned char b, | 129 | extern void sdio_writeb(struct sdio_func *func, unsigned char b, |
119 | unsigned int addr, int *err_ret); | 130 | unsigned int addr, int *err_ret); |
131 | extern void sdio_writew(struct sdio_func *func, unsigned short b, | ||
132 | unsigned int addr, int *err_ret); | ||
133 | extern void sdio_writel(struct sdio_func *func, unsigned long b, | ||
134 | unsigned int addr, int *err_ret); | ||
135 | |||
136 | extern int sdio_memcpy_toio(struct sdio_func *func, unsigned int addr, | ||
137 | void *src, int count); | ||
138 | extern int sdio_writesb(struct sdio_func *func, unsigned int addr, | ||
139 | void *src, int count); | ||
120 | 140 | ||
121 | #endif | 141 | #endif |
122 | 142 | ||