Go to the documentation of this file.
12 #ifndef LINUX_MMC_SDIO_FUNC_H
13 #define LINUX_MMC_SDIO_FUNC_H
15 #include <linux/device.h>
54 #define SDIO_STATE_PRESENT (1<<0)
64 #define sdio_func_present(f) ((f)->state & SDIO_STATE_PRESENT)
66 #define sdio_func_set_present(f) ((f)->state |= SDIO_STATE_PRESENT)
68 #define sdio_func_id(f) (dev_name(&(f)->dev))
70 #define sdio_get_drvdata(f) dev_get_drvdata(&(f)->dev)
71 #define sdio_set_drvdata(f,d) dev_set_drvdata(&(f)->dev, d)
72 #define dev_to_sdio_func(d) container_of(d, struct sdio_func, dev)
87 #define to_sdio_driver(d) container_of(d, struct sdio_driver, drv)
97 #define SDIO_DEVICE(vend,dev) \
98 .class = SDIO_ANY_ID, \
99 .vendor = (vend), .device = (dev)
109 #define SDIO_DEVICE_CLASS(dev_class) \
110 .class = (dev_class), \
111 .vendor = SDIO_ANY_ID, .device = SDIO_ANY_ID
142 unsigned int addr,
int *err_ret);
144 unsigned int addr,
int *err_ret);
146 unsigned int addr,
int *err_ret);
149 unsigned int addr,
int *err_ret);
157 unsigned int addr,
int *err_ret);
159 unsigned int addr,
int *err_ret);