From owner-freebsd-hackers Tue Jul 20 12:10:32 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (Postfix) with ESMTP id 2BC2E15387 for ; Tue, 20 Jul 1999 12:10:23 -0700 (PDT) (envelope-from wilko@yedi.iaf.nl) Received: from yedi.iaf.nl (uucp@localhost) by uni4nn.gn.iaf.nl (8.9.2/8.9.2) with UUCP id VAA05171 for FreeBSD-hackers@freebsd.org; Tue, 20 Jul 1999 21:04:32 +0200 (MET DST) Received: (from wilko@localhost) by yedi.iaf.nl (8.9.3/8.9.3) id VAA03203 for FreeBSD-hackers@freebsd.org; Tue, 20 Jul 1999 21:04:35 +0200 (CEST) (envelope-from wilko) From: Wilko Bulte Message-Id: <199907201904.VAA03203@yedi.iaf.nl> Subject: any docs on how to use bus_dma_tag_create e.a. ? To: FreeBSD-hackers@freebsd.org (FreeBSD hackers list) Date: Tue, 20 Jul 1999 21:04:35 +0200 (CEST) X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-pgp-info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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