Subject: Re: framebuffer access
To: Michael <macallan18@earthlink.net>
From: Radek Kujawa <streamer@cytrynka.infoland.int.pl>
List: port-sparc64
Date: 11/12/2005 21:56:59
On Sat, 12 Nov 2005, Michael wrote:
> So, you can still map the framebuffer - just use the main aperture in
> BAR 0x10. The PCI ioctl()s work on the wscons file descriptor. Read the
> BAR, use it as mmap offset.

I did it the way you suggested, and it works :).

The problem with wsdisplay is that on every platform it's implemented in
other way, so now I have some ugly #ifdef's, as I don't want to break
compatibility with non-PCI computers. On some platforms drivers can't
even mmap their framebuffers. I can only say that wsdisplay is a bit
"lacking" here and there. Maybe because it wasn't designed to draw
anything more complicated than terminal emulator.

Thanks,
Radek