Module Name:    src
Committed By:   macallan
Date:           Sat Oct 20 13:31:09 UTC 2012

Modified Files:
        src/sys/dev/ic: i128.c i128var.h

Log Message:
don't sync after each drawing op, ass functions to wait for the engine to get
ready for more commands or idle


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/i128.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ic/i128var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/i128.c
diff -u src/sys/dev/ic/i128.c:1.3 src/sys/dev/ic/i128.c:1.4
--- src/sys/dev/ic/i128.c:1.3	Tue Apr 29 06:53:02 2008
+++ src/sys/dev/ic/i128.c	Sat Oct 20 13:31:09 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i128.c,v 1.3 2008/04/29 06:53:02 martin Exp $ */
+/*	$NetBSD: i128.c,v 1.4 2012/10/20 13:31:09 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i128.c,v 1.3 2008/04/29 06:53:02 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i128.c,v 1.4 2012/10/20 13:31:09 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -102,7 +102,6 @@ i128_bitblt(bus_space_tag_t tag, bus_spa
 	bus_space_write_4(tag, regh, XY2_WH, (wi << 16) | he);
 	bus_space_write_4(tag, regh, XY0_SRC, (xs << 16) | ys);
 	bus_space_write_4(tag, regh, XY1_DST, (xd << 16) | yd);
-	I128_DONE(tag, regh);
 }
 
 void
@@ -118,5 +117,17 @@ i128_rectfill(bus_space_tag_t tag, bus_s
 	bus_space_write_4(tag, regh, XY2_WH, (wi << 16) | he);
 	bus_space_write_4(tag, regh, XY0_SRC, 0);
 	bus_space_write_4(tag, regh, XY1_DST, (x << 16) | y);
-	I128_DONE(tag, regh);
 }
+
+void
+i128_ready(bus_space_tag_t t, bus_space_handle_t h)
+{
+    I128_READY(t, h);
+}
+
+void
+i128_sync(bus_space_tag_t t, bus_space_handle_t h)
+{
+    I128_DONE(t, h);
+}
+ 

Index: src/sys/dev/ic/i128var.h
diff -u src/sys/dev/ic/i128var.h:1.2 src/sys/dev/ic/i128var.h:1.3
--- src/sys/dev/ic/i128var.h:1.2	Tue Apr 29 06:53:02 2008
+++ src/sys/dev/ic/i128var.h	Sat Oct 20 13:31:09 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i128var.h,v 1.2 2008/04/29 06:53:02 martin Exp $ */
+/*	$NetBSD: i128var.h,v 1.3 2012/10/20 13:31:09 macallan Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i128var.h,v 1.2 2008/04/29 06:53:02 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i128var.h,v 1.3 2012/10/20 13:31:09 macallan Exp $");
 
 /* 
  * register definition for Number Nine Imagine 128 graphics controllers
@@ -44,5 +44,8 @@ void i128_bitblt(bus_space_tag_t, bus_sp
     int, int);
 void i128_rectfill(bus_space_tag_t, bus_space_handle_t, int, int, int, int,
     uint32_t);
+void i128_ready(bus_space_tag_t, bus_space_handle_t);
+void i128_sync(bus_space_tag_t, bus_space_handle_t);
+
 
 #endif /* I128VAR_H */

Reply via email to