vga.h File Reference
Go to the source code of this file.
|
Data Structures |
| struct | vga_par |
| struct | fb_bitfield |
| struct | screeninfo |
Defines |
| #define | VGA_H_INCL 1 |
| #define | u8 unsigned char |
| #define | u16 unsigned short |
| #define | u32 unsigned int |
| #define | __u32 u32 |
| #define | VERROR -1 |
| #define | CHAR_HEIGHT 16 |
| #define | LINES 25 |
| #define | COLS 80 |
| #define | write_crtc(data, addr) outb(addr,CRT_IC); outb(data,CRT_DC) |
| #define | write_att(data, addr) inb(IS1_RC); inb(0x80); outb(addr,ATT_IW); inb(0x80); outb(data,ATT_IW); inb(0x80) |
| #define | write_seq(data, addr) outb(addr,SEQ_I); outb(data,SEQ_D) |
| #define | write_gra(data, addr) outb(addr,GRA_I); outb(data,GRA_D) |
| #define | vga_hardware_fixup() do{} while(0) |
| #define | SYNC_HOR_HIGH_ACT 1 |
| #define | SYNC_VERT_HIGH_ACT 2 |
| #define | SYNC_EXT 4 |
| #define | SYNC_COMP_HIGH_ACT 8 |
| #define | SYNC_BROADCAST 16 |
| #define | SYNC_ON_GREEN 32 |
| #define | VMODE_NONINTERLACED 0 |
| #define | VMODE_INTERLACED 1 |
| #define | VMODE_DOUBLE 2 |
| #define | VMODE_MASK 255 |
| #define | VMODE_YWRAP 256 |
| #define | VMODE_SMOOTH_XPAN 512 |
| #define | VMODE_CONUPDATE 512 |
| #define | CRT_DC 0x3D5 |
| #define | CRT_DM 0x3B5 |
| #define | ATT_R 0x3C1 |
| #define | GRA_D 0x3CF |
| #define | SEQ_D 0x3C5 |
| #define | MIS_R 0x3CC |
| #define | MIS_W 0x3C2 |
| #define | IS1_RC 0x3DA |
| #define | IS1_RM 0x3BA |
| #define | PEL_D 0x3C9 |
| #define | PEL_MSK 0x3C6 |
| #define | GRA_E0 0x3CC |
| #define | GRA_E1 0x3CA |
| #define | CRT_IC 0x3D4 |
| #define | CRT_IM 0x3B4 |
| #define | ATT_IW 0x3C0 |
| #define | GRA_I 0x3CE |
| #define | SEQ_I 0x3C4 |
| #define | PEL_IW 0x3C8 |
| #define | PEL_IR 0x3C7 |
| #define | CRTC_C 25 |
| #define | ATT_C 21 |
| #define | GRA_C 9 |
| #define | SEQ_C 5 |
| #define | MIS_C 1 |
| #define | CRTC_H_TOTAL 0 |
| #define | CRTC_H_DISP 1 |
| #define | CRTC_H_BLANK_START 2 |
| #define | CRTC_H_BLANK_END 3 |
| #define | CRTC_H_SYNC_START 4 |
| #define | CRTC_H_SYNC_END 5 |
| #define | CRTC_V_TOTAL 6 |
| #define | CRTC_OVERFLOW 7 |
| #define | CRTC_PRESET_ROW 8 |
| #define | CRTC_MAX_SCAN 9 |
| #define | CRTC_CURSOR_START 0x0A |
| #define | CRTC_CURSOR_END 0x0B |
| #define | CRTC_START_HI 0x0C |
| #define | CRTC_START_LO 0x0D |
| #define | CRTC_CURSOR_HI 0x0E |
| #define | CRTC_CURSOR_LO 0x0F |
| #define | CRTC_V_SYNC_START 0x10 |
| #define | CRTC_V_SYNC_END 0x11 |
| #define | CRTC_V_DISP_END 0x12 |
| #define | CRTC_OFFSET 0x13 |
| #define | CRTC_UNDERLINE 0x14 |
| #define | CRTC_V_BLANK_START 0x15 |
| #define | CRTC_V_BLANK_END 0x16 |
| #define | CRTC_MODE 0x17 |
| #define | CRTC_LINE_COMPARE 0x18 |
| #define | ATC_MODE 0x10 |
| #define | ATC_OVERSCAN 0x11 |
| #define | ATC_PLANE_ENABLE 0x12 |
| #define | ATC_PEL 0x13 |
| #define | ATC_COLOR_PAGE 0x14 |
| #define | SEQ_CLOCK_MODE 0x01 |
| #define | SEQ_PLANE_WRITE 0x02 |
| #define | SEQ_CHARACTER_MAP 0x03 |
| #define | SEQ_MEMORY_MODE 0x04 |
| #define | GDC_SR_VALUE 0x00 |
| #define | GDC_SR_ENABLE 0x01 |
| #define | GDC_COMPARE_VALUE 0x02 |
| #define | GDC_DATA_ROTATE 0x03 |
| #define | GDC_PLANE_READ 0x04 |
| #define | GDC_MODE 0x05 |
| #define | GDC_MISC 0x06 |
| #define | GDC_COMPARE_MASK 0x07 |
| #define | GDC_BIT_MASK 0x08 |
| #define | VGA_ATTR_CLR_RED 0x4 |
| #define | VGA_ATTR_CLR_GRN 0x2 |
| #define | VGA_ATTR_CLR_BLU 0x1 |
| #define | VGA_ATTR_CLR_YEL (VGA_ATTR_CLR_RED | VGA_ATTR_CLR_GRN) |
| #define | VGA_ATTR_CLR_CYN (VGA_ATTR_CLR_GRN | VGA_ATTR_CLR_BLU) |
| #define | VGA_ATTR_CLR_MAG (VGA_ATTR_CLR_BLU | VGA_ATTR_CLR_RED) |
| #define | VGA_ATTR_CLR_BLK 0 |
| #define | VGA_ATTR_CLR_WHT (VGA_ATTR_CLR_RED | VGA_ATTR_CLR_GRN | VGA_ATTR_CLR_BLU) |
| #define | VGA_ATTR_BNK 0x80 |
| #define | VGA_ATTR_ITN 0x08 |
Functions |
| u8 | read_seq_b (u16 addr) |
| u8 | read_gra_b (u16 addr) |
| u8 | read_crtc_b (u16 addr) |
| u8 | read_att_b (u16 addr) |
Define Documentation
Definition at line 15 of file vga.h.
Definition at line 19 of file vga.h.
| #define u16 unsigned short |
Definition at line 20 of file vga.h.
Definition at line 21 of file vga.h.
Definition at line 22 of file vga.h.
Definition at line 24 of file vga.h.
Definition at line 25 of file vga.h.
Definition at line 26 of file vga.h.
Definition at line 27 of file vga.h.
| #define write_crtc |
( |
data, |
|
|
addr |
|
) |
outb(addr,CRT_IC); outb(data,CRT_DC) |
| #define write_att |
( |
data, |
|
|
addr |
|
) |
inb(IS1_RC); inb(0x80); outb(addr,ATT_IW); inb(0x80); outb(data,ATT_IW); inb(0x80) |
Definition at line 31 of file vga.h.
| #define write_seq |
( |
data, |
|
|
addr |
|
) |
outb(addr,SEQ_I); outb(data,SEQ_D) |
Definition at line 32 of file vga.h.
| #define write_gra |
( |
data, |
|
|
addr |
|
) |
outb(addr,GRA_I); outb(data,GRA_D) |
Definition at line 33 of file vga.h.
| #define vga_hardware_fixup |
( |
|
) |
do{} while(0) |
Definition at line 43 of file vga.h.
| #define SYNC_HOR_HIGH_ACT 1 |
Definition at line 46 of file vga.h.
| #define SYNC_VERT_HIGH_ACT 2 |
Definition at line 47 of file vga.h.
Definition at line 48 of file vga.h.
| #define SYNC_COMP_HIGH_ACT 8 |
Definition at line 49 of file vga.h.
| #define SYNC_BROADCAST 16 |
Definition at line 50 of file vga.h.
Definition at line 54 of file vga.h.
| #define VMODE_NONINTERLACED 0 |
Definition at line 56 of file vga.h.
| #define VMODE_INTERLACED 1 |
Definition at line 57 of file vga.h.
Definition at line 58 of file vga.h.
Definition at line 59 of file vga.h.
Definition at line 61 of file vga.h.
| #define VMODE_SMOOTH_XPAN 512 |
Definition at line 62 of file vga.h.
| #define VMODE_CONUPDATE 512 |
Definition at line 63 of file vga.h.
Definition at line 66 of file vga.h.
Definition at line 67 of file vga.h.
Definition at line 68 of file vga.h.
Definition at line 69 of file vga.h.
Definition at line 70 of file vga.h.
Definition at line 72 of file vga.h.
Definition at line 73 of file vga.h.
Definition at line 75 of file vga.h.
Definition at line 76 of file vga.h.
Definition at line 77 of file vga.h.
Definition at line 78 of file vga.h.
Definition at line 81 of file vga.h.
Definition at line 82 of file vga.h.
Definition at line 86 of file vga.h.
Definition at line 87 of file vga.h.
Definition at line 88 of file vga.h.
Definition at line 89 of file vga.h.
Definition at line 90 of file vga.h.
Definition at line 91 of file vga.h.
Definition at line 92 of file vga.h.
Definition at line 95 of file vga.h.
Definition at line 97 of file vga.h.
Definition at line 98 of file vga.h.
Definition at line 99 of file vga.h.
| #define CRTC_H_BLANK_START 2 |
| #define CRTC_H_BLANK_END 3 |
| #define CRTC_H_SYNC_START 4 |
| #define CRTC_H_SYNC_END 5 |
| #define CRTC_PRESET_ROW 8 |
| #define CRTC_CURSOR_START 0x0A |
| #define CRTC_CURSOR_END 0x0B |
| #define CRTC_START_HI 0x0C |
| #define CRTC_START_LO 0x0D |
| #define CRTC_CURSOR_HI 0x0E |
| #define CRTC_CURSOR_LO 0x0F |
| #define CRTC_V_SYNC_START 0x10 |
| #define CRTC_V_SYNC_END 0x11 |
| #define CRTC_V_DISP_END 0x12 |
| #define CRTC_UNDERLINE 0x14 |
| #define CRTC_V_BLANK_START 0x15 |
| #define CRTC_V_BLANK_END 0x16 |
| #define CRTC_LINE_COMPARE 0x18 |
| #define ATC_OVERSCAN 0x11 |
| #define ATC_PLANE_ENABLE 0x12 |
| #define ATC_COLOR_PAGE 0x14 |
| #define SEQ_CLOCK_MODE 0x01 |
| #define SEQ_PLANE_WRITE 0x02 |
| #define SEQ_CHARACTER_MAP 0x03 |
| #define SEQ_MEMORY_MODE 0x04 |
| #define GDC_SR_VALUE 0x00 |
| #define GDC_SR_ENABLE 0x01 |
| #define GDC_COMPARE_VALUE 0x02 |
| #define GDC_DATA_ROTATE 0x03 |
| #define GDC_PLANE_READ 0x04 |
| #define GDC_COMPARE_MASK 0x07 |
| #define GDC_BIT_MASK 0x08 |
| #define VGA_ATTR_CLR_RED 0x4 |
| #define VGA_ATTR_CLR_GRN 0x2 |
| #define VGA_ATTR_CLR_BLU 0x1 |
| #define VGA_ATTR_CLR_YEL (VGA_ATTR_CLR_RED | VGA_ATTR_CLR_GRN) |
| #define VGA_ATTR_CLR_CYN (VGA_ATTR_CLR_GRN | VGA_ATTR_CLR_BLU) |
| #define VGA_ATTR_CLR_MAG (VGA_ATTR_CLR_BLU | VGA_ATTR_CLR_RED) |
| #define VGA_ATTR_CLR_BLK 0 |
| #define VGA_ATTR_CLR_WHT (VGA_ATTR_CLR_RED | VGA_ATTR_CLR_GRN | VGA_ATTR_CLR_BLU) |
| #define VGA_ATTR_BNK 0x80 |
| #define VGA_ATTR_ITN 0x08 |
Function Documentation
| u8 read_seq_b |
( |
u16 |
addr |
) |
|
| u8 read_gra_b |
( |
u16 |
addr |
) |
|
| u8 read_crtc_b |
( |
u16 |
addr |
) |
|
| u8 read_att_b |
( |
u16 |
addr |
) |
|