?
Solved

ISA drivers...

Posted on 1998-09-23
1
Medium Priority
?
228 Views
Last Modified: 2012-08-13
Hi everyone... a bit of an arb question now... I am writing an application to access an ISA card. I am using the instructions inp and outp  to access address 0x300 but those only work for win95. As I understand it, those instructions just read the card which sounds straight forward. Now for the arb question... if I want to use winNT or some strange platform that requires a driver, I must rewrite some code. In spite of looking like a fool now, I must ask what is a driver in laymans terms? What does it do that is so special and different from inp and outp? More importantly how does it do it and how does it work? How would my program read what the driver retrieves? And the next step is what are the steps I should follow to write my own driver. Stop laughing ;-) Thanks for any clues...
0
Comment
Question by:rose3377
1 Comment
 
LVL 4

Accepted Solution

by:
agreen earned 210 total points
ID: 1173502
>>...but those only work for win95
To enable the I/O access under Windows NT use the GIVEIO.SYS driver by Dale Roberts (http://http://www.ddj.com/ftp/1996/1996.05/directio.zip).

Also you can use the NTIOSUPP.DLL (by Andy Green) that allows you to load and start the GIVEIO.SYS by simple function call.
(http://www.warmcat.com/ntiosupp.zip).

>>And the next step is what are the steps I should follow to >>write my own driver
This isn't a right place for the "Introduction to driver development" course :) So what you need to do is:
1) Get the Win95 and WinNT DDKs from Microsoft
2) Read the Help
3) Compile the simplest samples ("SIMPLE" in the WinNT DDK)

Also I can suggest you to read the Art Baker's "The Windows NT Device Driver Book" and the Walter Oney's "Systems Programming for Windows 95"

>>How would my program read what the driver retrieves?
There are few ways the driver can communicate with the user mode application IOCTL, APC etc.
0

Featured Post

Industry Leaders: 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

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…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.
Suggested Courses

749 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