From owner-p4-projects@FreeBSD.ORG Sat Jul 8 16:43:23 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1EEDE16A55B; Sat, 8 Jul 2006 16:43:23 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7F2B16A4E2 for ; Sat, 8 Jul 2006 16:43:22 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94ED943D49 for ; Sat, 8 Jul 2006 16:43:22 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k68GhM65059779 for ; Sat, 8 Jul 2006 16:43:22 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k68GhMmG059776 for perforce@freebsd.org; Sat, 8 Jul 2006 16:43:22 GMT (envelope-from imp@freebsd.org) Date: Sat, 8 Jul 2006 16:43:22 GMT Message-Id: <200607081643.k68GhMmG059776@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 101035 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jul 2006 16:43:23 -0000 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 } };