From owner-freebsd-hackers Tue Jul 20 13:11:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by hub.freebsd.org (Postfix) with ESMTP id 0230A151AD for ; Tue, 20 Jul 1999 13:11:28 -0700 (PDT) (envelope-from gibbs@narnia.plutotech.com) Received: (from gibbs@localhost) by narnia.plutotech.com (8.9.3/8.7.3) id NAA07710; Tue, 20 Jul 1999 13:58:54 -0600 (MDT) Date: Tue, 20 Jul 1999 13:58:54 -0600 (MDT) From: "Justin T. Gibbs" Message-Id: <199907201958.NAA07710@narnia.plutotech.com> To: Wilko Bulte Cc: hackers@FreeBSD.org Subject: Re: any docs on how to use bus_dma_tag_create e.a. ? X-Newsgroups: pluto.freebsd.hackers In-Reply-To: <199907201904.VAA03203@yedi.iaf.nl> User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (FreeBSD/4.0-CURRENT (i386)) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199907201904.VAA03203@yedi.iaf.nl> you wrote: > 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. bus_dma related stuff is only required if the device has a DMA engine you wish to use. To access the shared memory on the card (e.g. map it into the kernel's virtual address space), you will need to use the resource manager and bus space. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message