Subject: Xwsfb
To: None <tech-x11@netbsd.org>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-x11
Date: 04/24/2006 14:23:46
--Signature_Mon__24_Apr_2006_14_23_46_-0400_p8Jm+HoSWMKarWfX
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

since this topic keeps coming up now and then...
It would be nice if we had a truly hardware-independent Xserver. Sure,
there's XFree86 with wsfb but something smaller, standalone might be
useful.

That said, whe almost have an Xwsfb - take a look as Xmacppc. There are
two macppc-specific bits in it:
- grfioctl.h, used to find out which offset to mmap(). Should usually be
  0 anyway. No idea why it's there at all, memory-mapped PCI ranges
  must be at 0x80000000 or higher on Mac hardware so offset 0 won't
  conflict with anything else we might want to mmap.
- the keyboard code only supports ADB and USB. Adding support for other
  keyboard types isn't hard - a translation map should do it. PS/2
  keyboards with their funky multi-byte scancodes will need a little
  more work but code for that is already in XFree ( although a clean
  rewrite might be less painful )
So, none of these are really platform-specifics.

Getting this to work on - say - a Krups shouldn't take more than a
weekend so it's a bit small for a SoC project. The same thing should
work on anything using wscons on a bitmapped display device.
I already got Xmacppc built on sparc, just removed the grfioctl.h
dependency. No idea if or when I'll get around to do the keyboard
hacking, if someone beats me to it that's fine.

have fun
Michael

--Signature_Mon__24_Apr_2006_14_23_46_-0400_p8Jm+HoSWMKarWfX
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBRE0XsspnzkX8Yg2nAQIqtgf8Ck81Cr3JnjHx/Msjqp2DoTgOX/23vSsX
ItfcvU/H3FswAABMfVK9bPmRffBBKSGk7fPJiKL2QBigTcX31L5u3yaxlnEYGMw6
6pyhaQjr2PEN4HMpFmU0KGVB+Jtwa20ipgVuv6y+Okk37UzMu3fctZHPZkfk3a3H
QO+KcDGgNK4T77sG8hXFHjlIdes4MzH5ITo/mIR1UckQUSIxgvMDddepuMFmWEH8
jOCzxd/kxs14s4aiRq8fSchExZV3WUB2Hit43jXwM38RPKmFGpTiwmwOGpfph1re
BIM8qyZOai6TpDAExaHOzg6VMBWfeiwB/9Tf4mDtCg/ES35dAkkGig==
=Vza/
-----END PGP SIGNATURE-----

--Signature_Mon__24_Apr_2006_14_23_46_-0400_p8Jm+HoSWMKarWfX--