Subject: Support for aperture driver
To: None <tech-x11@netbsd.org>
From: Johnny C. Lam <lamj@stat.cmu.edu>
List: tech-x11
Date: 01/12/2001 15:16:39
The default compile of XFree86-4.0.2 doesn't appear to allow
using the aperture driver on NetBSD/i386. In the Xserver sources, the
only relevant files appear to be
xfree/xc/programs/Xserver/hw/xfree86/os-support/bsd/Imakefile
xfree/xc/programs/Xserver/hw/xfree86/os-support/bsd/bsd_video.c
where the NetBSD aperture driver is referenced. From my reading of
the sources, I believe it to be safe to define -DHAS_APERTURE_DRV as
this just turns on a check to open /dev/xf86 only if opening /dev/mem
fails (as it should if the kernel security level is > 0).
I know that it's possible to define HasNetBSDApertureDriver in
host.def and recompile the Xserver, but that's really only necessary
if you also want to do MTRR; only defining -DHAS_APERTURE_DRV is
needed to allow the check for /dev/xf86 to happen.
Any thoughts, or can someone point out something I overlooked?
I don't have the XFree86-4.0.2 sources on hand, but I did my searching
through CVSweb.
Cheers,
-- Johnny C. Lam <lamj@stat.cmu.edu>
Department of Statistics, Carnegie Mellon University
http://www.stat.cmu.edu/~lamj/