Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Feb 2001 17:37:44 -0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        =?ISO-8859-1?Q?G=E9rard_Roudier?= <groudier@club-internet.fr>, freebsd-alpha@FreeBSD.ORG
Subject:   Re: bus_dmamap_load 
Message-ID:  <200102070137.f171bit53672@mobile.wemm.org>
In-Reply-To: <14932.59983.360316.243974@grasshopper.cs.duke.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102070137.f171bit53672>