20 #ifndef MACHINE_X86_VGA_H 21 #define MACHINE_X86_VGA_H 23 #define VGA_BASE 0x3C0 24 #define VGA_AC_INDEX 0x0 25 #define VGA_AC_WRITE 0x0 26 #define VGA_AC_READ 0x1 27 #define VGA_MISC_WRITE 0x2 28 #define VGA_SEQ_INDEX 0x4 29 #define VGA_SEQ_DATA 0x5 30 #define VGA_DAC_READ_INDEX 0x7 31 #define VGA_DAC_WRITE_INDEX 0x8 32 #define VGA_DAC_DATA 0x9 33 #define VGA_MISC_READ 0xC 34 #define VGA_GC_INDEX 0xE 35 #define VGA_GC_DATA 0xF 37 #define VGA_CRTC_INDEX 0x14 38 #define VGA_CRTC_DATA 0x15 39 #define VGA_INSTAT_READ 0x1A 41 #define VGA_NUM_SEQ_REGS 5 42 #define VGA_NUM_CRTC_REGS 25 43 #define VGA_NUM_GC_REGS 9 44 #define VGA_NUM_AC_REGS 21 45 #define VGA_NUM_REGS \ 46 (1 + VGA_NUM_SEQ_REGS + VGA_NUM_CRTC_REGS + VGA_NUM_GC_REGS + \