Lines Matching refs:outb_p
159 outb_p(reg, vga_video_port_reg); in write_vga()
160 outb_p(val >> 8, vga_video_port_val); in write_vga()
161 outb_p(reg+1, vga_video_port_reg); in write_vga()
162 outb_p(val & 0xff, vga_video_port_val); in write_vga()
244 outb_p (6, 0x3ce) ; in vgacon_startup()
245 outb_p (6, 0x3cf) ; in vgacon_startup()
256 outb_p (i, 0x3c0) ; in vgacon_startup()
257 outb_p (i, 0x3c0) ; in vgacon_startup()
259 outb_p (0x20, 0x3c0) ; in vgacon_startup()
265 outb_p (color_table[i], 0x3c8) ; in vgacon_startup()
266 outb_p (default_red[i], 0x3c9) ; in vgacon_startup()
267 outb_p (default_grn[i], 0x3c9) ; in vgacon_startup()
268 outb_p (default_blu[i], 0x3c9) ; in vgacon_startup()
414 outb_p(0x0a, vga_video_port_reg); /* Cursor start */ in vgacon_set_cursor_size()
416 outb_p(0x0b, vga_video_port_reg); /* Cursor end */ in vgacon_set_cursor_size()
422 outb_p(0x0a, vga_video_port_reg); /* Cursor start */ in vgacon_set_cursor_size()
423 outb_p(curs, vga_video_port_val); in vgacon_set_cursor_size()
424 outb_p(0x0b, vga_video_port_reg); /* Cursor end */ in vgacon_set_cursor_size()
425 outb_p(cure, vga_video_port_val); in vgacon_set_cursor_size()
492 outb_p (table[i], dac_reg) ; in vga_set_palette()
493 outb_p (c->vc_palette[j++]>>2, dac_val) ; in vga_set_palette()
494 outb_p (c->vc_palette[j++]>>2, dac_val) ; in vga_set_palette()
495 outb_p (c->vc_palette[j++]>>2, dac_val) ; in vga_set_palette()
537 outb_p(0x00,vga_video_port_reg); /* HorizontalTotal */ in vga_vesa_blank()
539 outb_p(0x01,vga_video_port_reg); /* HorizDisplayEnd */ in vga_vesa_blank()
541 outb_p(0x04,vga_video_port_reg); /* StartHorizRetrace */ in vga_vesa_blank()
543 outb_p(0x05,vga_video_port_reg); /* EndHorizRetrace */ in vga_vesa_blank()
545 outb_p(0x07,vga_video_port_reg); /* Overflow */ in vga_vesa_blank()
547 outb_p(0x10,vga_video_port_reg); /* StartVertRetrace */ in vga_vesa_blank()
549 outb_p(0x11,vga_video_port_reg); /* EndVertRetrace */ in vga_vesa_blank()
551 outb_p(0x17,vga_video_port_reg); /* ModeControl */ in vga_vesa_blank()
553 outb_p(0x01,seq_port_reg); /* ClockingMode */ in vga_vesa_blank()
560 outb_p(0x01,seq_port_reg); in vga_vesa_blank()
561 outb_p(vga_state.ClockingMode | 0x20,seq_port_val); in vga_vesa_blank()
565 outb_p(vga_state.CrtMiscIO & 0xef,video_misc_wr); in vga_vesa_blank()
573 outb_p(0x10,vga_video_port_reg); /* StartVertRetrace */ in vga_vesa_blank()
574 outb_p(0xff,vga_video_port_val); /* maximum value */ in vga_vesa_blank()
575 outb_p(0x11,vga_video_port_reg); /* EndVertRetrace */ in vga_vesa_blank()
576 outb_p(0x40,vga_video_port_val); /* minimum (bits 0..3) */ in vga_vesa_blank()
577 outb_p(0x07,vga_video_port_reg); /* Overflow */ in vga_vesa_blank()
578 outb_p(vga_state.Overflow | 0x84,vga_video_port_val); /* bits 9,10 of vert. retrace */ in vga_vesa_blank()
587 outb_p(0x04,vga_video_port_reg); /* StartHorizRetrace */ in vga_vesa_blank()
588 outb_p(0xff,vga_video_port_val); /* maximum */ in vga_vesa_blank()
589 outb_p(0x05,vga_video_port_reg); /* EndHorizRetrace */ in vga_vesa_blank()
590 outb_p(0x00,vga_video_port_val); /* minimum (0) */ in vga_vesa_blank()
594 outb_p(vga_state.SeqCtrlIndex,seq_port_reg); in vga_vesa_blank()
595 outb_p(vga_state.CrtCtrlIndex,vga_video_port_reg); in vga_vesa_blank()
603 outb_p(vga_state.CrtMiscIO,video_misc_wr); in vga_vesa_unblank()
605 outb_p(0x00,vga_video_port_reg); /* HorizontalTotal */ in vga_vesa_unblank()
606 outb_p(vga_state.HorizontalTotal,vga_video_port_val); in vga_vesa_unblank()
607 outb_p(0x01,vga_video_port_reg); /* HorizDisplayEnd */ in vga_vesa_unblank()
608 outb_p(vga_state.HorizDisplayEnd,vga_video_port_val); in vga_vesa_unblank()
609 outb_p(0x04,vga_video_port_reg); /* StartHorizRetrace */ in vga_vesa_unblank()
610 outb_p(vga_state.StartHorizRetrace,vga_video_port_val); in vga_vesa_unblank()
611 outb_p(0x05,vga_video_port_reg); /* EndHorizRetrace */ in vga_vesa_unblank()
612 outb_p(vga_state.EndHorizRetrace,vga_video_port_val); in vga_vesa_unblank()
613 outb_p(0x07,vga_video_port_reg); /* Overflow */ in vga_vesa_unblank()
614 outb_p(vga_state.Overflow,vga_video_port_val); in vga_vesa_unblank()
615 outb_p(0x10,vga_video_port_reg); /* StartVertRetrace */ in vga_vesa_unblank()
616 outb_p(vga_state.StartVertRetrace,vga_video_port_val); in vga_vesa_unblank()
617 outb_p(0x11,vga_video_port_reg); /* EndVertRetrace */ in vga_vesa_unblank()
618 outb_p(vga_state.EndVertRetrace,vga_video_port_val); in vga_vesa_unblank()
619 outb_p(0x17,vga_video_port_reg); /* ModeControl */ in vga_vesa_unblank()
620 outb_p(vga_state.ModeControl,vga_video_port_val); in vga_vesa_unblank()
621 outb_p(0x01,seq_port_reg); /* ClockingMode */ in vga_vesa_unblank()
622 outb_p(vga_state.ClockingMode,seq_port_val); in vga_vesa_unblank()
625 outb_p(vga_state.SeqCtrlIndex,seq_port_reg); in vga_vesa_unblank()
626 outb_p(vga_state.CrtCtrlIndex,vga_video_port_reg); in vga_vesa_unblank()
635 outb_p (i, dac_reg) ; in vga_pal_blank()
636 outb_p (0, dac_val) ; in vga_pal_blank()
637 outb_p (0, dac_val) ; in vga_pal_blank()
638 outb_p (0, dac_val) ; in vga_pal_blank()
749 outb_p( 0x00, seq_port_reg ); /* First, the sequencer */ in vgacon_do_font_op()
750 outb_p( 0x01, seq_port_val ); /* Synchronous reset */ in vgacon_do_font_op()
751 outb_p( 0x02, seq_port_reg ); in vgacon_do_font_op()
752 outb_p( 0x04, seq_port_val ); /* CPU writes only to map 2 */ in vgacon_do_font_op()
753 outb_p( 0x04, seq_port_reg ); in vgacon_do_font_op()
754 outb_p( 0x07, seq_port_val ); /* Sequential addressing */ in vgacon_do_font_op()
755 outb_p( 0x00, seq_port_reg ); in vgacon_do_font_op()
756 outb_p( 0x03, seq_port_val ); /* Clear synchronous reset */ in vgacon_do_font_op()
758 outb_p( 0x04, gr_port_reg ); /* Now, the graphics controller */ in vgacon_do_font_op()
759 outb_p( 0x02, gr_port_val ); /* select map 2 */ in vgacon_do_font_op()
760 outb_p( 0x05, gr_port_reg ); in vgacon_do_font_op()
761 outb_p( 0x00, gr_port_val ); /* disable odd-even addressing */ in vgacon_do_font_op()
762 outb_p( 0x06, gr_port_reg ); in vgacon_do_font_op()
763 outb_p( 0x00, gr_port_val ); /* map start at A000:0000 */ in vgacon_do_font_op()
792 outb_p( 0x00, seq_port_reg ); /* First, the sequencer */ in vgacon_do_font_op()
793 outb_p( 0x01, seq_port_val ); /* Synchronous reset */ in vgacon_do_font_op()
794 outb_p( 0x02, seq_port_reg ); in vgacon_do_font_op()
795 outb_p( 0x03, seq_port_val ); /* CPU writes to maps 0 and 1 */ in vgacon_do_font_op()
796 outb_p( 0x04, seq_port_reg ); in vgacon_do_font_op()
797 outb_p( 0x03, seq_port_val ); /* odd-even addressing */ in vgacon_do_font_op()
799 outb_p( 0x03, seq_port_reg ); /* Character Map Select */ in vgacon_do_font_op()
800 outb_p( font_select, seq_port_val ); in vgacon_do_font_op()
802 outb_p( 0x00, seq_port_reg ); in vgacon_do_font_op()
803 outb_p( 0x03, seq_port_val ); /* clear synchronous reset */ in vgacon_do_font_op()
805 outb_p( 0x04, gr_port_reg ); /* Now, the graphics controller */ in vgacon_do_font_op()
806 outb_p( 0x00, gr_port_val ); /* select map 0 for CPU */ in vgacon_do_font_op()
807 outb_p( 0x05, gr_port_reg ); in vgacon_do_font_op()
808 outb_p( 0x10, gr_port_val ); /* enable even-odd addressing */ in vgacon_do_font_op()
809 outb_p( 0x06, gr_port_reg ); in vgacon_do_font_op()
810 outb_p( beg, gr_port_val ); /* map starts at b800:0 or b000:0 */ in vgacon_do_font_op()
824 outb_p ( 0x12, attrib_port ); /* color plane enable register */ in vgacon_do_font_op()
825 outb_p ( ch512 ? 0x07 : 0x0f, attrib_port ); in vgacon_do_font_op()
829 outb_p ( 0x20, attrib_port ); in vgacon_do_font_op()
863 outb_p( 0x07, vga_video_port_reg ); /* CRTC overflow register */ in vgacon_adjust_height()
865 outb_p( 0x09, vga_video_port_reg ); /* Font size register */ in vgacon_adjust_height()
876 outb_p( 0x07, vga_video_port_reg ); /* CRTC overflow register */ in vgacon_adjust_height()
877 outb_p( ovr, vga_video_port_val ); in vgacon_adjust_height()
878 outb_p( 0x09, vga_video_port_reg ); /* Font size */ in vgacon_adjust_height()
879 outb_p( fsr, vga_video_port_val ); in vgacon_adjust_height()
880 outb_p( 0x12, vga_video_port_reg ); /* Vertical display limit */ in vgacon_adjust_height()
881 outb_p( vde, vga_video_port_val ); in vgacon_adjust_height()