Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic don't sync after each drawing op, add functions t...
details: https://anonhg.NetBSD.org/src/rev/6e808739815a
branches: trunk
changeset: 782203:6e808739815a
user: macallan <macallan%NetBSD.org@localhost>
date: Sat Oct 20 13:31:09 2012 +0000
description:
don't sync after each drawing op, add functions to wait for the engine to get ready for more commands or idle
diffstat:
sys/dev/ic/i128.c | 19 +++++++++++++++----
sys/dev/ic/i128var.h | 7 +++++--
2 files changed, 20 insertions(+), 6 deletions(-)
diffs (72 lines):
diff -r 5948c6e7f6c0 -r 6e808739815a sys/dev/ic/i128.c
--- a/sys/dev/ic/i128.c Sat Oct 20 13:29:53 2012 +0000
+++ b/sys/dev/ic/i128.c Sat Oct 20 13:31:09 2012 +0000
@@ -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 @@
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 @@
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);
+}
+
diff -r 5948c6e7f6c0 -r 6e808739815a sys/dev/ic/i128var.h
--- a/sys/dev/ic/i128var.h Sat Oct 20 13:29:53 2012 +0000
+++ b/sys/dev/ic/i128var.h Sat Oct 20 13:31:09 2012 +0000
@@ -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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index