Subject: Re: Why not track our xsrc with X11R6.6 from X.org?
To: None <current-users@NetBSD.ORG, simonb@wasabisystems.com>
From: None <eeh@netbsd.org>
List: current-users
Date: 07/18/2001 05:10:34
| Nathan J. Williams wrote:
|
| > The part of the XFree86 approach that bothers me is that it scans the
| > entire universe of PCI busses itself, looking for a video card. That
| > is duplicated effort, and it's also a pretty dangerous operation. What
| > I'm suggesting is that you give X access to /dev/wsvideo or something,
| > and wsvideo says "Hi, I'm a PCI card, vendor xxxx, product yyyy,
| > revision z".
|
| I'm currently doing some work towards this. The basic structure is to
| add ioctl's at the wsdisplay/wscons level to deal with:
|
| 1) Determining the framebuffer bus type, location and identity. An
| example is:
| "pci:1:0:0 i:0x4c461002 s:0x00cc1028 c:0x03000002"
| 2) Determining allowable mmap()able ranges and handle mapping them.
| 3) Provide bus-dependant access - the only one implemented so far is
| pci config space reads and writes.
Well, if you do this, try to keep it compatible with the sun/sparc
fbioctls, which seem to work pretty well for this purpose.
Eduardo