test: vga.h File Reference

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# vga.h File Reference

Go to the source code of this file.

## Defines

#define | MEM_VGA 0xA0000
#define | MEM_VGA_SIZE 0x20000
#define | VGA_MEMORY 2
#define | VGA_BASE_IO_PORT 0x000003B0
#define | VGA_START_BREAK_PORT 0x000003BB
#define | VGA_END_BREAK_PORT 0x000003C0
#define | VGA_MAX_IO_PORT 0x000003DF
#define | CRTC_ADDRESS_PORT_MONO 0x0004
#define | CRTC_DATA_PORT_MONO 0x0005
#define | FEAT_CTRL_WRITE_PORT_MONO 0x000A
#define | INPUT_STATUS_1_MONO 0x000A
#define | ATT_INITIALIZE_PORT_MONO INPUT_STATUS_1_MONO
#define | ATT_ADDRESS_PORT 0x0010
#define | ATT_DATA_WRITE_PORT 0x0010
#define | ATT_DATA_READ_PORT 0x0011
#define | MISC_OUTPUT_REG_WRITE_PORT 0x0012
#define | INPUT_STATUS_0_PORT 0x0012
#define | VIDEO_SUBSYSTEM_ENABLE_PORT 0x0013
#define | SEQ_ADDRESS_PORT 0x0014
#define | SEQ_DATA_PORT 0x0015
#define | DAC_PIXEL_MASK_PORT 0x0016
#define | DAC_ADDRESS_READ_PORT 0x0017
#define | DAC_STATE_PORT 0x0017
#define | DAC_ADDRESS_WRITE_PORT 0x0018
#define | DAC_DATA_REG_PORT 0x0019
#define | FEAT_CTRL_READ_PORT 0x001A
#define | MISC_OUTPUT_REG_READ_PORT 0x001C
#define | GRAPH_ADDRESS_PORT 0x001E
#define | GRAPH_DATA_PORT 0x001F
#define | CRTC_ADDRESS_PORT_COLOR 0x0024
#define | CRTC_DATA_PORT_COLOR 0x0025
#define | FEAT_CTRL_WRITE_PORT_COLOR 0x002A
#define | INPUT_STATUS_1_COLOR 0x002A
#define | ATT_INITIALIZE_PORT_COLOR INPUT_STATUS_1_COLOR
#define | IND_CURSOR_START 0x0A
#define | IND_CURSOR_END 0x0B
#define | IND_CURSOR_HIGH_LOC 0x0E
#define | IND_CURSOR_LOW_LOC 0x0F
#define | IND_VSYNC_END 0x11
#define | IND_SET_RESET_ENABLE 0x01
#define | IND_DATA_ROTATE 0x03
#define | IND_READ_MAP 0x04
#define | IND_GRAPH_MODE 0x05
#define | IND_GRAPH_MISC 0x06
#define | IND_BIT_MASK 0x08
#define | IND_SYNC_RESET 0x00
#define | IND_MAP_MASK 0x02
#define | IND_MEMORY_MODE 0x04
#define | IND_CRTC_PROTECT 0x11
#define | IND_START_ADRS_H 0x0C
#define | IND_START_ADRS_L 0x0D
#define | IND_LINE_COMPARE 0x18
#define | IND_LINE_COMPARE8 0x07
#define | IND_LINE_COMPARE9 0x09
#define | IND_SET_RESET 0x00
#define | IND_COLOR_DONT_CARE 0x07
#define | START_SYNC_RESET_VALUE 0x01
#define | END_SYNC_RESET_VALUE 0x03
#define | VIDEO_DISABLE 0
#define | VIDEO_ENABLE 0x20
#define | READ_MAP_TEST_SETTING 0x03
#define | GRAPH_ADDR_MASK 0x0F
#define | SEQ_ADDR_MASK 0x07
#define | DR_ROT_CNT 0x07
#define | DR_SET 0x00
#define | DR_AND 0x08
#define | DR_OR 0x10
#define | DR_XOR 0x18
#define | M_PROC_WRITE 0x00
#define | M_LATCH_WRITE 0x01
#define | M_COLOR_WRITE 0x02
#define | M_AND_WRITE 0x03
#define | M_DATA_READ 0x00
#define | M_COLOR_READ 0x08
#define | CHAIN4_MASK 0x08
#define | MEMORY_MODE_TEXT_DEFAULT 0x02
#define | BIT_MASK_DEFAULT 0xFF
#define | READ_MAP_DEFAULT 0x00
#define | VIDEO_MAX_COLOR_REGISTER 0xFF
#define | VIDEO_MAX_PALETTE_REGISTER 0x0F

## Define Documentation

#define ATT_ADDRESS_PORT 0x0010

