Subject: Re: hw addressing
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Peter L. Peres <plp@actcom.co.il>
List: port-i386
Date: 01/19/2005 22:46:05
On Wed, 19 Jan 2005, Nathan J. Williams wrote:

> Richard Cleis <rcleis@mac.com> writes:
>
>> I want to access PC104 hardware addresses on a single board computer
>> manufactured by Lippert.  With White Dwarf linux, I fuss with inb and
>> outb; how can I do this with NetBSD?
>
>> From a user application? Use i386_get_ioperm()/i386_set_ioperm() or
> i386_iopl() and then use the inb()/inw()/outb()/outw() macros in
> <i386/pio.h>.

It does not work from a user application, it has to be done in kernel 
space, even if the kernel security level is -1. I just went through this 
recently.

Peter