9 * Sierra SC1502[56] HiCOLOR-24 Palette.
23 for(i = 0; i < 4; i++)
33 command = inportb(Pixmask);
40 commandw(uchar command)
43 outportb(Pixmask, command);
48 options(Vga*, Ctlr* ctlr)
50 ctlr->flag |= Foptions;
54 init(Vga* vga, Ctlr* ctlr)
60 * Part comes in -125, -110, -80, and -66MHz speed-grades.
61 * Work out the part speed-grade from name. Name can have,
62 * e.g. '-110' on the end for 100MHz part.
65 if(p = strrchr(ctlr->name, '-'))
66 pclk = strtoul(p+1, 0, 0) * 1000000;
69 * If we don't already have a desired pclk,
70 * take it from the mode.
71 * Check it's within range.
74 vga->f[0] = vga->mode->frequency;
76 error("%s: invalid pclk - %ld\n", ctlr->name, vga->f[0]);
90 command = inportb(Pixmask);
91 outportb(Pixmask, command|0x18);
92 outportb(PaddrR, 0x08);
93 outportb(PaddrW, aux);
98 dump(Vga*, Ctlr* ctlr)
103 printitem(ctlr->name, "command");
104 command = commandr();
107 printitem(ctlr->name, "index08");
108 commandw(command|0x10);
109 for(i = 0x08; i < 0x11; i++){
111 printreg(inportb(PaddrW));
117 "sc15025", /* name */
119 options, /* options */