From owner-p4-projects@FreeBSD.ORG Sat Jun 5 12:17:51 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 95E9C16A4D0; Sat, 5 Jun 2004 12:17:51 -0700 (PDT) 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 6FFE316A4CE for ; Sat, 5 Jun 2004 12:17:51 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6998243D4C for ; Sat, 5 Jun 2004 12:17:51 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i55JHhIe084860 for ; Sat, 5 Jun 2004 19:17:43 GMT (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i55JHhPj084857 for perforce@freebsd.org; Sat, 5 Jun 2004 19:17:43 GMT (envelope-from scottl@freebsd.org) Date: Sat, 5 Jun 2004 19:17:43 GMT Message-Id: <200406051917.i55JHhPj084857@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to scottl@freebsd.org using -f From: Scott Long To: Perforce Change Reviews Subject: PERFORCE change 54235 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 19:17:52 -0000 http://perforce.freebsd.org/chv.cgi?CH=54235 Change 54235 by scottl@scottl-esp-sparc64 on 2004/06/05 19:17:16 Create a parent DMA tag for the lsi64854 attachment. These are mostly all dummy values. busdma should really learn about newbus and be able to pass bus/parent contraints through it via an inherited parent tag. Affected files ... .. //depot/projects/scottl-esp/src/sys/dev/esp/esp_sbus.c#10 edit Differences ... ==== //depot/projects/scottl-esp/src/sys/dev/esp/esp_sbus.c#10 (text+ko) ==== @@ -199,6 +199,22 @@ lsc->sc_regt = rman_get_bustag(lsc->sc_res); lsc->sc_regh = rman_get_bushandle(lsc->sc_res); + /* Create a parent DMA tag based on this bus */ + if (bus_dma_tag_create(NULL, /* parent */ + PAGE_SIZE, 0, /* algnmnt, boundary */ + BUS_SPACE_MAXADDR, /* lowaddr */ + BUS_SPACE_MAXADDR, /* highaddr */ + NULL, NULL, /* filter, filterarg */ + BUS_SPACE_MAXSIZE_32BIT,/* maxsize */ + 0, /* nsegments */ + BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */ + 0, /* flags */ + NULL, NULL, /* No locking */ + &lsc->sc_parent_dmat)) { + device_printf(dev, "cannot allocate parent DMA tag\n"); + free(lsc, M_DEVBUF); + return (ENOMEM); + } burst = sbus_get_burstsz(dev); #if ESP_SBUS_DEBUG