[OpenBIOS] [commit] r1320 - trunk/openbios-devel/drivers

repository service svn at openbios.org
Wed Sep 24 20:03:56 CEST 2014


Author: mcayland
Date: Wed Sep 24 20:03:55 2014
New Revision: 1320
URL: http://tracker.coreboot.org/trac/openbios/changeset/1320

Log:
tcx.fs: add support for hardware acceleration

This is a tidied version of the patch originally posted to the mailing list by
Olivier DANET <odanet at caramail.com>.

- Change a few addresses to match actual hardware

- Remove the "address" property from TCX, because of some almost-bug in NetBSD
  when detecting framebuffers (actual TCX has no address property, so it works
  by chance on real hardware)

- Add the hardware cursor properties

With this and the corresponding QEMU TCX hardware acceleration patch, the
hardware-assisted NetBSD TCX driver will function under QEMU.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Modified:
   trunk/openbios-devel/drivers/tcx.fs

Modified: trunk/openbios-devel/drivers/tcx.fs
==============================================================================
--- trunk/openbios-devel/drivers/tcx.fs	Wed Sep 24 20:03:53 2014	(r1319)
+++ trunk/openbios-devel/drivers/tcx.fs	Wed Sep 24 20:03:55 2014	(r1320)
@@ -92,7 +92,7 @@
 h# 1000 constant /tcx-off-thc-24
 h# 81c constant /tcx-off-thc-8
 
-h# 700000 constant tcx-off-tec
+h# 701000 constant tcx-off-tec
 h# 1000 constant /tcx-off-tec
 
 h# 800000 constant tcx-off-dfb8
@@ -103,7 +103,7 @@
 h# 1 constant /tcx-off-dfb24-8
 
 h# 4000000 constant tcx-off-stip
-h# 400000 constant /tcx-off-stip-24
+h# 800000 constant /tcx-off-stip-24
 h# 1 constant /tcx-off-stip-8
 
 h# 6000000 constant tcx-off-blit
@@ -228,7 +228,11 @@
     fb-addr to frame-buffer-adr
     default-font set-font
 
-    frame-buffer-adr encode-int " address" property
+    \ Sun TCX adapters don't have an address property, but it is useful for
+    \ OpenBIOS developers. Unfortunately NetBSD SPARC32 has a bug that causes
+    \ it to fail initialising TCX if the address property is present; so work
+    \ around this by adding an underscore prefix
+    frame-buffer-adr encode-int " _address" property
 
     openbios-video-width openbios-video-height over char-width / over char-height /
     fb8-install
@@ -266,7 +270,7 @@
   openbios-video-width encode-int " width" property
   line-bytes encode-int " linebytes" property
 
-  5 encode-int 0 encode-int encode+ " intr" property
+  h# 39 encode-int 0 encode-int encode+ " intr" property
   5 encode-int " interrupts" property
 
   ['] qemu-tcx-driver-install is-install



More information about the OpenBIOS mailing list