Article View: comp.windows.ms.programmer
Article #338Windows, DMA and VDS
From: Norbert Unterberg
Date: Sun, 12 Apr 1992 10:44
Date: Sun, 12 Apr 1992 10:44
34 lines
1739 bytes
1739 bytes
Hi out there on the net, I am working on a project where I must read data from a pc board using DMA transfers. This piece of software is supposed to run under windows 3.x. So my question is: What is the best way to do DMA transfers under windows? I have got the "Virtual DMA Specification" (VDS) from Microsoft. But reading this leaves two possible methods to me: 1. Ignoring the VDS software interface and programming the DMA controller directly using the linear address of the DMA buffer (i.e. as returned by GetSelectorBase). The DMA translation service of the virtual machine or the VDMAD will to the translations (linear -> physical address conversion, locking etc.) for me. 2. Disabling the DMA translation, getting the physical address by using the appropriate VDS function calls, and programming the DMA controller woth these values. What is the best way? Did Microsoft ever suppose a "prefered" way of doing DMA transfers? Thanks in advance! Norbert --- SoftStream Development Phone: ++49-2335-6 17 86 Obermarkstr. 72 Fax: ++49-231-48 85 98 4600 Dortmund 30 Internet: Norbert_Unterberg@softstream.fido.de Germany Fidonet: Norbert Unterberg at 2:245/36.4
Technical Details
Message-ID:
<15e0319b@p4.f36.n245.z2.fidonet.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!Sirius.dfn.de!urmel!slcdec!sungate.fido.de!p1.hippo.fido.de!softstream.fido.de!Norbert_UnterbergShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!Sirius.dfn.de!urmel!slcdec!sungate.fido.de!p1.hippo.fido.de!softstream.fido.de!Norbert_Unterberg Date: Sun, 12 Apr 92 12:44:06 +0200 From: Norbert_Unterberg@softstream.fido.de (Norbert Unterberg) Subject: Windows, DMA and VDS Message-ID: <15e0319b@p4.f36.n245.z2.fidonet.org> Newsgroups: comp.windows.ms.programmer Organization: Softstream Development, Dortmund (Germany) Lines: 37