From owner-freebsd-alpha Wed May 5 18:17:16 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from saturn.spel.com (ip226-39-143.spel.com [208.226.39.143]) by hub.freebsd.org (Postfix) with ESMTP id B5F3A14EE1 for ; Wed, 5 May 1999 18:17:12 -0700 (PDT) (envelope-from mturpin@saturn.spel.com) Received: from localhost (mturpin@localhost) by saturn.spel.com (8.9.3/8.9.3) with ESMTP id UAA06840; Wed, 5 May 1999 20:47:09 -0400 (EDT) (envelope-from mturpin@saturn.spel.com) Date: Wed, 5 May 1999 20:47:09 -0400 (EDT) From: Mark Turpin To: Doug Rabson Cc: Alpha Mailing list Subject: Re: Low level parallel I/O? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Is there something additional I need to do to use inx/outx on the alpha? I tried the same program from my Intel machine and it errors with: undefined reference to 'outb' Sound like I need to add some command line options to my cc?!? Thanks Mark On Thu, 6 May 1999, Doug Rabson wrote: > On Wed, 5 May 1999, Mark Turpin wrote: > > > > > Does anyone know how to find the IO address of the parallel port on a > > multia? > > > > Also is it possible, on an alpha, to do > > > > outb(0x378, 0xFF); > > ^^^^^----- Or whatever address > > > > to set the parallel port data lines high? > > It should be in the normal place (i.e. 0x378). You can use inx/outx in > both kernel and user programs. For user programs, you have to use the > libio library. Use the ioperm() function to enable access to the required > ports and then inx/outx to access the port. > > -- > Doug Rabson Mail: dfr@nlsystems.com > Nonlinear Systems Ltd. Phone: +44 181 442 9037 > > > ----------------------------------------------------------------------------- Mark Turpin | Consulting - Training - Network Installation Systems Engineer | Main Street Technology Centre | http://www.MainStreetTech.com ----------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message