diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2006-12-24 22:46:55 +0100 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-01 13:04:18 +0200 |
commit | da7fbe58d2d347e95af699ddf04d885be6362bbe (patch) | |
tree | 560df47c41bb64ace46f82f9fa5e2fabc8bafbab /drivers/mmc/core/sysfs.h | |
parent | aaac1b470bd0dccb30912356617069dc6199cc80 (diff) | |
download | blackbird-op-linux-da7fbe58d2d347e95af699ddf04d885be6362bbe.tar.gz blackbird-op-linux-da7fbe58d2d347e95af699ddf04d885be6362bbe.zip |
mmc: Separate out protocol ops
Move protocol operations and definitions into their own files
in an effort to separate protocol handling and bus
arbitration more clearly.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/core/sysfs.h')
-rw-r--r-- | drivers/mmc/core/sysfs.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/mmc/core/sysfs.h b/drivers/mmc/core/sysfs.h new file mode 100644 index 000000000000..80e29b358282 --- /dev/null +++ b/drivers/mmc/core/sysfs.h @@ -0,0 +1,27 @@ +/* + * linux/drivers/mmc/core/sysfs.h + * + * Copyright (C) 2003 Russell King, All Rights Reserved. + * Copyright 2007 Pierre Ossman + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef _MMC_CORE_SYSFS_H +#define _MMC_CORE_SYSFS_H + +void mmc_init_card(struct mmc_card *card, struct mmc_host *host); +int mmc_register_card(struct mmc_card *card); +void mmc_remove_card(struct mmc_card *card); + +struct mmc_host *mmc_alloc_host_sysfs(int extra, struct device *dev); +int mmc_add_host_sysfs(struct mmc_host *host); +void mmc_remove_host_sysfs(struct mmc_host *host); +void mmc_free_host_sysfs(struct mmc_host *host); + +int mmc_schedule_work(struct work_struct *work); +int mmc_schedule_delayed_work(struct delayed_work *work, unsigned long delay); +void mmc_flush_scheduled_work(void); + +#endif |