patch-2.4.26 linux-2.4.26/drivers/video/sis/sis_accel.c
Next file: linux-2.4.26/drivers/video/sis/sis_accel.h
Previous file: linux-2.4.26/drivers/video/sis/osdef.h
Back to the patch index
Back to the overall index
- Lines: 86
- Date:
2004-04-14 06:05:40.000000000 -0700
- Orig file:
linux-2.4.25/drivers/video/sis/sis_accel.c
- Orig date:
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.25/drivers/video/sis/sis_accel.c linux-2.4.26/drivers/video/sis/sis_accel.c
@@ -77,9 +77,8 @@
#include "sis_accel.h"
#include "sis.h"
-extern struct video_info ivideo;
-extern VGA_ENGINE sisvga_engine;
-extern int sisfb_accel;
+extern struct video_info ivideo;
+extern int sisfb_accel;
static const int sisALUConv[] =
{
@@ -337,7 +336,7 @@
void sisfb_syncaccel(void)
{
- if(sisvga_engine == SIS_300_VGA) {
+ if(ivideo.sisvga_engine == SIS_300_VGA) {
#ifdef CONFIG_FB_SIS_300
SiS300Sync();
#endif
@@ -357,7 +356,7 @@
if(!ivideo.accel)
return 0;
- if(sisvga_engine == SIS_300_VGA) {
+ if(ivideo.sisvga_engine == SIS_300_VGA) {
#ifdef CONFIG_FB_SIS_300
SiS300Sync();
#endif
@@ -393,7 +392,7 @@
break;
}
- if(sisvga_engine == SIS_300_VGA) {
+ if(ivideo.sisvga_engine == SIS_300_VGA) {
#ifdef CONFIG_FB_SIS_300
CRITBEGIN
SiS300SetupForSolidFill(col, myrops[rect->rop], 0);
@@ -432,7 +431,7 @@
if(area->sy < area->dy) ydir = 0;
else ydir = 1;
- if(sisvga_engine == SIS_300_VGA) {
+ if(ivideo.sisvga_engine == SIS_300_VGA) {
#ifdef CONFIG_FB_SIS_300
CRITBEGIN
SiS300SetupForScreenToScreenCopy(xdir, ydir, 3, 0, -1);
@@ -494,7 +493,7 @@
if(srcy < dsty) ydir = 0;
else ydir = 1;
- if(sisvga_engine == SIS_300_VGA) {
+ if(ivideo.sisvga_engine == SIS_300_VGA) {
#ifdef CONFIG_FB_SIS_300
CRITBEGIN
SiS300SetupForScreenToScreenCopy(xdir, ydir, 3, 0, -1);
@@ -509,10 +508,6 @@
SiS310SubsequentScreenToScreenCopy(srcx, srcy, dstx, dsty, width, height);
CRITEND
SiS310Sync();
-#if 0
- printk(KERN_INFO "sis_bmove sx %d sy %d dx %d dy %d w %d h %d\n",
- srcx, srcy, dstx, dsty, width, height);
-#endif
#endif
}
}
@@ -527,7 +522,7 @@
width *= fontwidth(p);
height *= fontheight(p);
- if(sisvga_engine == SIS_300_VGA) {
+ if(ivideo.sisvga_engine == SIS_300_VGA) {
#ifdef CONFIG_FB_SIS_300
CRITBEGIN
SiS300SetupForSolidFill(color, 3, 0);
@@ -616,7 +611,7 @@
srcx *= fontwidth(p);
srcy *= fontheight(p);
- if(sisvga_engine == SIS_300_VGA) {
+ if(ivideo.sisvga_engine == SIS_300_VGA) {
#ifdef CONFIG_FB_SIS_300
CRITBEGIN
SiS300SetupForSolidFill(0, 0x0a, 0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)