summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/sdio_func.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2007-05-27 12:00:02 +0200
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 19:55:26 +0200
commitf76c85154d320497bf1a939a98d6c432edcbd4a9 (patch)
treee0da7140f0aa3d50f501aca6a1439ebe1c973e9d /include/linux/mmc/sdio_func.h
parente29a7d73f4277eb92aa64e17017dea33460828ef (diff)
mmc: add SDIO driver handling
Add basic driver handling to the SDIO device model. 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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h
index 50c78db420e..13a1a9ca4b6 100644
--- a/include/linux/mmc/sdio_func.h
+++ b/include/linux/mmc/sdio_func.h
@@ -31,5 +31,23 @@ struct sdio_func {
#define sdio_func_id(f) ((f)->dev.bus_id)
+#define sdio_get_drvdata(f) dev_get_drvdata(&(f)->dev)
+#define sdio_set_drvdata(f,d) dev_set_drvdata(&(f)->dev, d)
+
+/*
+ * SDIO function device driver
+ */
+struct sdio_driver {
+ char *name;
+
+ int (*probe)(struct sdio_func *);
+ void (*remove)(struct sdio_func *);
+
+ struct device_driver drv;
+};
+
+extern int sdio_register_driver(struct sdio_driver *);
+extern void sdio_unregister_driver(struct sdio_driver *);
+
#endif