Skip to main content
gamedev.net
🔒 Locked

programming drivers?

Started by Cipher3D May 15, 2004 at 12:08 AM 1 replies 300+ views
Original Post
Cipher3D
Cipher3D
i''m curious as to how drivers are written....i remember somewhere you do some file i/o with a port or something...weird... any ideas?
I eat heart attacks
hplus0603
hplus0603
1) get specification for hardware register set from vendor

2) build code that gets loaded by kernel

3) write code that uses OS API to discover device

4) write code to use OS register abstraction (HAL) to configure device

5) install, reboot, crash

6) debug, update, goto 5


Most attempts end at 1), unless you actually work for the hardware vendor themselves.
enum Bool { True, False, FileNotFound };
Nik02
Nik02
It is better to program a virtual device driver first. It isn't strictly necessary for a driver to control real hardware
For example, MS DDK includes a joystick driver sample, in which the driver does all that a real driver would do, excluding the actual data transport.

-Nik

EDIT: Not that creating a vdd results in any less crashes and gpf's

[edited by - Nik02 on May 15, 2004 3:25:27 AM]
Niko Suni

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.