Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2002 20:22:44 +0100 (BST)
From:      Andrew Gordon <arg-bsd@arg1.demon.co.uk>
To:        <jdhar@engmail.uwaterloo.ca>
Cc:        <freebsd-hardware@freebsd.org>
Subject:   Re: Parallel port interrupt
Message-ID:  <20020630201811.X91577-100000@server.arg.sj.co.uk>
In-Reply-To: <200206301435.g5UEZkx00759@engmail.uwaterloo.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 30 Jun 2002 jdhar@engmail.uwaterloo.ca wrote:
>
> I'm trying to do a project with interrupt driven parallel port, but I can't seem to find
> any code to do so. I can only find information on ppi, which is great, except I don't
> think it handles interrupts. Can someone PLEASE help. It would be greatly
> appreciated.

What exactly are you trying to do?

The standard parallel port hardware doesn't actually provide much by way
of useful interrrupts - it can do interrupts on the strobe line, and these
are supported by the ordinary lpt driver to do interrupt-per-character
output.  If you want more throughput, use ECP mode (also supported by the
ordinary LPT driver, with lptcontrol -e, provided that your kernel is
configured with a DMA channel for the ppc0 device - the GENERIC kernel
isn't).

If you are trying to use the parallel port as general-purpose I/O rather
than a byte-wide output channel, you are probably out of luck.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020630201811.X91577-100000>