summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sdmmc-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-05-29 20:21:26 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-05-29 20:21:26 +0100
commit6d124c738b15492ab77b9f1eca6b0b8d6a9b6d5a (patch)
treef9f32e1084b19bc46257915e610afdb6cc314ad8 /firmware/target/arm/imx233/sdmmc-imx233.h
parent633c8edf47dcfcdd258ab522452c8fcb84238a6a (diff)
downloadrockbox-6d124c738b15492ab77b9f1eca6b0b8d6a9b6d5a.tar.gz
rockbox-6d124c738b15492ab77b9f1eca6b0b8d6a9b6d5a.tar.bz2
rockbox-6d124c738b15492ab77b9f1eca6b0b8d6a9b6d5a.zip
Fix red, forgotten file
Change-Id: Ia9c1e924c84772205472289494c62a63a3433727
Diffstat (limited to 'firmware/target/arm/imx233/sdmmc-imx233.h')
-rw-r--r--firmware/target/arm/imx233/sdmmc-imx233.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.h b/firmware/target/arm/imx233/sdmmc-imx233.h
new file mode 100644
index 0000000000..d5c2bccd84
--- /dev/null
+++ b/firmware/target/arm/imx233/sdmmc-imx233.h
@@ -0,0 +1,48 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2016 by Amaury Pouly
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#ifndef __SDMMC_IMX233_H__
+#define __SDMMC_IMX233_H__
+
+#include "system.h"
+
+/** Information about SD/MMC slot */
+struct sdmmc_info_t
+{
+ int drive; /* drive number (for queries like storage_removable(drive) */
+ const char *slot_name; /* name of the slot: 'internal' or 'microsd' */
+ bool window; /* is window enabled for this slot? */
+ int bus_width; /* current bus width */
+ bool hs_capable; /* is device high-speed capable? */
+ bool hs_enabled; /* is high-speed enabled? */
+ bool has_sbc; /* device support SET_BLOCK_COUNT */
+};
+
+#if CONFIG_STORAGE & STORAGE_SD
+/* return information about a particular sd device (index=0..n-1) */
+struct sdmmc_info_t imx233_sd_get_info(int card_no);
+#endif
+
+#if CONFIG_STORAGE & STORAGE_MMC
+/* return information about a particular mmc device (index=0..n-1) */
+struct sdmmc_info_t imx233_mmc_get_info(int card_no);
+#endif
+
+#endif /* __SSP_IMX233_H__ */