Date: Thu, 6 May 1999 09:06:08 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: Mark Turpin <mturpin@saturn.spel.com> Cc: Alpha Mailing list <alpha@freebsd.org> Subject: Re: Low level parallel I/O? Message-ID: <Pine.BSF.4.05.9905060903110.411-100000@herring.nlsystems.com> In-Reply-To: <Pine.BSF.4.05.9905052040520.6834-100000@saturn.spel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 5 May 1999, Mark Turpin wrote: > > 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?!? On intel, you need to include <machine/cpufunc.h> I think. For the alpha, you will need to be root (or at least group kmem) to get access to the /dev/mem device and you must call ioperm(startport, numports) to map the ports into the program. After that inb/outb should work. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 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.9905060903110.411-100000>