aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mmc/mmcsd.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2012-06-02 20:47:00 +0000
committerMarius Strobl <marius@FreeBSD.org>2012-06-02 20:47:00 +0000
commitae5d8757bf0d61914f8bd0f498e2a4538e224d53 (patch)
tree109d5e186a27c7feeed668500e94f65960fc026a /sys/dev/mmc/mmcsd.c
parentf3a4392048c7663d7346512e9b2a41f903ba0794 (diff)
downloadsrc-ae5d8757bf0d61914f8bd0f498e2a4538e224d53.tar.gz
src-ae5d8757bf0d61914f8bd0f498e2a4538e224d53.zip
Add missing prototypes. While at it, sort them alphabetically.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=236491
Diffstat (limited to 'sys/dev/mmc/mmcsd.c')
-rw-r--r--sys/dev/mmc/mmcsd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/mmc/mmcsd.c b/sys/dev/mmc/mmcsd.c
index c3b66db668f7..cdba4a9a56a0 100644
--- a/sys/dev/mmc/mmcsd.c
+++ b/sys/dev/mmc/mmcsd.c
@@ -89,19 +89,21 @@ struct mmcsd_softc {
};
/* bus entry points */
-static int mmcsd_probe(device_t dev);
static int mmcsd_attach(device_t dev);
static int mmcsd_detach(device_t dev);
+static int mmcsd_probe(device_t dev);
/* disk routines */
-static int mmcsd_open(struct disk *dp);
static int mmcsd_close(struct disk *dp);
-static void mmcsd_strategy(struct bio *bp);
static int mmcsd_dump(void *arg, void *virtual, vm_offset_t physical,
off_t offset, size_t length);
+static int mmcsd_open(struct disk *dp);
+static void mmcsd_strategy(struct bio *bp);
static void mmcsd_task(void *arg);
static int mmcsd_bus_bit_width(device_t dev);
+static daddr_t mmcsd_delete(struct mmcsd_softc *sc, struct bio *bp);
+static daddr_t mmcsd_rw(struct mmcsd_softc *sc, struct bio *bp);
#define MMCSD_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
#define MMCSD_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
@@ -256,12 +258,14 @@ mmcsd_resume(device_t dev)
static int
mmcsd_open(struct disk *dp)
{
+
return (0);
}
static int
mmcsd_close(struct disk *dp)
{
+
return (0);
}
@@ -521,6 +525,7 @@ out:
static int
mmcsd_bus_bit_width(device_t dev)
{
+
if (mmc_get_bus_width(dev) == bus_width_1)
return (1);
if (mmc_get_bus_width(dev) == bus_width_4)