Non è roba da tutti i giorni, e ti avverto: scrivere un driver male può anche rompere una periferica. Guarda qui

http://www.xml.com/ldd/chapter/book/