2 #include "../port/lib.h"
7 #include "../port/error.h"
15 static Lock vgaxlock; /* access to index registers */
18 vgaxi(long port, uchar index)
34 * Allow processor access to the colour
35 * palette registers. Writes to Attrx must
36 * be preceded by a read from Status1 to
37 * initialise the register to point to the
38 * index register and not the data register.
39 * Processor access is allowed by turning
47 outb(Attrx, 0x20|index);
50 outb(Attrx, 0x20|index);
65 vgaxo(long port, uchar index, uchar data)
74 * We could use an outport here, but some chips
75 * (e.g. 86C928) have trouble with that for some
88 outb(Attrx, 0x20|index);
91 outb(Attrx, 0x20|index);