diff options
author | David Vrabel <david.vrabel@csr.com> | 2007-08-10 08:29:46 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-09-23 15:24:27 -0400 |
commit | 7806cdb40fd562e5dcc07321579b62a5dc7cd95c (patch) | |
tree | 75abe11b76a0f77d5478758580c3aa75bcedb82c /include/linux/mmc | |
parent | d84075c8aed771d47d7ac6e96b098559da361c25 (diff) |
sdio: add sdio_f0_readb() and sdio_f0_writeb()
Add sdio_f0_readb() and sdio_f0_writeb() functions to reading and
writing function 0 registers. Writes outside the vendor specific CCCR
registers (0xF0 - 0xFF) are not permitted.
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/sdio_func.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h index f05757984e8d..da6a96c39776 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h | |||
@@ -141,5 +141,10 @@ extern int sdio_memcpy_toio(struct sdio_func *func, unsigned int addr, | |||
141 | extern int sdio_writesb(struct sdio_func *func, unsigned int addr, | 141 | extern int sdio_writesb(struct sdio_func *func, unsigned int addr, |
142 | void *src, int count); | 142 | void *src, int count); |
143 | 143 | ||
144 | extern unsigned char sdio_f0_readb(struct sdio_func *func, | ||
145 | unsigned int addr, int *err_ret); | ||
146 | extern void sdio_f0_writeb(struct sdio_func *func, unsigned char b, | ||
147 | unsigned int addr, int *err_ret); | ||
148 | |||
144 | #endif | 149 | #endif |
145 | 150 | ||