Subject: Re: Printer port access
To: Jon Lindgren <jlindgren@slk.com>
From: Jared D. McNeill <jmcneill@invisible.yi.org>
List: port-i386
Date: 01/31/2001 16:56:16
On Wed, 31 Jan 2001, Jon Lindgren wrote:
> On Wed, 31 Jan 2001, Jared D. McNeill wrote:
>
> > You will need to include machine/sysarch.h and machine/pio.h
> >
> > On i386, first call 'i386_iopl(3);', then you can use inb(port) and
> > outb(port, data). When you're done, call 'i386_iopl(0);'. Don't forget to
> > link the binary against libi386.
>
> Just curious, but what is the machine independant way to do this?  I've
> seen references to bus_space and such, but never really gotten the gist of
> it.

I wouldn't be suprised if there was, but I don't know how to use it,
sorry.

Jared