| Definition at line 74 of file vga.h.

#define ATT_DATA_READ_PORT 0x0011

| Definition at line 78 of file vga.h.

#define ATT_DATA_WRITE_PORT 0x0010

| Definition at line 75 of file vga.h.

#define ATT_INITIALIZE_PORT_COLOR INPUT_STATUS_1_COLOR

| Definition at line 106 of file vga.h.

#define ATT_INITIALIZE_PORT_MONO INPUT_STATUS_1_MONO

| Definition at line 70 of file vga.h.

#define BIT_MASK_DEFAULT 0xFF

| Definition at line 205 of file vga.h. Referenced by SetGRAMInvertMode(), and SetGRAMWriteMode().

#define CHAIN4_MASK 0x08

| Definition at line 197 of file vga.h.

#define CRTC_ADDRESS_PORT_COLOR 0x0024

| Definition at line 101 of file vga.h. Referenced by FsVgaPeripheralCallout().

#define CRTC_ADDRESS_PORT_MONO 0x0004

| Definition at line 64 of file vga.h.

#define CRTC_DATA_PORT_COLOR 0x0025

| Definition at line 102 of file vga.h. Referenced by FsVgaPeripheralCallout().

#define CRTC_DATA_PORT_MONO 0x0005

| Definition at line 65 of file vga.h.

#define DAC_ADDRESS_READ_PORT 0x0017

| Definition at line 89 of file vga.h.

#define DAC_ADDRESS_WRITE_PORT 0x0018

| Definition at line 93 of file vga.h.

#define DAC_DATA_REG_PORT 0x0019

| Definition at line 94 of file vga.h.

#define DAC_PIXEL_MASK_PORT 0x0016

| Definition at line 88 of file vga.h.

#define DAC_STATE_PORT 0x0017

| Definition at line 91 of file vga.h.

#define DR_AND 0x08

| Definition at line 179 of file vga.h.

#define DR_OR 0x10

| Definition at line 180 of file vga.h.

#define DR_ROT_CNT 0x07

| Definition at line 177 of file vga.h.

#define DR_SET 0x00

| Definition at line 178 of file vga.h. Referenced by ColorSetDirect(), ColorSetGridMask(), SetGRAMCopyMode(), and SetGRAMWriteMode().

#define DR_XOR 0x18

| Definition at line 181 of file vga.h. Referenced by ColorSetDirect(), and SetGRAMInvertMode().

#define END_SYNC_RESET_VALUE 0x03

| Definition at line 145 of file vga.h.

#define FEAT_CTRL_READ_PORT 0x001A

| Definition at line 95 of file vga.h.

#define FEAT_CTRL_WRITE_PORT_COLOR 0x002A

| Definition at line 103 of file vga.h.

#define FEAT_CTRL_WRITE_PORT_MONO 0x000A

| Definition at line 66 of file vga.h.

#define GRAPH_ADDR_MASK 0x0F

| Definition at line 171 of file vga.h. Referenced by ColorSetDirect(), ColorSetGridMask(), and SetGRAMWriteMode().

#define GRAPH_ADDRESS_PORT 0x001E

| Definition at line 98 of file vga.h. Referenced by FsVgaPeripheralCallout().

#define GRAPH_DATA_PORT 0x001F

| Definition at line 99 of file vga.h.

#define IND_BIT_MASK 0x08

| Definition at line 129 of file vga.h. Referenced by ColorSetGridMask(), SetGRAMInvertMode(), and SetGRAMWriteMode().

#define IND_COLOR_DONT_CARE 0x07

| Definition at line 141 of file vga.h. Referenced by SetGRAMCopyMode(), and SetGRAMInvertMode().

#define IND_CRTC_PROTECT 0x11

| Definition at line 133 of file vga.h.

#define IND_CURSOR_END 0x0B

| Definition at line 117 of file vga.h.

#define IND_CURSOR_HIGH_LOC 0x0E

| Definition at line 118 of file vga.h.

#define IND_CURSOR_LOW_LOC 0x0F

| Definition at line 119 of file vga.h.

#define IND_CURSOR_START 0x0A

| Definition at line 116 of file vga.h.

#define IND_DATA_ROTATE 0x03

| Definition at line 125 of file vga.h. Referenced by ColorSetDirect(), ColorSetGridMask(), SetGRAMCopyMode(), SetGRAMInvertMode(), and SetGRAMWriteMode().

#define IND_GRAPH_MISC 0x06

| Definition at line 128 of file vga.h.

#define IND_GRAPH_MODE 0x05

| Definition at line 127 of file vga.h. Referenced by SetGRAMCopyMode(), SetGRAMInvertMode(), and SetGRAMWriteMode().

#define IND_LINE_COMPARE 0x18

