ioSet8
__inline void ioSet8(short port, char mask, char val);
ioSet8(0x3d8, 0x00, 0xa0); /* Set the KEY for color modes */
ioSet8(0x3b8, 0x00, 0xa0); /* Set the KEY for monochrome modes */
ioSet8(pciConfigSpace+0x40, 0x00, pci40); /* Restore */
ioSet8(pciConfigSpace+0x40, 0xf0, 0x0b);
ioSet8(pciConfigSpace+i, 0x00, pci415e[i-0x41]);
ioSet8(pciConfigSpace+0x58, 0xfd, 0x00); /* 16bpp is 5:5:5 */
ioSet8(pciConfigSpace+0x58, 0xfd, 0x02); /* 16bpp is 5:6:5 */
ioSet8(0x3c2, 0x00, (ioGet8(0x3cc) & 0x3f) | MiscOutputReg);
ioSet8(0x3c2, 0x00, (ioGet8(0x3cc) & 0xfc) | 0x03);
ioSet8(0x3c0, 0x00, i | atcIndexReg);
ioSet8(0x3c0, 0x00, atc[i-0x10]);
ioSet8(0x3c0, 0x00, 0x16 | atcIndexReg);
ioSet8(0x3c0, 0x00, atc16);
ioSet8(0x3c4, 0xf8, i);
ioSet8(0x3c5, 0x00, ts[i]);
ioSet8(0x3ce, 0xf0, i);
ioSet8(0x3cf, 0x00, gdc[i]);
ioSet8(0x3c2, 0x00, (ioGet8(0x3cc) & 0xf3) | ((regNum & 0x03) << 2));
ioSet8(0x3d4, 0xc0, 0x34);
ioSet8(0x3d5, 0xfd, (regNum & 0x04) << 1);
ioSet8(pciConfigSpace+0x67, 0x00, regNum);
ioSet8(pciConfigSpace+0x68, 0x00, regNum);
ioSet8(pciConfigSpace+0x69, 0x00, clock0M);
ioSet8(pciConfigSpace+0x69, 0x00, clock0N);
ioSet8(0x3d4, 0xc0, 0x11);
ioSet8(0x3d5, 0x7f, 0x00);
ioSet8(0x3d4, 0xc0, i);
ioSet8(0x3d5, 0x00, clock0MN[m].crtc[i]);
ioSet8(0x3d8, 0x00, 0xa0); /* Set the KEY for color modes */
ioSet8(0x3c6, 0x00, 0xff); /* Set pixel mask */