| plan 9 kernel history: overview | file list | diff list |
1992/0414/pc/vga.c (diff list | history)
| 1992/0409/sys/src/9/pc/vga.c:66,71 – 1992/0414/sys/src/9/pc/vga.c:66,72 (short | long | prev | next) | ||
| 1991/1113 | uchar attribute[0x15]; }; | |
| 1992/0414 | #ifdef ORIGINALSAFARI | |
| 1991/0727 | /* | |
| 1991/1113 | * 640x480 display, 16 bit color | |
| 1991/0727 | */ | |
| 1992/0409/sys/src/9/pc/vga.c:88,97 – 1992/0414/sys/src/9/pc/vga.c:89,123 | ||
| 1991/1113 | 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x01, 0x00, 0x0f, 0x00, 0x00, }; | |
| 1992/0414 | #else /* * 640x480 display, 16 bit color - attempt at SVGA version...ches */ VGAmode mode12 = { /* general */ 0xe7, 0x00, 0x70, 0x04, /* sequence */ 0x03, 0x01, 0x0f, 0x00, 0x06, /* crt */ 0x65, 0x4f, 0x50, 0x88, 0x55, 0x9a, 0x09, 0x3e, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0x8b, 0xdf, 0x28, 0x00, 0xe7, 0x04, 0xe3, 0xff, /* graphics */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* attribute */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x01, 0x00, 0x0f, 0x00, 0x00, }; #endif | |
| 1991/1113 | ||
| 1991/0724 | void | |
| 1991/1113 | genout(int reg, int val) { | |
| 1992/0414 | delay(1000); | |
| 1991/1113 | if(reg == 0) outb(EMISCW, val); else if (reg == 1) | |
| 1992/0409/sys/src/9/pc/vga.c:100,105 – 1992/0414/sys/src/9/pc/vga.c:126,135 | ||
| 1991/1113 | void | |
| 1991/0724 | srout(int reg, int val) { | |
| 1992/0414 | /* * needed or the screen goes blank on an ultra VGA card */ delay(1000); | |
| 1991/0724 | outb(SRX, reg); outb(SR, val); } | |
| 1992/0409/sys/src/9/pc/vga.c:112,117 – 1992/0414/sys/src/9/pc/vga.c:142,151 | ||
| 1991/0727 | void arout(int reg, int val) { | |
| 1992/0414 | /* * if this print is missing, we are left with a blank white screen. */ print("arout %d %2x\n", reg, val); | |
| 1991/0727 | inb(0x3DA); | |
| 1991/1211 | outb(ARW, reg | 0x20); outb(ARW, val); | |
| 1992/0409/sys/src/9/pc/vga.c:119,124 – 1992/0414/sys/src/9/pc/vga.c:153,159 | ||
| 1991/0727 | void crout(int reg, int val) { | |
| 1992/0414 | delay(1000); /* needed for 16bit VGA path on Ultra SVGA */ | |
| 1991/0727 | outb(CRX, reg); outb(CR, val); } | |