M
Hi guys,
Like I said some time ago, I didn't like the way the parport module was accessing the parallel port directly, which is not portable.
I have now written a small pass-through device driver for the parallel port, and made some very small changes to the parport module to support
it.
The parport module now supports both kinds of access, defaulting to direct access. If a
dev_file = /dev/plc_parportX is added to the linuxplc.conf file, then the module will use the kernel module through the specified device file. If this access fails, then it tries to use direct access. If no dev_file is specified, then direct
access is also used.
The plc_parport device driver (a.k.a. kernel module) is located under /drivers/plc_parport, and the makefile will do everything (compile,
install module and man page, create /dev/plc_parportX nodes, ...). Just type make to see the options.
I know this is mostly useless and will probably never get used, but I just felt like writing a kernel module... ;-)
Cheers,
Mario.
--
----------------------------------------------------------------------------
Mario J. R. de Sousa
[email protected]
----------------------------------------------------------------------------
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
Like I said some time ago, I didn't like the way the parport module was accessing the parallel port directly, which is not portable.
I have now written a small pass-through device driver for the parallel port, and made some very small changes to the parport module to support
it.
The parport module now supports both kinds of access, defaulting to direct access. If a
dev_file = /dev/plc_parportX is added to the linuxplc.conf file, then the module will use the kernel module through the specified device file. If this access fails, then it tries to use direct access. If no dev_file is specified, then direct
access is also used.
The plc_parport device driver (a.k.a. kernel module) is located under /drivers/plc_parport, and the makefile will do everything (compile,
install module and man page, create /dev/plc_parportX nodes, ...). Just type make to see the options.
I know this is mostly useless and will probably never get used, but I just felt like writing a kernel module... ;-)
Cheers,
Mario.
--
----------------------------------------------------------------------------
Mario J. R. de Sousa
[email protected]
----------------------------------------------------------------------------
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc