patch pro Avance Logic 2301
Pavel Kankovsky
peak na kerberos.troja.mff.cuni.cz
Pondělí Říjen 26 11:00:36 CET 1998
Tady je ten zminovany patch pro XFree86, aby se na zminovanem chipsetu
nemenila pismenka v ruzne podivne znaky.
*** ali_driver.c.orig Sun Jun 4 19:13:48 1995
--- ali_driver.c Mon Apr 8 20:15:24 1996
***************
*** 430,436 ****
--- 430,438 ----
outb(0x3D6, 0x00); /* select segment 3D6 (Read) bank 0 */
outb(0x3D7, 0x00); /* select segment 3D7 (write) bank 0 */
+ #if 0
vgaHWRestore((vgaHWPtr)restore);
+ #endif
outw(vgaIOBase+4, (restore->Reg3D4_19 << 8) | 0x19); /* 3D4.19.6 & 3D4.19.7 */
outw(vgaIOBase+4, (restore->Reg3D4_1A << 8) | 0x1A);
***************
*** 445,450 ****
--- 447,456 ----
inb(0x3C8);
inb(0x3C6); inb(0x3C6); inb(0x3C6); inb(0x3C6);
outb(0x3C6, restore->Reg3C6_cmd);
+
+ #if 1
+ vgaHWRestore((vgaHWPtr)restore);
+ #endif
outb(0x3D6, restore->RSegSel); /* Read Bank */
outb(0x3D7, restore->WSegSel); /* Write Bank */
Jak vidite, tak je to sice uprava ponekud starsiho data, ale stale
funkcni.
--Pavel Kankovsky aka Peak [ Boycott Microsoft--http://www.vcnet.com/bms ]
"You can't be truly paranoid unless you're sure they have already got you."
Další informace o konferenci Linux