Date: Sat, 8 Jul 2006 16:43:22 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 101035 for review Message-ID: <200607081643.k68GhMmG059776@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101035 Change 101035 by imp@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 } };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607081643.k68GhMmG059776>