Subject: Re: netbsd i386 1.6.1 question: (user mode hw io)
To: Michael <macallan18@earthlink.net>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: port-i386
Date: 12/23/2004 08:46:58
Michael <macallan18@earthlink.net> writes:
> Either make a kernel module using bus_space_* or use the good(?) old
> mmap(/dev/mem) way if you don't need interrupts.
Using mmap on /dev/mem will not get you I/O port access on an i386
system. The I/O ports are really their own address space, and nothing
translates memory-space accesses into I/O port accesses. He needs to
use the inb/inw/outb/outw instructions on an i386 for this purpose.
- Nathan