April 16th, 2002, 03:40 PM
Linux Parallel port device Drivers
I'm currently undergoing a project to make a parallel port device driver under Linux, written in C.
And i was wondering if anyone knows where i could find any example code of such a thing.
I know kind of what code needs to be written but am having major trouble writing it.
Any Information will be GREATLY appreciated.
(it's my final degree year uni project, that has to be in soon :-(! )
Cheers for any help
April 20th, 2002, 09:35 AM
I can suggest a book: Linux Device Drivers (O'Reilly Publications).
It is a great resource, and if you can get your hands on it, it'd surely help you.
April 20th, 2002, 09:41 AM
too funny. you are in the final year of university, want to write a driver for linux and you donīt know this?
linux has a parallel port driver and the full source code is most times installed in /usr/src/linux. if not, get it from from your distribution CDs, ftp site,www.kernel.org...
the parallel port driver is in /usr/src/linux/drivers/misc/
do you want to know how to access it? look eg at the code from paride (parallel port ide device driver) in /usr/src/linux/drivers/block/paride