[Xorg] The big multiconsole nasty

Jesse Barnes jbarnes at engr.sgi.com
Tue Jul 13 12:18:23 PDT 2004


On Tuesday, July 13, 2004 2:02 pm, Alan Cox wrote:
> On Maw, 2004-07-13 at 04:28, Jesse Barnes wrote:
> > So, in short, unless there are problems, I'd like to see things like
> >
> >   val = inb(0x3c8)
> >
> > changed to
> >
> >   iobase = xf86GetLegacyIOBase(Tag);
> >   ...
> >   val = inb(iobase + 0x3c8)
> >
> > *or*
> >
> >   val = inb(Tag, 0x3c8)
>
> To make it work well would it not be better to make
>
> 	iobase = xf86MapIORange(Tag, size);
>
> for many platforms thats very very efficient to implement. You would
> still want explicitly to select the VGA device I suspect though.

Sure, that would be even better.  For legacy space, size would usually be 64k, 
right?  Or would we want to add a 'base' argument and allow callers to just 
map the ports they're interested in? 

Jesse




More information about the xorg mailing list