26 #include <linux/kernel.h>
51 via_write_reg_mask(
VIACR, 0x11, 0x00, 0x80);
81 via_write_reg_mask(
VIACR, 0x36, raw.
hor_total >> (8 - 3) & 0x08, 0x08);
84 via_write_reg_mask(
VIACR, 0x11, 0x80, 0x80);
87 via_write_reg_mask(
VIACR, 0x17, 0x00, 0x80);
88 via_write_reg_mask(
VIACR, 0x17, 0x80, 0x80);
116 | (raw.
hor_addr >> (8 - 4) & 0x70), 0x7F);
139 via_write_reg(
VIACR, 0x0D, addr & 0xFF);
140 via_write_reg(
VIACR, 0x0C, (addr >> 8) & 0xFF);
141 via_write_reg(
VIACR, 0x34, (addr >> 16) & 0xFF);
142 via_write_reg_mask(
VIACR, 0x48, (addr >> 24) & 0x1F, 0x1F);
149 via_write_reg_mask(
VIACR, 0x62, (addr >> 2) & 0xFE, 0xFE);
150 via_write_reg(
VIACR, 0x63, (addr >> 10) & 0xFF);
151 via_write_reg(
VIACR, 0x64, (addr >> 18) & 0xFF);
152 via_write_reg_mask(
VIACR, 0xA3, (addr >> 26) & 0x07, 0x07);
162 via_write_reg(
VIACR, 0x13, pitch & 0xFF);
163 via_write_reg_mask(
VIACR, 0x35, (pitch >> (8 - 5)) & 0xE0, 0xE0);
170 via_write_reg(
VIACR, 0x66, pitch & 0xFF);
171 via_write_reg_mask(
VIACR, 0x67, (pitch >> 8) & 0x03, 0x03);
172 via_write_reg_mask(
VIACR, 0x71, (pitch >> (10 - 7)) & 0x80, 0x80);
198 "Unsupported depth: %d\n", depth);
202 via_write_reg_mask(
VIASR, 0x15, value, 0x1C);
225 "Unsupported depth: %d\n", depth);
229 via_write_reg_mask(
VIACR, 0x67, value, 0xC0);