EECS_X497.19 is a project mainly written in C and PYTHON, it's free.
Code for Portable Device Drivers class