Date: Tue, 20 Jul 1999 21:04:35 +0200 (CEST) From: Wilko Bulte <wilko@yedi.iaf.nl> To: FreeBSD-hackers@freebsd.org (FreeBSD hackers list) Subject: any docs on how to use bus_dma_tag_create e.a. ? Message-ID: <199907201904.VAA03203@yedi.iaf.nl>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907201904.VAA03203>