Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 1999 20:47:09 -0400 (EDT)
From:      Mark Turpin <mturpin@saturn.spel.com>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        Alpha Mailing list <alpha@freebsd.org>
Subject:   Re: Low level parallel I/O?
Message-ID:  <Pine.BSF.4.05.9905052040520.6834-100000@saturn.spel.com>
In-Reply-To: <Pine.BSF.4.05.9905060045420.411-100000@herring.nlsystems.com>

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

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




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