diff options
Diffstat (limited to 'include/linux/mmc/sdio_func.h')
-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) |