PERFORCE change 106700 for review
Warner Losh
imp at FreeBSD.org
Mon Sep 25 20:32:24 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=106700
Change 106700 by imp at imp_lighthouse on 2006/09/26 03:32:20
Compile
Affected files ...
.. //depot/projects/arm/src/sys/dev/mmc/mmc.c#4 edit
Differences ...
==== //depot/projects/arm/src/sys/dev/mmc/mmc.c#4 (text+ko) ====
@@ -93,6 +93,16 @@
return (EBUSY); /* XXX */
}
+static void
+mmc_acquire_bus(struct mmc_softc *sc)
+{
+}
+
+static void
+mmc_release_bus(struct mmc_softc *sc)
+{
+}
+
static int
mmcbr_update_ios(device_t dev)
{
@@ -105,6 +115,42 @@
/* XXX: Look at the children and see if they respond to status */
}
+static uint32_t
+mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr)
+{
+}
+
+static int
+mmc_highest_voltage(uint32_t ocr)
+{
+ int i;
+
+ for (i = 30; i >= 0; i--)
+ if (ocr & (1 << i))
+ return i;
+ return (-1);
+}
+
+static void
+mmc_idle_cards(struct mmc_softc *sc)
+{
+ // XXX write me
+}
+
+static int
+mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t rca, uint32_t *ocr)
+{
+ // XXX write me
+ return EIO;
+}
+
+static int
+mmc_send_op_cond(struct mmc_softc *sc, uint32_t rca, uint32_t *ocr)
+{
+ // XXX write me
+ return EIO;
+}
+
static void
mmc_power_up(struct mmc_softc *sc)
{
@@ -129,6 +175,21 @@
}
static void
+mmc_discover_cards(struct mmc_softc *sc)
+{
+}
+
+static void
+mmc_read_csds(struct mmc_softc *sc)
+{
+}
+
+static void
+mmc_read_scrs(struct mmc_softc *sc)
+{
+}
+
+static void
mmc_go_discovery(struct mmc_softc *sc)
{
uint32_t ocr;
@@ -171,13 +232,20 @@
mmc_read_scrs(sc);
}
+static int
+mmc_calculate_clock(struct mmc_softc *sc)
+{
+ // XXX write me
+ return 0;
+}
+
static void
mmc_scan(struct mmc_softc *sc)
{
device_t dev;
dev = sc->dev;
- mmc_aquire_bus(sc);
+ mmc_acquire_bus(sc);
if (mmcbr_get_power_mode(dev) == power_on)
mmc_rescan_cards(sc);
More information about the p4-projects
mailing list