Date: Thu, 4 Aug 2005 18:02:01 +0900 (JST) From: TAMURA Kent <kent@NetBSD.org> To: Yuka Muromachi <yuka.muromachi@gmail.com>, freebsd-multimedia@freebsd.org Subject: Re: How alloc non-cache type memory? Message-ID: <20050804090201.EE65E15EB07A@gabi-n.hauN.org> In-Reply-To: Yuka Muromachi's message of "Thu, 4 Aug 2005 16:21:18 %2B0800" <c5c27980050804012142dd7994@mail.gmail.com> References: <c5c27980050804003749c56a96@mail.gmail.com> <20050804080649.C23F915EB042@gabi-n.hauN.org> <c5c27980050804011756d8e8d9@mail.gmail.com> <c5c27980050804012142dd7994@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kent_2005 at hauN.org> <kent at NetBSD.org> --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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050804090201.EE65E15EB07A>