Solved

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

Posted on 1997-04-13
1
495 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ standard library based binary archive format 6 104
Dynamically allocate memory 9 62
Path to  STL Map header file 1 69
Finding Divisors 5 16
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

856 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