Jump to content

Device Drivers

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 297 posts
Hello All,

Well, I am planning on making an operating system and it'll be a long jump but still...I have the hardware but the other levels are problems. Here:

Applications

I/O Management

Device Drivers

Memory Management

CPU Management

Hardware

I'm now focusing on the Device Drivers section. I need to now some code snippets, structure, and anything else on Device Drivers.

Any other info would be helpful.

Thanks.

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
Eh...device drivers for what? Mouse, keyboard, hard drive... They're very different.
sudo rm -rf /

#3
Sysop_fb

Sysop_fb

    Programmer

  • Members
  • PipPipPipPip
  • 160 posts
You know when you got a character to print to the screen? That was basically a device driver.
Most of the basic stuff is just a matter of finding out where what needs to go and in what order, or which port to put data in and pull data out of or which flags need to be checked and where they are.
You could start with just a generic keyboard driver and I'm certain you can find examples, if not just look at the linux .01 kernel source.
"The best optimizer is between your ears" - Michael Abrash
Saying you can optimize a program is like saying you understand how a program works on every level of every facet on a specific machines configuration.

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
These are relatively straightforward
Keyboard controller specifications
Mouse controller specifications (You need to scroll down nearly halfway to get to the actual port specifications. You should skim the material before it, though.)

Kung fu.
Parallel port I/O specifications
sudo rm -rf /