summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-06-16 02:06:47 -0400
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 20:31:43 +0200
commitb1538bcf75e2e11459947ec4d4329ed04fbe2b2c (patch)
treeb190714969b66b1ca0cef1d96cb0547d5e959d0d /include/linux/mmc
parentb726126196d54cbbba0924191e5c4dd5ba747fa2 (diff)
downloadlinux-b1538bcf75e2e11459947ec4d4329ed04fbe2b2c.tar.gz
linux-b1538bcf75e2e11459947ec4d4329ed04fbe2b2c.tar.bz2
linux-b1538bcf75e2e11459947ec4d4329ed04fbe2b2c.zip
sdio: link unknown CIS tuples to the sdio_func structure
This way those tuples that the core cares about are consumed by the core code, and tuples that only function drivers might make sense of are available to drivers. Signed-off-by: Nicolas Pitre <npitre@mvista.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/sdio_func.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h
index 4164809a8e63..269067663c8d 100644
--- a/include/linux/mmc/sdio_func.h
+++ b/include/linux/mmc/sdio_func.h
@@ -15,6 +15,16 @@
struct mmc_card;
/*
+ * SDIO function CIS tuple (unknown to the core)
+ */
+struct sdio_func_tuple {
+ struct sdio_func_tuple *next;
+ unsigned char code;
+ unsigned char size;
+ unsigned char data[0];
+};
+
+/*
* SDIO function devices
*/
struct sdio_func {
@@ -28,6 +38,8 @@ struct sdio_func {
unsigned int state; /* function state */
#define SDIO_STATE_PRESENT (1<<0) /* present in sysfs */
+
+ struct sdio_func_tuple *tuples;
};
#define sdio_func_present(f) ((f)->state & SDIO_STATE_PRESENT)