> Date: Sat, 18 Jul 2009 04:40:47 +0100
> From: Edd Barrett <[email protected]>
> 
> Hi Guys,
> 
> I have managed to accelerate an Elite3D card on a Blade 1000. It
> requires a binary blob in order to work, the utility to do so is called
> afbinit and the port can be found here:
> 
> http://students.dec.bmth.ac.uk/ebarrett/files/afbinit.tgz
> 
> It works well once you get the firware on the card. Mplayer performance
> and window drawing is greatly improved, but theres an issue. The
> firmware only seems to load when X11 has already been started once
> without the firmware. If you attempt to load the firmware before, the
> afbinit fails to mmap().

In order to mmap the registers used to load the firmware, the
framebuffer needs to be in "mapped" mode.  So you'll need to do
something like:

     int newmode, oldmode;

     ioctl(fd, WSDISPLAYIO_GMODE, &oldmode);
     newmode = WSDISPLAYIO_MODE_MAPPED;
     ioctl(fd, WSDISPLAYIO_SMODE, &newmode);

     ...

     ioctl(fd, WSSDISPLAYIO_SMODE, &oldmode);

(with proper error checking of course).

Reply via email to