summaryrefslogtreecommitdiff
path: root/src/smi_video.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-02 16:11:59 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-02 16:11:59 -0300
commit22a7fd6711e2a40633981cd21fa3808c9246f13a (patch)
tree7d2e4920b407c5ddc5a9bb9e739ecea7b07d3fec /src/smi_video.c
parent973f68bf0464c4d2aec2acf7c8e6db201782f4ec (diff)
Remove the IN_SEQ and OUT_SEQ macros.
These macros access vga registers, but don't make it clear in their name.
Diffstat (limited to 'src/smi_video.c')
-rw-r--r--src/smi_video.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/smi_video.c b/src/smi_video.c
index a94d086..a811086 100644
--- a/src/smi_video.c
+++ b/src/smi_video.c
@@ -1288,9 +1288,11 @@ SMI_PutVideo(
width = (x2 - x1) >> 16;
height = (y2 - y1) >> 16;
- if (!IS_MSOC(pSmi)) {
- OUT_SEQ(pSmi, 0x21, IN_SEQ(pSmi, 0x21) & ~0x04);
- }
+ if (!IS_MSOC(pSmi))
+ VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA,
+ 0x21,
+ VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA,
+ 0x21) & ~0x04);
WRITE_VPR(pSmi, 0x54, READ_VPR(pSmi, 0x54) | 0x00200000);
#if 0
SMI_WaitForSync(pScrn);
@@ -1387,7 +1389,6 @@ SMI_StopVideo(
WRITE_CPR(pSmi, 0x00, READ_CPR(pSmi, 0x00) & ~0x00000001);
WRITE_VPR(pSmi, 0x54, READ_VPR(pSmi, 0x54) & ~0x00F00000);
}
-/* #864 OUT_SEQ(pSmi, 0x21, IN_SEQ(pSmi, 0x21) | 0x04); */
#endif
}
if (pPort->video_memory != NULL) {