PERFORCE change 101035 for review

Warner Losh imp at FreeBSD.org
Sat Jul 8 16:43:23 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=101035

Change 101035 by imp at imp_lighthouse on 2006/07/08 16:42:54

	Pass through spibus transfer requests.

Affected files ...

.. //depot/projects/arm/src/sys/dev/spibus/spibus.c#3 edit

Differences ...

==== //depot/projects/arm/src/sys/dev/spibus/spibus.c#3 (text+ko) ====

@@ -153,6 +153,12 @@
 	resource_int_value(dname, dunit, "cs", &devi->cs);
 }
 
+static int
+spibus_transfer_impl(device_t dev, device_t child, struct spi_command *cmd)
+{
+	return (SPIBUS_TRANSFER(dev, child, cmd));
+}
+
 static device_method_t spibus_methods[] = {
 	/* Device interface */
 	DEVMETHOD(device_probe,		spibus_probe),
@@ -172,6 +178,9 @@
 	DEVMETHOD(bus_child_location_str, spibus_child_location_str),
 	DEVMETHOD(bus_hinted_child,	spibus_hinted_child),
 
+	/* spibus interface */
+	DEVMETHOD(spibus_transfer,	spibus_transfer_impl),
+
 	{ 0, 0 }
 };
 


More information about the p4-projects mailing list