Annotation of qemu/roms/seabios/vgasrc/stdvga.h, revision 1.1

1.1     ! root        1: #ifndef __STDVGA_H
        !             2: #define __STDVGA_H
        !             3: 
        !             4: #include "types.h" // u8
        !             5: 
        !             6: // VGA registers
        !             7: #define VGAREG_ACTL_ADDRESS            0x3c0
        !             8: #define VGAREG_ACTL_WRITE_DATA         0x3c0
        !             9: #define VGAREG_ACTL_READ_DATA          0x3c1
        !            10: 
        !            11: #define VGAREG_INPUT_STATUS            0x3c2
        !            12: #define VGAREG_WRITE_MISC_OUTPUT       0x3c2
        !            13: #define VGAREG_VIDEO_ENABLE            0x3c3
        !            14: #define VGAREG_SEQU_ADDRESS            0x3c4
        !            15: #define VGAREG_SEQU_DATA               0x3c5
        !            16: 
        !            17: #define VGAREG_PEL_MASK                0x3c6
        !            18: #define VGAREG_DAC_STATE               0x3c7
        !            19: #define VGAREG_DAC_READ_ADDRESS        0x3c7
        !            20: #define VGAREG_DAC_WRITE_ADDRESS       0x3c8
        !            21: #define VGAREG_DAC_DATA                0x3c9
        !            22: 
        !            23: #define VGAREG_READ_FEATURE_CTL        0x3ca
        !            24: #define VGAREG_READ_MISC_OUTPUT        0x3cc
        !            25: 
        !            26: #define VGAREG_GRDC_ADDRESS            0x3ce
        !            27: #define VGAREG_GRDC_DATA               0x3cf
        !            28: 
        !            29: #define VGAREG_MDA_CRTC_ADDRESS        0x3b4
        !            30: #define VGAREG_MDA_CRTC_DATA           0x3b5
        !            31: #define VGAREG_VGA_CRTC_ADDRESS        0x3d4
        !            32: #define VGAREG_VGA_CRTC_DATA           0x3d5
        !            33: 
        !            34: #define VGAREG_MDA_WRITE_FEATURE_CTL   0x3ba
        !            35: #define VGAREG_VGA_WRITE_FEATURE_CTL   0x3da
        !            36: #define VGAREG_ACTL_RESET              0x3da
        !            37: 
        !            38: #define VGAREG_MDA_MODECTL             0x3b8
        !            39: #define VGAREG_CGA_MODECTL             0x3d8
        !            40: #define VGAREG_CGA_PALETTE             0x3d9
        !            41: 
        !            42: /* Video memory */
        !            43: #define SEG_GRAPH 0xA000
        !            44: #define SEG_CTEXT 0xB800
        !            45: #define SEG_MTEXT 0xB000
        !            46: 
        !            47: // stdvgamodes.c
        !            48: struct vgamode_s *stdvga_find_mode(int mode);
        !            49: void stdvga_list_modes(u16 seg, u16 *dest, u16 *last);
        !            50: void stdvga_build_video_param(void);
        !            51: void stdvga_override_crtc(int mode, u8 *crtc);
        !            52: int stdvga_set_mode(struct vgamode_s *vmode_g, int flags);
        !            53: 
        !            54: // stdvgaio.c
        !            55: u8 stdvga_pelmask_read(void);
        !            56: void stdvga_pelmask_write(u8 val);
        !            57: u8 stdvga_misc_read(void);
        !            58: void stdvga_misc_write(u8 value);
        !            59: void stdvga_misc_mask(u8 off, u8 on);
        !            60: u8 stdvga_sequ_read(u8 index);
        !            61: void stdvga_sequ_write(u8 index, u8 value);
        !            62: void stdvga_sequ_mask(u8 index, u8 off, u8 on);
        !            63: u8 stdvga_grdc_read(u8 index);
        !            64: void stdvga_grdc_write(u8 index, u8 value);
        !            65: void stdvga_grdc_mask(u8 index, u8 off, u8 on);
        !            66: u8 stdvga_crtc_read(u16 crtc_addr, u8 index);
        !            67: void stdvga_crtc_write(u16 crtc_addr, u8 index, u8 value);
        !            68: void stdvga_crtc_mask(u16 crtc_addr, u8 index, u8 off, u8 on);
        !            69: u8 stdvga_attr_read(u8 index);
        !            70: void stdvga_attr_write(u8 index, u8 value);
        !            71: void stdvga_attr_mask(u8 index, u8 off, u8 on);
        !            72: u8 stdvga_attrindex_read(void);
        !            73: void stdvga_attrindex_write(u8 value);
        !            74: void stdvga_dac_read(u16 seg, u8 *data_far, u8 start, int count);
        !            75: void stdvga_dac_write(u16 seg, u8 *data_far, u8 start, int count);
        !            76: 
        !            77: // stdvga.c
        !            78: void stdvga_set_border_color(u8 color);
        !            79: void stdvga_set_overscan_border_color(u8 color);
        !            80: u8 stdvga_get_overscan_border_color(void);
        !            81: void stdvga_set_palette(u8 palid);
        !            82: void stdvga_set_all_palette_reg(u16 seg, u8 *data_far);
        !            83: void stdvga_get_all_palette_reg(u16 seg, u8 *data_far);
        !            84: void stdvga_toggle_intensity(u8 flag);
        !            85: void stdvga_select_video_dac_color_page(u8 flag, u8 data);
        !            86: void stdvga_read_video_dac_state(u8 *pmode, u8 *curpage);
        !            87: void stdvga_perform_gray_scale_summing(u16 start, u16 count);
        !            88: void stdvga_set_text_block_specifier(u8 spec);
        !            89: void stdvga_planar4_plane(int plane);
        !            90: void stdvga_load_font(u16 seg, void *src_far, u16 count
        !            91:                       , u16 start, u8 destflags, u8 fontsize);
        !            92: u16 stdvga_get_crtc(void);
        !            93: int stdvga_bpp_factor(struct vgamode_s *vmode_g);
        !            94: void stdvga_set_cursor_shape(u8 start, u8 end);
        !            95: void stdvga_set_cursor_pos(int address);
        !            96: void stdvga_set_scan_lines(u8 lines);
        !            97: u16 stdvga_get_vde(void);
        !            98: int stdvga_get_window(struct vgamode_s *vmode_g, int window);
        !            99: int stdvga_set_window(struct vgamode_s *vmode_g, int window, int val);
        !           100: int stdvga_get_linelength(struct vgamode_s *vmode_g);
        !           101: int stdvga_set_linelength(struct vgamode_s *vmode_g, int val);
        !           102: int stdvga_get_displaystart(struct vgamode_s *vmode_g);
        !           103: int stdvga_set_displaystart(struct vgamode_s *vmode_g, int val);
        !           104: int stdvga_get_dacformat(struct vgamode_s *vmode_g);
        !           105: int stdvga_set_dacformat(struct vgamode_s *vmode_g, int val);
        !           106: int stdvga_size_state(int states);
        !           107: int stdvga_save_state(u16 seg, void *data, int states);
        !           108: int stdvga_restore_state(u16 seg, void *data, int states);
        !           109: void stdvga_enable_video_addressing(u8 disable);
        !           110: int stdvga_init(void);
        !           111: 
        !           112: #endif // stdvga.h

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.