Re: IOMemoryDescriptor / prepare selectively wireing only parts of it
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207) We have to do a DMA transfer with that buffer. Use an IOSubMemoryDescriptor. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... devmaillists wrote: we currently trying to catch the problem that we get an arbitrary sized buffer supplied from userspace. The user land interface is fixed, so we have to work with what we get. We have to use IODMACommand to ensure 64 Bit compatibility. To get the segments from the IODMACommand we have to prepare the whole memory descriptor. It appears our pci device preferres page sized chunks of wich we can send 64 in one transfer. So we like prepare only these 64 pages for each transfer. I know references to linux source are somewhat shunned, but pci_map_page does this exactly. We want to avoid to prepare the entire memory range, because wireing down 200mb seams not to be a good idea. This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith