diff options
| author | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-27 06:57:15 -0400 |
|---|---|---|
| committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-09-23 13:57:03 -0400 |
| commit | 46f555f2731a14545a09ec06d27bd18e8e07069f (patch) | |
| tree | 49b7050322d21b39a81bd383f4b697fb6268d454 /include/linux/mmc | |
| parent | f76c85154d320497bf1a939a98d6c432edcbd4a9 (diff) | |
mmc: add basic SDIO I/O operations
Add command wrappers that simplify register access from SDIO
function drivers.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc')
| -rw-r--r-- | include/linux/mmc/sdio_func.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h index 13a1a9ca4b66..5c56df196287 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h | |||
| @@ -49,5 +49,17 @@ struct sdio_driver { | |||
| 49 | extern int sdio_register_driver(struct sdio_driver *); | 49 | extern int sdio_register_driver(struct sdio_driver *); |
| 50 | extern void sdio_unregister_driver(struct sdio_driver *); | 50 | extern void sdio_unregister_driver(struct sdio_driver *); |
| 51 | 51 | ||
| 52 | /* | ||
| 53 | * SDIO I/O operations | ||
| 54 | */ | ||
| 55 | extern void sdio_claim_host(struct sdio_func *func); | ||
| 56 | extern void sdio_release_host(struct sdio_func *func); | ||
| 57 | |||
| 58 | extern unsigned char sdio_readb(struct sdio_func *func, | ||
| 59 | unsigned int addr, int *err_ret); | ||
| 60 | |||
| 61 | extern void sdio_writeb(struct sdio_func *func, unsigned char b, | ||
| 62 | unsigned int addr, int *err_ret); | ||
| 63 | |||
| 52 | #endif | 64 | #endif |
| 53 | 65 | ||
