From owner-freebsd-hardware Sun Jun 30 12:22:49 2002 Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F62037B400 for ; Sun, 30 Jun 2002 12:22:46 -0700 (PDT) Received: from arg1.demon.co.uk (arg1.demon.co.uk [62.49.12.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F77E43E09 for ; Sun, 30 Jun 2002 12:22:46 -0700 (PDT) (envelope-from arg-bsd@arg1.demon.co.uk) Received: by arg1.demon.co.uk (Postfix, from userid 1002) id D28959B20; Sun, 30 Jun 2002 20:22:44 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by arg1.demon.co.uk (Postfix) with ESMTP id CB0215D0C; Sun, 30 Jun 2002 20:22:44 +0100 (BST) Date: Sun, 30 Jun 2002 20:22:44 +0100 (BST) From: Andrew Gordon X-X-Sender: To: Cc: Subject: Re: Parallel port interrupt In-Reply-To: <200206301435.g5UEZkx00759@engmail.uwaterloo.ca> Message-ID: <20020630201811.X91577-100000@server.arg.sj.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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