Solved

Programming DMA transfer in Visual C++ 4.2 (Windows 95)

Posted on 1997-04-13
1
497 Views
Last Modified: 2008-03-10
How do I initialize the DMA controller with physical address while in Visual C++ 4.2, we're dealing with virtual addresses?
0
Comment
Question by:industx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1162695
You cannot access the physical devices directly with Win32 SDK since it is device independent. However, you can use the device IOCTL interface in an application to carry out "low-level" operations that are not supported by the Win32 API and that require direct communication with a VxD. Windows 95 implements the interface through the DeviceIoControl function, which sends commands and accompanying data directly to the given VxD. But you must have a VxD that controls the DMA. Please see Visual C++ 4.2 documentations for more information:
SDKs/Win32 SDK/Programming Guides and Tools/Programmer's Guide to Windows 95/Using Windows 95 features/Device I/O Control.
If you would like to program the DMA controller directly, what you need is Windows 95 DDK (Device Driver Kit) that is used to develop all kinds of device drivers.


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question