From owner-freebsd-alpha Thu May 6 1:32:49 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 2E5E214E10 for ; Thu, 6 May 1999 01:32:46 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA35029; Thu, 6 May 1999 09:06:13 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Thu, 6 May 1999 09:06:08 +0100 (BST) From: Doug Rabson To: Mark Turpin 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 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 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