[Xorg] The big multiconsole nasty

Egbert Eich eich at pdx.freedesktop.org
Thu Jul 15 08:42:08 PDT 2004


Jesse Barnes writes:
 > On Tuesday, July 13, 2004 3:25 pm, Jesse Barnes wrote:
 > > On Tuesday, July 13, 2004 3:09 pm, Egbert Eich wrote:
 > > > Jesse Barnes writes:
 > > >  > In the arch specific in/out routines you mean?  I see lots of lines
 > > >  > like inb(0x3c8) in various drivers and other code...
 > > >
 > > > Can you point me to them, please?
 > >
 > > There are too many to list.  Just do a 'grep -r inb' in hw/xorg.  Many of
 > > the inb calls refer to a base, but in some cases (maybe all cases) the
 > > IOBase is assumed to be global and unique, rather than per-device or
 > > per-bus.
 > 
 > Actually, now that I've looked at it some more, it's not *that* bad.  There 
 > are some places that use absolute values, but many are relative to a base.  
 > Not all platforms support it though, since many declare their in/out routines 
 > to take unsigned short values...
 > 

The 'classic' PIO range was 16bit and I don't think you can do more on the
platforms that have this limit.
We certainly need to see what we do about the absolute values - in some
cases they are probably used intentionally.

All this code is going to be revisited when things get restructured.

Egbert.





More information about the xorg mailing list