Subject: Re: XF86 wsfb driver and wscons ioctl
To: Izumi Tsutsui <firstname.lastname@example.org>
From: Michael <email@example.com>
Date: 01/17/2005 07:33:38
-----BEGIN PGP SIGNED MESSAGE-----
> I take a look at some source files, but I'm afraid current wsfb driver
> is still problematic.
> - wsfb uses WSDISPLAYIO_LINEBYTES ioctl() and WSDISPLAYIO_MODE_DUMBFB
> flag for WSDISPLAYIO_SMODE to mmap(), but they were added after 2.0
> was branched.
> - Only sparc64/dev/ffb.c supports these new ioctls, doesn't it?
That may well be - machfb and macppc's ofb certainly don't.
Although my extended ofb monitors WSDISPLAYIO_SMODE to do some cleanup
when the Xserver exits.
> - IMHO, these ioctls (taken from OpenBSD?) seem really stupid.
> I think we should have more generic ioctl which returns whole info
> about MI rasops(9), which includes screen size, bitmap vaddr
> for mmap(), depth, and stride etc. rather than limited ioctls for
> LINEBYTES, DUMB or so.
There's WSDISPLAYIO_GINFO, maybe it should be extended a little. I'm
not sure how generic this is but ofb (and therefore machfb too) maps
the framebuffer when you mmap something between 0 and VRAM_size ( or
aperture_size ) and additionally whatever it finds in OF's
addigned-addresses property which more or less corresponds to the PCI
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
-----END PGP SIGNATURE-----