diff options
Diffstat (limited to 'drivers/mmc/core/core.h')
-rw-r--r-- | drivers/mmc/core/core.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/drivers/mmc/core/core.h b/drivers/mmc/core/core.h index 076cb2f49a0..1c1066342fb 100644 --- a/drivers/mmc/core/core.h +++ b/drivers/mmc/core/core.h | |||
@@ -2,24 +2,30 @@ | |||
2 | * linux/drivers/mmc/core/core.h | 2 | * linux/drivers/mmc/core/core.h |
3 | * | 3 | * |
4 | * Copyright (C) 2003 Russell King, All Rights Reserved. | 4 | * Copyright (C) 2003 Russell King, All Rights Reserved. |
5 | * Copyright 2007 Pierre Ossman | ||
5 | * | 6 | * |
6 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 as | 8 | * it under the terms of the GNU General Public License version 2 as |
8 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
9 | */ | 10 | */ |
10 | #ifndef _MMC_CORE_H | 11 | #ifndef _MMC_CORE_CORE_H |
11 | #define _MMC_CORE_H | 12 | #define _MMC_CORE_CORE_H |
12 | /* core-internal functions */ | ||
13 | void mmc_init_card(struct mmc_card *card, struct mmc_host *host); | ||
14 | int mmc_register_card(struct mmc_card *card); | ||
15 | void mmc_remove_card(struct mmc_card *card); | ||
16 | 13 | ||
17 | struct mmc_host *mmc_alloc_host_sysfs(int extra, struct device *dev); | 14 | #include <linux/delay.h> |
18 | int mmc_add_host_sysfs(struct mmc_host *host); | 15 | |
19 | void mmc_remove_host_sysfs(struct mmc_host *host); | 16 | #define MMC_CMD_RETRIES 3 |
20 | void mmc_free_host_sysfs(struct mmc_host *host); | 17 | |
18 | void mmc_set_chip_select(struct mmc_host *host, int mode); | ||
19 | |||
20 | static inline void mmc_delay(unsigned int ms) | ||
21 | { | ||
22 | if (ms < 1000 / HZ) { | ||
23 | cond_resched(); | ||
24 | mdelay(ms); | ||
25 | } else { | ||
26 | msleep(ms); | ||
27 | } | ||
28 | } | ||
21 | 29 | ||
22 | int mmc_schedule_work(struct work_struct *work); | ||
23 | int mmc_schedule_delayed_work(struct delayed_work *work, unsigned long delay); | ||
24 | void mmc_flush_scheduled_work(void); | ||
25 | #endif | 30 | #endif |
31 | |||