From owner-freebsd-multimedia@FreeBSD.ORG Thu Aug 4 09:02:04 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A7EB16A41F for ; Thu, 4 Aug 2005 09:02:04 +0000 (GMT) (envelope-from kent_2005@hauN.org) Received: from gabi-n.hauN.org (gate.haun.org [218.45.21.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64FD043D46 for ; Thu, 4 Aug 2005 09:02:03 +0000 (GMT) (envelope-from kent_2005@hauN.org) Received: from gabi-n.hauN.org (gate.haun.org [218.45.21.71]) by gabi-n.hauN.org (Postfix) with ESMTP id EE65E15EB07A; Thu, 4 Aug 2005 18:02:01 +0900 (JST) X-Mailer: cmail 2.61 on GNU Emacs 21.4.1 / Mule 5.0 (SAKAKI) References: <20050804080649.C23F915EB042@gabi-n.hauN.org> From: TAMURA Kent To: Yuka Muromachi , freebsd-multimedia@freebsd.org In-reply-to: Yuka Muromachi's message of "Thu, 4 Aug 2005 16:21:18 +0800" User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.4 (i386--netbsdelf) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Thu_Aug__4_18:01:58_2005-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Message-Id: <20050804090201.EE65E15EB07A@gabi-n.hauN.org> Date: Thu, 4 Aug 2005 18:02:01 +0900 (JST) Cc: Subject: Re: How alloc non-cache type memory? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 09:02:04 -0000 --pgp-sign-Multipart_Thu_Aug__4_18:01:58_2005-1 Content-Type: text/plain; charset=US-ASCII > > > > Is there any way to allocate Non-Cached type physical memory for dma > > > > transfer in FreeBSD? > > > BUS_DMA_NOCACHE flag for bus_dmamem_alloc(9) may perform it > > > though FreeBSD/i386 does not support it. > I'm sorry. I found BUS_DMA_NOCACHE flag in src/sys/sys/bus_dma.h, > But it not implement in i386. It only used in sparc64/iommu.c Right. So you need to implement it in sys/i386/i386/busdma_machdep.c, or call pmap functions directly in your driver. -- TAMURA Kent --pgp-sign-Multipart_Thu_Aug__4_18:01:58_2005-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (NetBSD) iQEVAwUAQvHZiX7t9398iwLqAQLHSAf/b1gpLsO3zVcHCrsIrHVuuBn4xheMbaLj rdYy5igTY2K/Tgpyyn0Cfj5E9vatq2m9rmoL7iAf2KBM0UrX6+msOxj9QsDc+U8m SVH56Vwx0hAN5Fsyf7FntcGMuBF/7Oe1FJHTf/TBQL+M2QRxL2to9jv+kcxbtrdZ ne2seCmK0zH6yB4yw9HMRyIU9DriW9ifV5/XE/KW2ltjwKes91xryCd3YsvRvNhe hA3XRS991LwqYr32JQkvcgdrGGvuYAcPau0Cya9sM3h41flt25+BI4q1hHw7B+md eM0637HrjjlinwiBYOJBhivx9NL5Pv19Q1f3Wgmb4ghQN/KAnlFwHQ== =o/YT -----END PGP SIGNATURE----- --pgp-sign-Multipart_Thu_Aug__4_18:01:58_2005-1--