While tracking down a bug, I encoutered these functions in:
programs/Xserver/hw/xfree86/vgahw/vgaHW.c:
void vgaHWLock(vgaHWPtr hwp)
{
/* Protect CRTC[0-7] */
hwp->writeCrtc(hwp, 0x11, hwp->readCrtc(hwp, 0x11) & ~0x80);
}
void vgaHWUnlock(vgaHWPtr hwp)
{
/* Unprotect CRTC[0-7] */
hwp->writeCrtc(hwp, 0x11, hwp->readCrtc(hwp, 0x11) | 0x80);
}
Every reference I can find on the sbuject, (specifically Ferraro's book,
3rd ed, along with many HTML references) indicate that this logic is
reversed. That is, for CRTC reg 0x11 bit 7: 1=disable, 0=enable writing
to CRTC regs[0-7].
Comments?
Thanks,
Nat
--
_________________________________________
Nat Ersoz [EMAIL PROTECTED] -o)
Myrio Corporation Phone: 425.897.7278 /\\
3500 Carillon Point Cell: 425.417.5182 _\_V
Kirkland, WA 98033 Fax: 425.897.5600
_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86