From owner-freebsd-alpha Tue Feb 6 17:41:57 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mobile.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 59C5137B401 for ; Tue, 6 Feb 2001 17:41:40 -0800 (PST) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f171bit53672; Tue, 6 Feb 2001 17:37:44 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200102070137.f171bit53672@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Andrew Gallatin Cc: =?ISO-8859-1?Q?G=E9rard_Roudier?= , freebsd-alpha@FreeBSD.ORG Subject: Re: bus_dmamap_load In-Reply-To: <14932.59983.360316.243974@grasshopper.cs.duke.edu> Content-Transfer-Encoding: 8bit Date: Tue, 06 Feb 2001 17:37:44 -0800 From: Peter Wemm Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andrew Gallatin wrote: > > Gérard Roudier writes: > > Btw, you missed the `de' driver that also performs bus_dmamap_load() on > > mbuf's as a possible candidate. > > > > Does it actually do this? I see all the code protected by: > > #if defined(TULIP_BUS_DMA) > > But I do not see TULIP_BUS_DMA defined anywhered. I think it was > inherited from NetBSD and the define was clobbered in > > rev 1.19 of if_devar.h: > Unifdef -U__NetBSD__ > > > See: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_devar.h.diff?r1=1.1 8&r2=1.19&f=h The code is still in the tree, but our bus_dma does not even remotely support the kind of thing that the NetBSD version has that the if_de driver uses. Our bus_dma is highly disk centric. The way the callbacks are set up makes it rather inconvenient to do things like bus_dmamap_load_mbuf() etc. I'd love somebody to fix it though. I have some de cards if somebody wants to implement it and tinker with it on a live system. It would probably require rewriting large chunks of code and/or pulling in parts of the NetBSD system now that they fixed the initial problems that caused Justin to diverge from the NetBSD original. There was lots of flamage over this at the time and I suspect it would not be hard to re-create it, so it would be best to keep discussions focused as we have quite a few NetBSD folk on this list. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message