| Definition at line 137 of file vga.h. Referenced by GetHardwareScrollReg().

#define IND_LINE_COMPARE8 0x07

| Definition at line 138 of file vga.h. Referenced by GetHardwareScrollReg().

#define IND_LINE_COMPARE9 0x09

| Definition at line 139 of file vga.h. Referenced by GetHardwareScrollReg().

#define IND_MAP_MASK 0x02

| Definition at line 131 of file vga.h. Referenced by SetGRAMWriteMode().

#define IND_MEMORY_MODE 0x04

| Definition at line 132 of file vga.h.

#define IND_READ_MAP 0x04

| Definition at line 126 of file vga.h.

#define IND_SET_RESET 0x00

| Definition at line 140 of file vga.h. Referenced by ColorSetDirect(), ColorSetGridMask(), and SetGRAMInvertMode().

#define IND_SET_RESET_ENABLE 0x01

| Definition at line 124 of file vga.h. Referenced by ColorSetDirect(), and ColorSetGridMask().

#define IND_START_ADRS_H 0x0C

| Definition at line 135 of file vga.h. Referenced by GetHardwareScrollReg().

#define IND_START_ADRS_L 0x0D

| Definition at line 136 of file vga.h. Referenced by GetHardwareScrollReg().

#define IND_SYNC_RESET 0x00

| Definition at line 130 of file vga.h.

#define IND_VSYNC_END 0x11

| Definition at line 120 of file vga.h.

#define INPUT_STATUS_0_PORT 0x0012

| Definition at line 82 of file vga.h.

#define INPUT_STATUS_1_COLOR 0x002A

| Definition at line 104 of file vga.h.

#define INPUT_STATUS_1_MONO 0x000A

| Definition at line 68 of file vga.h.

#define M_AND_WRITE 0x03

| Definition at line 189 of file vga.h. Referenced by SetGRAMInvertMode().

#define M_COLOR_READ 0x08

| Definition at line 191 of file vga.h. Referenced by SetGRAMCopyMode(), and SetGRAMInvertMode().

#define M_COLOR_WRITE 0x02

| Definition at line 188 of file vga.h.

#define M_DATA_READ 0x00

| Definition at line 190 of file vga.h. Referenced by SetGRAMWriteMode().

#define M_LATCH_WRITE 0x01

| Definition at line 187 of file vga.h. Referenced by SetGRAMCopyMode().

#define M_PROC_WRITE 0x00

| Definition at line 186 of file vga.h. Referenced by SetGRAMWriteMode().

#define MEM_VGA 0xA0000

| Definition at line 33 of file vga.h.

#define MEM_VGA_SIZE 0x20000

| Definition at line 34 of file vga.h.

#define MEMORY_MODE_TEXT_DEFAULT 0x02

| Definition at line 204 of file vga.h.

#define MISC_OUTPUT_REG_READ_PORT 0x001C

| Definition at line 96 of file vga.h.

#define MISC_OUTPUT_REG_WRITE_PORT 0x0012

| Definition at line 80 of file vga.h.

#define READ_MAP_DEFAULT 0x00

| Definition at line 206 of file vga.h.

#define READ_MAP_TEST_SETTING 0x03

| Definition at line 162 of file vga.h.

#define SEQ_ADDR_MASK 0x07

| Definition at line 172 of file vga.h.

#define SEQ_ADDRESS_PORT 0x0014

| Definition at line 86 of file vga.h. Referenced by FsVgaPeripheralCallout().

#define SEQ_DATA_PORT 0x0015

| Definition at line 87 of file vga.h.

#define START_SYNC_RESET_VALUE 0x01

| Definition at line 143 of file vga.h.

#define VGA_BASE_IO_PORT 0x000003B0

| Definition at line 55 of file vga.h. Referenced by FsVgaPeripheralCallout().

#define VGA_END_BREAK_PORT 0x000003C0

| Definition at line 57 of file vga.h.

#define VGA_MAX_IO_PORT 0x000003DF

| Definition at line 58 of file vga.h.

#define VGA_MEMORY 2

| Definition at line 41 of file vga.h.

#define VGA_START_BREAK_PORT 0x000003BB

| Definition at line 56 of file vga.h.

#define VIDEO_DISABLE 0

| Definition at line 153 of file vga.h.

#define VIDEO_ENABLE 0x20

| Definition at line 154 of file vga.h.

#define VIDEO_MAX_COLOR_REGISTER 0xFF

| Definition at line 216 of file vga.h.

#define VIDEO_MAX_PALETTE_REGISTER 0x0F

| Definition at line 222 of file vga.h.

#define VIDEO_SUBSYSTEM_ENABLE_PORT 0x0013

| Definition at line 84 of file vga.h.