I'm currently trying to hack a driver together for a PCI card that uses
shared memory to communicate to the host.
If I'm not completely offtrack I need to use (under newbus/-current)
bus_dma_tag_create, bus_dma_alloc etc to get access to the cards shared
memory.
I'm looking for more detailed info on the parameters these functions
take. Or (I'm dreaming I guess....) a sort of architectural overview of how
newbus is put together.
At the moment I have:
/* map shared memory of FireFly */
error = bus_dma_tag_create(NULL /*parent*/,
0 /*alignm*/,
0 /*boundary*/,
BUS_SPACE_MAXADDR_32BIT /*lowaddr*/,
BUS_SPACE_MAXADDR /*hiaddr*/,
NULL, /*filter*/,
NULL, /*filterarg*/,
MAXBSIZE /*maxsize*/,
1 /*XXX*/ /*nsegments*/,
4096 /*XXX*/ /*maxsegsz*/,
BUS_DMA_ALLOCNOW /*XXX*/ /*flags*/,
&dma_tag);
but I sincerely doubt at least part of the values..
TIA,
--
| / o / / _ Arnhem, The Netherlands - Powered by FreeBSD -
|/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message