Link to home
Start Free TrialLog in
Avatar of babs02_99
babs02_99

asked on

device drivers

general methodology adopted for writing device drivers
Avatar of donnerjack
donnerjack

Do you need it for win95/98 or NT?
The best way to do it is to take a software that builds most of it and let you fill a function or two with your code. try WinDriver products
http://www.windriver.com/
or
http://www.jungo.com/
You earn the Vaguest Question Award!

Device drivers for what?
What operating system?
What target machine?
What compiler(s) do you have?
babs02_99.  You cannot keep asking this vague questions and then rejected answers.   The reason the answers are not what you want is that no one can tell exactly what you are asking about.  The problem is in your questions questions, not in the answers.
If you want a device drivers for unix document contact me at benito_orozco@hotmail.com
Avatar of babs02_99

ASKER

am sorry for the fact that my qu turned out to b the vaguest!
but ,what i want to know is the general procedure to b adopted,irrespective of the operating system,so that depending on the situation, i'l b able to write a device driver.

ASKER CERTIFIED SOLUTION
Avatar of orozco
orozco

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Device drivers under other OSs are TOTALLY different.  Some OSs don't have device drivers (formally).  Mac device drivers are very different than windows ones.  There is almost nothing that can be said about them in general.
for(each operating system)
{
   find out as much as you can about the hardware.  

   find out as much as you can about the low level operating system.

   write the driver.

   write the highlevel api to interact with driver.
}

i wanted to know the knowledge which is required to write a device driver,similar to the answer proposed by
mdarling
That is more of a joke than an answer.  (I mean an intentional joke, not a "joke of an answer".)

Its like asking "How do you build a vehicle"?   Well even the most general instructions on how to build a car are going to be useless to you when you build a submarine, or an airplane, or a rocket.

That is the type of question you are asking.  

You might say that the only thing in common for device drivers between two OSes is the name "device driver".  But actually even that is not true.  

Look at the accepted answer.  It is so general that it is undoubtedly useless to you.  Yet it is still incorrect for every OS but one.

Its like answering the vehicle question by saying, well you need wheels--true for cars and trucks, airplanes, but not a submarine.   Alright, too precise.   You need an engine.  Subs have engines too.  Opps not for a rocket.   Alright, you need a power source.  Opps not for a hang glider....  If eventually you can answer the question, the answer is going to be so general it will be meaningless.
At least someone here gets irony :)
Irony?  Oh, we don't get any of that around here.  At least not since '87 when I was the last practicioner of it and I had to step because everyone was looking at me funny.  
                                 --Steve Martin from Roxane, (as best I can recall from memory.)
*L* i remember that - who nose someone else here might get it ;)
ok, i'l change my questions,if the earlier one seems funny to all of u!
i'l divide into 2 parts

1.) the os is DOS
2.) the os is WIN NT

how to write the drivers for these os's?