ioGet8
__inline char ioGet8(short port);
switch (ioGet8(0x3C2) & 0x03) {
memSize = 1024*1024 * ((ioGet8(pciConfigSpace + 0x45) & 0x03) + 1);
((ioGet8(pciConfigSpace + 0x47) & 0x07) + 1) * 8 * 32*1024;
if (ioGet8(pciConfigSpace + 0x45) & 0x04) /* If 2 channels */
uint8 pci40 = ioGet8(pciConfigSpace+0x40);
ioSet8(0x3c2, 0x00, (ioGet8(0x3cc) & 0x3f) | MiscOutputReg);
ioSet8(0x3c2, 0x00, (ioGet8(0x3cc) & 0xfc) | 0x03);
f = ioGet8(0x3da); /* Set index/data flip-flop to index mode */
atcIndexReg = ioGet8(0x3c0) & 0xe0; /* Save bits[7:5] */
f = ioGet8(0x3da); /* Set index/data flip-flop to index mode */
f = ioGet8(0x3da); /* Set index/data flip-flop to index mode */
ioSet8(0x3c2, 0x00, (ioGet8(0x3cc) & 0xf3) | ((regNum & 0x03) << 2));