aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2008-07-24 00:31:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:36 -0400
commit49b1f4b44bcdc47a10d2b354b269305043ef2a32 (patch)
treecad5923a13f7fd051fd7d7b903778ce36f9985e8 /include
parentbcac2d5fe36238dcfc955b49f9db10ad3ae3e53c (diff)
tridentfb: acceleration code improvements
This patch brings various acceleration improvements: - set copyarea/fillrect for non-accelerated framebuffer (fix) - remove 15 bpp depth handling to simplify code as it hardly works (15 bpp handling was obviously missing in some switches) - add fb_sync call and move waiting before accelerated function to make acceleration more asynchronous to cpu (few % of speed improvement) - add cpu_relax() call in waiting loops - make longer register names and name more registers - move registers' definition to header - general code improvements (shortening, simplifying) Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/video/trident.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/video/trident.h b/include/video/trident.h
index 76d81b2198dc..7540501bc040 100644
--- a/include/video/trident.h
+++ b/include/video/trident.h
@@ -4,7 +4,7 @@
4#endif 4#endif
5 5
6#if TRIDENTFB_DEBUG 6#if TRIDENTFB_DEBUG
7#define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(1000); 7#define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(100);
8#else 8#else
9#define debug(f,a...) 9#define debug(f,a...)
10#endif 10#endif
@@ -124,3 +124,22 @@
124#define BiosMode 0x5c 124#define BiosMode 0x5c
125#define BiosReg 0x5d 125#define BiosReg 0x5d
126 126
127/* Graphics Engine */
128#define STATUS 0x2120
129#define OLDCMD 0x2124
130#define DRAWFL 0x2128
131#define OLDCLR 0x212C
132#define OLDDST 0x2138
133#define OLDSRC 0x213C
134#define OLDDIM 0x2140
135#define CMD 0x2144
136#define ROP 0x2148
137#define COLOR 0x2160
138#define SRC1 0x2100
139#define SRC2 0x2104
140#define DST1 0x2108
141#define DST2 0x210C
142
143#define ROP_S 0xCC
144#define ROP_P 0xF0
145#define ROP_X 0x66