Parallel Port Interrupt Handler in Kernel Module
doconnor at gsoft.com.au
Sun Dec 5 17:11:30 PST 2004
On Mon, 6 Dec 2004 02:02, Hannes Mayer wrote:
> I'm trying to capture the parallel port interrupt in a kernel module.
> First I compiled the "skeleton" from:
> and it works well.
> Then I googled on how to setup the interrupt handler, also looked at
> the device driver sources of the parallel port driver and I found
> that BUS_SETUP_INTR is used to setup the handler.
I would suggest looking at existing drivers, there's plenty of working example
In FreeBSD there is a parallel port abstraction called ppbus (man 4 ppbus)
which allows different drivers to access the parallel port. Examples of code
that uses ppbus are lpt, vpo, ppi, pps.
I would say the ppi driver is probably a good place to start looking as it's
just a "geek port", and hence isn't very complex.
I just kludged up a version of ppi that you can build outside the tree and
allows you to load and unload (although I haven't actually _tested_ it apart
from load and unload :)
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041206/cad9bc9a/attachment.bin
More information about the freebsd-stable