summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/mmc_private.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-01 13:52:35 -0600
committerSimon Glass <sjg@chromium.org>2016-05-17 09:54:43 -0600
commitc40fdca6b7db469d3982cc44fd68a269adb41b25 (patch)
treea95063f9ae5b62a66999fcfb00a90dbf8edd226a /drivers/mmc/mmc_private.h
parentcffe5d86cfe853ae9271d37522f8bc5795cc4c69 (diff)
downloadtalos-obmc-uboot-c40fdca6b7db469d3982cc44fd68a269adb41b25.tar.gz
talos-obmc-uboot-c40fdca6b7db469d3982cc44fd68a269adb41b25.zip
dm: mmc: Move the device list into a separate file
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model, which needs to maintain this itself. Move the list code into a separate 'legacy' file. The core MMC code remains, and will be shared with the driver-model implementation. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/mmc_private.h')
-rw-r--r--drivers/mmc/mmc_private.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/mmc/mmc_private.h b/drivers/mmc/mmc_private.h
index d3f6bfe123..6ec52fda05 100644
--- a/drivers/mmc/mmc_private.h
+++ b/drivers/mmc/mmc_private.h
@@ -46,4 +46,28 @@ static inline ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start,
#endif /* CONFIG_SPL_BUILD */
+/**
+ * mmc_get_next_devnum() - Get the next available MMC device number
+ *
+ * @return next available device number (0 = first), or -ve on error
+ */
+int mmc_get_next_devnum(void);
+
+/**
+ * mmc_do_preinit() - Get an MMC device ready for use
+ */
+void mmc_do_preinit(void);
+
+/**
+ * mmc_list_init() - Set up the list of MMC devices
+ */
+void mmc_list_init(void);
+
+/**
+ * mmc_list_add() - Add a new MMC device to the list of devices
+ *
+ * @mmc: Device to add
+ */
+void mmc_list_add(struct mmc *mmc);
+
#endif /* _MMC_PRIVATE_H_ */
OpenPOWER on IntegriCloud