diff options
author | Nicolas Pitre <nico@cam.org> | 2007-06-16 02:06:47 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-09-23 14:31:43 -0400 |
commit | b1538bcf75e2e11459947ec4d4329ed04fbe2b2c (patch) | |
tree | b190714969b66b1ca0cef1d96cb0547d5e959d0d /include/linux/mmc | |
parent | b726126196d54cbbba0924191e5c4dd5ba747fa2 (diff) |
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.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 4164809a8e63..269067663c8d 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h | |||
@@ -15,6 +15,16 @@ | |||
15 | struct mmc_card; | 15 | struct mmc_card; |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * SDIO function CIS tuple (unknown to the core) | ||
19 | */ | ||
20 | struct sdio_func_tuple { | ||
21 | struct sdio_func_tuple *next; | ||
22 | unsigned char code; | ||
23 | unsigned char size; | ||
24 | unsigned char data[0]; | ||
25 | }; | ||
26 | |||
27 | /* | ||
18 | * SDIO function devices | 28 | * SDIO function devices |
19 | */ | 29 | */ |
20 | struct sdio_func { | 30 | struct sdio_func { |
@@ -28,6 +38,8 @@ struct sdio_func { | |||
28 | 38 | ||
29 | unsigned int state; /* function state */ | 39 | unsigned int state; /* function state */ |
30 | #define SDIO_STATE_PRESENT (1<<0) /* present in sysfs */ | 40 | #define SDIO_STATE_PRESENT (1<<0) /* present in sysfs */ |
41 | |||
42 | struct sdio_func_tuple *tuples; | ||
31 | }; | 43 | }; |
32 | 44 | ||
33 | #define sdio_func_present(f) ((f)->state & SDIO_STATE_PRESENT) | 45 | #define sdio_func_present(f) ((f)->state & SDIO_STATE_PRESENT) |