diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-19 13:39:01 +0200 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-07-09 21:27:56 +0200 |
commit | 4101c16a910b15afd190c6bc7d45864461cf5c25 (patch) | |
tree | 76d88e3bfd6723fc86c13c635b3c2b73c73c6978 /drivers/mmc/core/bus.h | |
parent | 7de064ebc67d9baf6c933d3a7046feb9b4eced05 (diff) | |
download | kernel_samsung_aries-4101c16a910b15afd190c6bc7d45864461cf5c25.zip kernel_samsung_aries-4101c16a910b15afd190c6bc7d45864461cf5c25.tar.gz kernel_samsung_aries-4101c16a910b15afd190c6bc7d45864461cf5c25.tar.bz2 |
mmc: refactor bus operations
Move bus operations to its own file for the sake of clarity. Also
delegate sysfs attributes to bus handlers in preparation for other
more exotic types.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/core/bus.h')
-rw-r--r-- | drivers/mmc/core/bus.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/mmc/core/bus.h b/drivers/mmc/core/bus.h new file mode 100644 index 0000000..4f35431 --- /dev/null +++ b/drivers/mmc/core/bus.h @@ -0,0 +1,22 @@ +/* + * linux/drivers/mmc/core/bus.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_BUS_H +#define _MMC_CORE_BUS_H + +struct mmc_card *mmc_alloc_card(struct mmc_host *host); +int mmc_add_card(struct mmc_card *card); +void mmc_remove_card(struct mmc_card *card); + +int mmc_register_bus(void); +void mmc_unregister_bus(void); + +#endif + |