summaryrefslogtreecommitdiff
path: root/src/smi_accel.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-03 16:30:23 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-03 16:30:23 -0300
commitda789f720e2d772dff92adc10aa024a6a921fbbd (patch)
tree46a03bd06b8e299b35d42bf95791428e0f3ab8c8 /src/smi_accel.c
parentbacddd1d31a5f3de14477914958f27b6f081c125 (diff)
Simplify regsmi.h by removing most unused SMI501 defines.
The values that should be used, should also have a more meaningful name, as something like: doesn't help much, and the fact that these "ports" can be accessed from several "bases" may be confusing also, as there is SCRBase, DCRBase, FPRBase, DPRBase, CPRBase (and IOBase). The 501 code should probably be changed to just use IOBase, as currently it uses SCRBase, that happens to be at pSmi->MapBase + 0x0000. This patch also completely transforms the WaitQueue macro in a noop for the MSOC. In SMI sample code it is almost the current code, just that the macro body is commented out. Hopefully this will be addressed soon.
Diffstat (limited to 'src/smi_accel.c')
-rw-r--r--src/smi_accel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smi_accel.c b/src/smi_accel.c
index 0862692..7395afa 100644
--- a/src/smi_accel.c
+++ b/src/smi_accel.c
@@ -52,9 +52,9 @@ SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file)
}
if (IS_MSOC(pSmi)) {
- iTempVal = READ_SCR(pSmi, SCR00) & ~0x00003000;
- WRITE_SCR (pSmi, SCR00, iTempVal | 0x00003000);
- WRITE_SCR (pSmi, SCR00, iTempVal);
+ iTempVal = READ_SCR(pSmi, 0x0000) & ~0x00003000;
+ WRITE_SCR(pSmi, 0x0000, iTempVal | 0x00003000);
+ WRITE_SCR(pSmi, 0x0000, iTempVal);
}
else {
tmp = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x15);