Home | History | Annotate | Download | only in ic

Lines Matching refs:iot

75 igsfb_enable(bus_space_tag_t iot, bus_addr_t iobase, int ioflags)
82 ret = bus_space_map(iot, iobase + IGS_VDO, 1, ioflags, &vdoh);
88 ret = bus_space_map(iot, iobase + IGS_VSE, 1, ioflags, &vseh);
94 ret = bus_space_map(iot, iobase + IGS_REG_BASE, IGS_REG_SIZE, ioflags,
104 bus_space_write_1(iot, vdoh, 0, IGS_VDO_ENABLE | IGS_VDO_SETUP);
105 bus_space_write_1(iot, vseh, 0, IGS_VSE_ENABLE);
106 bus_space_write_1(iot, vdoh, 0, IGS_VDO_ENABLE);
113 igs_ext_write(iot, regh, IGS_EXT_BIU_MISC_CTL,
117 bus_space_unmap(iot, regh, IGS_REG_SIZE);
118 out2: bus_space_unmap(iot, vseh, 1);
119 out1: bus_space_unmap(iot, vdoh, 1);
131 bus_space_tag_t iot = dc->dc_iot;
135 igs_seq_write(iot, ioh, IGS_SEQ_RESET, 0);
137 igs_seq_write(iot, ioh, 1, 0x01); /* 8 dot clock */
138 igs_seq_write(iot, ioh, 2, 0x0f); /* enable all maps */
139 igs_seq_write(iot, ioh, 3, 0x00); /* character generator */
140 igs_seq_write(iot, ioh, 4, 0x0e); /* memory mode */
143 bus_space_write_1(iot, ioh, IGS_MISC_OUTPUT_W, 0xef);
146 igs_seq_write(iot, ioh, IGS_SEQ_RESET,
157 bus_space_tag_t iot = dc->dc_iot;
160 igs_crtc_write(iot, ioh, 0x00, 0x5f);
161 igs_crtc_write(iot, ioh, 0x01, 0x4f);
162 igs_crtc_write(iot, ioh, 0x02, 0x50);
163 igs_crtc_write(iot, ioh, 0x03, 0x80);
164 igs_crtc_write(iot, ioh, 0x04, 0x52);
165 igs_crtc_write(iot, ioh, 0x05, 0x9d);
166 igs_crtc_write(iot, ioh, 0x06, 0x0b);
167 igs_crtc_write(iot, ioh, 0x07, 0x3e);
170 igs_crtc_write(iot, ioh, 0x08, 0x00);
171 igs_crtc_write(iot, ioh, 0x09, 0x40); /* <- either 0x40 or 0x60 */
172 igs_crtc_write(iot, ioh, 0x0a, 0x00);
173 igs_crtc_write(iot, ioh, 0x0b, 0x00);
174 igs_crtc_write(iot, ioh, 0x0c, 0x00);
175 igs_crtc_write(iot, ioh, 0x0d, 0x00);
176 igs_crtc_write(iot, ioh, 0x0e, 0x00);
177 igs_crtc_write(iot, ioh, 0x0f, 0x00);
179 igs_crtc_write(iot, ioh, 0x10, 0xe9);
180 igs_crtc_write(iot, ioh, 0x11, 0x8b);
181 igs_crtc_write(iot, ioh, 0x12, 0xdf);
182 igs_crtc_write(iot, ioh, 0x13, 0x50);
183 igs_crtc_write(iot, ioh, 0x14, 0x00);
184 igs_crtc_write(iot, ioh, 0x15, 0xe6);
185 igs_crtc_write(iot, ioh, 0x16, 0x04);
186 igs_crtc_write(iot, ioh, 0x17, 0xc3);
188 igs_crtc_write(iot, ioh, 0x18, 0xff);
199 bus_space_tag_t iot = dc->dc_iot;
202 igs_grfx_write(iot, ioh, 0, 0x00);
203 igs_grfx_write(iot, ioh, 1, 0x00);
204 igs_grfx_write(iot, ioh, 2, 0x00);
205 igs_grfx_write(iot, ioh, 3, 0x00);
206 igs_grfx_write(iot, ioh, 4, 0x00);
207 igs_grfx_write(iot, ioh, 5, 0x60); /* SRMODE, MODE256 */
208 igs_grfx_write(iot, ioh, 6, 0x05); /* 64k @ a0000, GRAPHICS */
209 igs_grfx_write(iot, ioh, 7, 0x0f); /* color compare all */
210 igs_grfx_write(iot, ioh, 8, 0xff); /* bitmask = all bits mutable */
221 bus_space_tag_t iot = dc->dc_iot;
225 igs_attr_flip_flop(iot, ioh); /* reset attr flip-flop to address */
228 igs_attr_write(iot, ioh, i, i);
230 igs_attr_write(iot, ioh, 0x10, 0x01); /* select graphic mode */
231 igs_attr_write(iot, ioh, 0x11, 0x00); /* crt overscan color */
232 igs_attr_write(iot, ioh, 0x12, 0x0f); /* color plane enable */
233 igs_attr_write(iot, ioh, 0x13, 0x00);
234 igs_attr_write(iot, ioh, 0x14, 0x00);
244 bus_space_tag_t iot = dc->dc_iot;
247 igs_attr_flip_flop(iot, ioh);
248 bus_space_write_1(iot, ioh, IGS_ATTR_IDX, 0x20);
249 bus_space_write_1(iot, ioh, IGS_ATTR_IDX, 0x20);
259 bus_space_tag_t iot = dc->dc_iot;
262 bus_space_write_1(iot, ioh, IGS_EXT_IDX, 0xb9);
263 bus_space_write_1(iot, ioh, IGS_EXT_PORT, 0x80);
264 bus_space_write_1(iot, ioh, IGS_EXT_PORT, 0x00);
271 bus_space_tag_t iot = dc->dc_iot;
275 igs_ext_write(iot, ioh, 0x10, 0x10); /* IGS_EXT_START_ADDR enable */
276 igs_ext_write(iot, ioh, 0x12, 0x00); /* IGS_EXT_IRQ_CTL disable */
277 igs_ext_write(iot, ioh, 0x13, 0x00); /* MBZ for normal operation */
279 igs_ext_write(iot, ioh, 0x31, 0x00); /* segment write ptr */
280 igs_ext_write(iot, ioh, 0x32, 0x00); /* segment read ptr */
283 igs_ext_write(iot, ioh, 0x33, 0x1d);
286 igs_ext_write(iot, ioh, 0x50, 0x00);
287 igs_ext_write(iot, ioh, 0x51, 0x00);
288 igs_ext_write(iot, ioh, 0x52, 0x00);
289 igs_ext_write(iot, ioh, 0x53, 0x00);
290 igs_ext_write(iot, ioh, 0x54, 0x00);
291 igs_ext_write(iot, ioh, 0x55, 0x00);
292 igs_ext_write(iot, ioh, 0x56, 0x00); /* sprite control */
295 igs_ext_write(iot, ioh, 0x57, 0x01); /* raster fb */
298 igs_ext_write(iot, ioh, 0x58, 0x00);
299 igs_ext_write(iot, ioh, 0x59, 0x00);
300 igs_ext_write(iot, ioh, 0x5A, 0x00);
308 igs_ext_write(iot, ioh, 0x70, 0x0B); /* enable fifo, seq */
311 igs_ext_write(iot, ioh, 0x73, 0x30); /* XXX: krups: 0x20 */
314 igs_ext_write(iot, ioh, 0x74, 0x10); /* XXX: krups: 0x1b */
315 igs_ext_write(iot, ioh, 0x75, 0x10); /* XXX: krups: 0x1e */
317 igs_ext_write(iot, ioh, 0x76, 0x00); /* ext seq. */
318 igs_ext_write(iot, ioh, 0x7A, 0xC8); /* ext. hidden ctl */
321 igs_ext_write(iot, ioh, 0x90, 0x01);
324 igs_ext_write(iot, ioh, 0xBF, 0x00);
326 igs_ext_write(iot, ioh, 0xB0, 0xD2); /* VCLK = 25.175MHz */
327 igs_ext_write(iot, ioh, 0xB1, 0xD3);
328 igs_ext_write(iot, ioh, 0xB2, 0xDB); /* MCLK = 75MHz*/
329 igs_ext_write(iot, ioh, 0xB3, 0x54);
333 igs_ext_write(iot, ioh, 0xF8, 0x04); /* XXX: ??? */
336 igs_ext_write(iot, ioh, 0x11, 0x00);
337 igs_ext_write(iot, ioh, 0x77, 0x01); /* 8bpp, indexed */
338 igs_ext_write(iot, ioh, 0x14, 0x51);
339 igs_ext_write(iot, ioh, 0x15, 0x00);
346 bus_space_tag_t iot = dc->dc_iot;
351 reg = igs_ext_read(iot, ioh, IGS_EXT_SPRITE_CTL);
352 igs_ext_write(iot, ioh, IGS_EXT_SPRITE_CTL,
356 bus_space_write_1(iot, ioh, IGS_DAC_CMD, 0x06);
359 igs_ext_write(iot, ioh, IGS_EXT_SPRITE_CTL, reg);
361 bus_space_write_1(iot, ioh, IGS_PEL_MASK, 0xff);
368 bus_space_tag_t iot = dc->dc_iot;
371 igs_crtc_write(iot, ioh, 0x11, 0x00); /* write enable CRTC 0..7 */
373 igs_crtc_write(iot, ioh, 0x00, 0xa3);
374 igs_crtc_write(iot, ioh, 0x01, 0x7f);
375 igs_crtc_write(iot, ioh, 0x02, 0x7f); /* krups: 80 */
376 igs_crtc_write(iot, ioh, 0x03, 0x85); /* krups: 84 */
377 igs_crtc_write(iot, ioh, 0x04, 0x84); /* krups: 88 */
378 igs_crtc_write(iot, ioh, 0x05, 0x95); /* krups: 99 */
379 igs_crtc_write(iot, ioh, 0x06, 0x24);
380 igs_crtc_write(iot, ioh, 0x07, 0xfd);
383 igs_crtc_write(iot, ioh, 0x08, 0x00);
384 igs_crtc_write(iot, ioh, 0x09, 0x60); /* <- either 0x40 or 0x60 */
385 igs_crtc_write(iot, ioh, 0x0a, 0x00);
386 igs_crtc_write(iot, ioh, 0x0b, 0x00);
387 igs_crtc_write(iot, ioh, 0x0c, 0x00);
388 igs_crtc_write(iot, ioh, 0x0d, 0x00);
389 igs_crtc_write(iot, ioh, 0x0e, 0x00);
390 igs_crtc_write(iot, ioh, 0x0f, 0x00);
392 igs_crtc_write(iot, ioh, 0x10, 0x06);
393 igs_crtc_write(iot, ioh, 0x11, 0x8c);
394 igs_crtc_write(iot, ioh, 0x12, 0xff);
395 igs_crtc_write(iot, ioh, 0x13, 0x80); /* depends on BPP */
396 igs_crtc_write(iot, ioh, 0x14, 0x0f);
397 igs_crtc_write(iot, ioh, 0x15, 0x02);
398 igs_crtc_write(iot, ioh, 0x16, 0x21);
399 igs_crtc_write(iot, ioh, 0x17, 0xe3);
400 igs_crtc_write(iot, ioh, 0x18, 0xff);
402 igs_ext_write(iot, ioh, 0xB0, 0xE2); /* VCLK */
403 igs_ext_write(iot, ioh, 0xB1, 0x58);
406 igs_ext_write(iot, ioh, 0xB2, 0xE2); /* MCLK */
407 igs_ext_write(iot, ioh, 0xB3, 0x58);
411 igs_ext_write(iot, ioh, 0x11, 0x00);
412 igs_ext_write(iot, ioh, 0x77, 0x01); /* 8bpp, indexed */
413 igs_ext_write(iot, ioh, 0x14, 0x81);
414 igs_ext_write(iot, ioh, 0x15, 0x00);
483 bus_space_tag_t iot = dc->dc_iot;
524 reg = igs_ext_read(iot, ioh, IGS_EXT_SPRITE_CTL);
525 igs_ext_write(iot, ioh, IGS_EXT_SPRITE_CTL,
536 igs_ext_write(iot, ioh, IGS_EXT_SPRITE_CTL, reg);
538 bus_space_write_1(iot, ioh, IGS_PEL_MASK, 0xff);
540 igs_crtc_write(iot, ioh, 0x11, 0x00); /* write enable CRTC 0..7 */
560 igs_crtc_write(iot, ioh, 0x00, (mode->htotal >> 3) - 5);
561 igs_crtc_write(iot, ioh, 0x01, (mode->hdisplay >> 3) - 1);
562 igs_crtc_write(iot, ioh, 0x02, (hblank_start >> 3) - 1);
563 iot, ioh, 0x03, 0x80 | (((hblank_end >> 3) - 1) & 0x1f));
564 igs_crtc_write(iot, ioh, 0x04, hsync_start >> 3);
565 igs_crtc_write(iot, ioh, 0x05, ((((hblank_end >> 3) - 1) & 0x20) << 2)
567 igs_crtc_write(iot, ioh, 0x06, (mode->vtotal - 2) & 0xff);
568 igs_crtc_write(iot, ioh, 0x07,
578 igs_crtc_write(iot, ioh, 0x08, 0x00);
579 igs_crtc_write(iot, ioh, 0x09, 0x40 |
581 igs_crtc_write(iot, ioh, 0x0a, 0x00);
582 igs_crtc_write(iot, ioh, 0x0b, 0x00);
583 igs_crtc_write(iot, ioh, 0x0c, 0x00);
584 igs_crtc_write(iot, ioh, 0x0d, 0x00);
585 igs_crtc_write(iot, ioh, 0x0e, 0x00);
586 igs_crtc_write(iot, ioh, 0x0f, 0x00);
588 igs_crtc_write(iot, ioh, 0x10, vsync_start & 0xff);
589 igs_crtc_write(iot, ioh, 0x11, (vsync_end & 0x0f) | 0x20);
590 igs_crtc_write(iot, ioh, 0x12, (mode->vdisplay - 1) & 0xff);
591 igs_crtc_write(iot, ioh, 0x13, hoffset & 0xff);
592 igs_crtc_write(iot, ioh, 0x14, 0x0f);
593 igs_crtc_write(iot, ioh, 0x15, (vblank_start - 1) & 0xff);
594 igs_crtc_write(iot, ioh, 0x16, (vblank_end - 1) & 0xff);
595 igs_crtc_write(iot, ioh, 0x17, 0xe3);
596 igs_crtc_write(iot, ioh, 0x18, 0xff);
599 igs_attr_write(iot, ioh, i, i);
601 igs_attr_write(iot, ioh, 0x10, 0x01);
602 igs_attr_write(iot, ioh, 0x11, 0x00);
603 igs_attr_write(iot, ioh, 0x12, 0x0f);
604 igs_attr_write(iot, ioh, 0x13, 0x00);
606 igs_grfx_write(iot, ioh, 0x00, 0x00);
607 igs_grfx_write(iot, ioh, 0x01, 0x00);
608 igs_grfx_write(iot, ioh, 0x02, 0x00);
609 igs_grfx_write(iot, ioh, 0x03, 0x00);
610 igs_grfx_write(iot, ioh, 0x04, 0x00);
611 igs_grfx_write(iot, ioh, 0x05, 0x60);
612 igs_grfx_write(iot, ioh, 0x06, 0x05);
613 igs_grfx_write(iot, ioh, 0x07, 0x0f);
614 igs_grfx_write(iot, ioh, 0x08, 0xff);
617 igs_ext_write(iot, ioh, IGS_EXT_MCLK0, 0x91);
618 igs_ext_write(iot, ioh, IGS_EXT_MCLK1, 0x6a);
621 igs_ext_write(iot, ioh, IGS_EXT_VOVFL, overflow);
622 igs_ext_write(iot, ioh, IGS_EXT_SEQ_MISC, seq_mode);
623 igs_ext_write(iot, ioh, 0x14, memfetch & 0xff);
624 igs_ext_write(iot, ioh, 0x15,
635 igs_ext_write(iot, ioh, IGS_EXT_VCLK0, vclk1);
636 igs_ext_write(iot, ioh, IGS_EXT_VCLK1, vclk2);
637 igs_ext_write(iot, ioh, 0xBA, vclk3);