PERFORCE change 106756 for review
Warner Losh
imp at FreeBSD.org
Tue Sep 26 21:12:06 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=106756
Change 106756 by imp at imp_lighthouse on 2006/09/27 04:11:39
stub-out mmcbr methods.a
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/at91_mci.c#5 edit
.. //depot/projects/arm/src/sys/dev/mmc/mmcbr_if.m#5 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/at91_mci.c#5 (text+ko) ====
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2006 Berndt Walter. All rights reserved.
+ * Copyright (c) 2006 Bernd Walter. All rights reserved.
* Copyright (c) 2006 M. Warner Losh. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -56,6 +56,8 @@
#include <dev/mmc/bridge.h>
#include <dev/mmc/mmcreg.h>
+#include "mmcbr_if.h"
+
struct at91_mci_softc {
void *intrhand; /* Interrupt handle */
device_t dev;
@@ -242,10 +244,49 @@
}
#endif
+static int
+at91_update_ios(device_t brdev, device_t reqdev)
+{
+ return (EIO); // XXX
+}
+
+static int
+at91_request(device_t brdev, device_t reqdev, struct mmc_request *req)
+{
+ return (EIO); // XXX
+}
+
+static int
+at91_get_ro(device_t brdev, device_t reqdev)
+{
+ return (-1);
+}
+
+static int
+at91_acquire_host(device_t brdev, device_t reqdev)
+{
+ return (EIO); // XXX
+}
+
+static int
+at91_release_host(device_t brdev, device_t reqdev)
+{
+ return (EIO); // XXX
+}
+
static device_method_t at91_mci_methods[] = {
+ /* device_if */
DEVMETHOD(device_probe, at91_mci_probe),
DEVMETHOD(device_attach, at91_mci_attach),
DEVMETHOD(device_detach, at91_mci_detach),
+
+ /* mmcbr_if */
+ DEVMETHOD(mmcbr_update_ios, at91_update_ios),
+ DEVMETHOD(mmcbr_request, at91_request),
+ DEVMETHOD(mmcbr_get_ro, at91_get_ro),
+ DEVMETHOD(mmcbr_acquire_host, at91_acquire_host),
+ DEVMETHOD(mmcbr_release_host, at91_release_host),
+
{0, 0},
};
==== //depot/projects/arm/src/sys/dev/mmc/mmcbr_if.m#5 (text+ko) ====
@@ -70,7 +70,7 @@
# Claim the current bridge, blocking the current thread until the host
# is no longer busy.
#
-METHOD int aquire_host {
+METHOD int acquire_host {
device_t brdev;
device_t reqdev;
}
More information about the p4-projects
mailing list