ReactOS 0.4.16-dev-87-g3dfbe52
vga.h File Reference
#include "cmdcnst.h"
Include dependency graph for vga.h:

Go to the source code of this file.

Macros

#define MEM_VGA   0xA0000
 
#define MEM_VGA_SIZE   0x20000
 
#define MEMORY_MAPPED_IO_OFFSET   (0xB8000 - 0xA0000)
 
#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_CR2C   0x2C
 
#define IND_CR2D   0x2D
 
#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_CRTC_COMPAT   0x34
 
#define IND_PERF_TUNING   0x16
 
#define START_SYNC_RESET_VALUE   0x01
 
#define END_SYNC_RESET_VALUE   0x03
 
#define VIDEO_DISABLE   0
 
#define VIDEO_ENABLE   0x20
 
#define INDEX_ENABLE_AUTO_START   0x31
 
#define GRAPH_ADDR_MASK   0x0F
 
#define SEQ_ADDR_MASK   0x07
 
#define CHAIN4_MASK   0x08
 
#define READ_MAP_TEST_SETTING   0x03
 
#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 DEFAULT_MODE   0
 
#define VGA_PLANE_SIZE   0x10000
 
#define VGA_NUM_SEQUENCER_PORTS   5
 
#define VGA_NUM_CRTC_PORTS   25
 
#define VGA_NUM_GRAPH_CONT_PORTS   9
 
#define VGA_NUM_ATTRIB_CONT_PORTS   21
 
#define VGA_NUM_DAC_ENTRIES   256
 
#define EXT_NUM_GRAPH_CONT_PORTS   0
 
#define EXT_NUM_SEQUENCER_PORTS   0
 
#define EXT_NUM_CRTC_PORTS   0
 
#define EXT_NUM_ATTRIB_CONT_PORTS   0
 
#define EXT_NUM_DAC_ENTRIES   0
 

Macro Definition Documentation

◆ ATT_ADDRESS_PORT

#define ATT_ADDRESS_PORT   0x0010

Definition at line 57 of file vga.h.

◆ ATT_DATA_READ_PORT

#define ATT_DATA_READ_PORT   0x0011

Definition at line 61 of file vga.h.

◆ ATT_DATA_WRITE_PORT

#define ATT_DATA_WRITE_PORT   0x0010

Definition at line 58 of file vga.h.

◆ ATT_INITIALIZE_PORT_COLOR

#define ATT_INITIALIZE_PORT_COLOR   INPUT_STATUS_1_COLOR

Definition at line 90 of file vga.h.

◆ ATT_INITIALIZE_PORT_MONO

#define ATT_INITIALIZE_PORT_MONO   INPUT_STATUS_1_MONO

Definition at line 53 of file vga.h.

◆ BIT_MASK_DEFAULT

#define BIT_MASK_DEFAULT   0xFF

Definition at line 167 of file vga.h.

◆ CHAIN4_MASK

#define CHAIN4_MASK   0x08

Definition at line 151 of file vga.h.

◆ CRTC_ADDRESS_PORT_COLOR

#define CRTC_ADDRESS_PORT_COLOR   0x0024

Definition at line 84 of file vga.h.

◆ CRTC_ADDRESS_PORT_MONO

#define CRTC_ADDRESS_PORT_MONO   0x0004

Definition at line 47 of file vga.h.

◆ CRTC_DATA_PORT_COLOR

#define CRTC_DATA_PORT_COLOR   0x0025

Definition at line 85 of file vga.h.

◆ CRTC_DATA_PORT_MONO

#define CRTC_DATA_PORT_MONO   0x0005

Definition at line 48 of file vga.h.

◆ DAC_ADDRESS_READ_PORT

#define DAC_ADDRESS_READ_PORT   0x0017

Definition at line 72 of file vga.h.

◆ DAC_ADDRESS_WRITE_PORT

#define DAC_ADDRESS_WRITE_PORT   0x0018

Definition at line 76 of file vga.h.

◆ DAC_DATA_REG_PORT

#define DAC_DATA_REG_PORT   0x0019

Definition at line 77 of file vga.h.

◆ DAC_PIXEL_MASK_PORT

#define DAC_PIXEL_MASK_PORT   0x0016

Definition at line 71 of file vga.h.

◆ DAC_STATE_PORT

#define DAC_STATE_PORT   0x0017

Definition at line 74 of file vga.h.

◆ DEFAULT_MODE

#define DEFAULT_MODE   0

Definition at line 193 of file vga.h.

◆ END_SYNC_RESET_VALUE

#define END_SYNC_RESET_VALUE   0x03

Definition at line 125 of file vga.h.

◆ EXT_NUM_ATTRIB_CONT_PORTS

#define EXT_NUM_ATTRIB_CONT_PORTS   0

Definition at line 217 of file vga.h.

◆ EXT_NUM_CRTC_PORTS

#define EXT_NUM_CRTC_PORTS   0

Definition at line 216 of file vga.h.

◆ EXT_NUM_DAC_ENTRIES

#define EXT_NUM_DAC_ENTRIES   0

Definition at line 218 of file vga.h.

◆ EXT_NUM_GRAPH_CONT_PORTS

#define EXT_NUM_GRAPH_CONT_PORTS   0

Definition at line 214 of file vga.h.

◆ EXT_NUM_SEQUENCER_PORTS

#define EXT_NUM_SEQUENCER_PORTS   0

Definition at line 215 of file vga.h.

◆ FEAT_CTRL_READ_PORT

#define FEAT_CTRL_READ_PORT   0x001A

Definition at line 78 of file vga.h.

◆ FEAT_CTRL_WRITE_PORT_COLOR

#define FEAT_CTRL_WRITE_PORT_COLOR   0x002A

Definition at line 86 of file vga.h.

◆ FEAT_CTRL_WRITE_PORT_MONO

#define FEAT_CTRL_WRITE_PORT_MONO   0x000A

Definition at line 49 of file vga.h.

◆ GRAPH_ADDR_MASK

#define GRAPH_ADDR_MASK   0x0F

Definition at line 144 of file vga.h.

◆ GRAPH_ADDRESS_PORT

#define GRAPH_ADDRESS_PORT   0x001E

Definition at line 81 of file vga.h.

◆ GRAPH_DATA_PORT

#define GRAPH_DATA_PORT   0x001F

Definition at line 82 of file vga.h.

◆ IND_BIT_MASK

#define IND_BIT_MASK   0x08

Definition at line 114 of file vga.h.

◆ IND_CR2C

#define IND_CR2C   0x2C

Definition at line 107 of file vga.h.

◆ IND_CR2D

#define IND_CR2D   0x2D

Definition at line 108 of file vga.h.

◆ IND_CRTC_COMPAT

#define IND_CRTC_COMPAT   0x34

Definition at line 120 of file vga.h.

◆ IND_CRTC_PROTECT

#define IND_CRTC_PROTECT   0x11

Definition at line 118 of file vga.h.

◆ IND_CURSOR_END

#define IND_CURSOR_END   0x0B

Definition at line 100 of file vga.h.

◆ IND_CURSOR_HIGH_LOC

#define IND_CURSOR_HIGH_LOC   0x0E

Definition at line 101 of file vga.h.

◆ IND_CURSOR_LOW_LOC

#define IND_CURSOR_LOW_LOC   0x0F

Definition at line 102 of file vga.h.

◆ IND_CURSOR_START

#define IND_CURSOR_START   0x0A

Definition at line 99 of file vga.h.

◆ IND_DATA_ROTATE

#define IND_DATA_ROTATE   0x03

Definition at line 110 of file vga.h.

◆ IND_GRAPH_MISC

#define IND_GRAPH_MISC   0x06

Definition at line 113 of file vga.h.

◆ IND_GRAPH_MODE

#define IND_GRAPH_MODE   0x05

Definition at line 112 of file vga.h.

◆ IND_MAP_MASK

#define IND_MAP_MASK   0x02

Definition at line 116 of file vga.h.

◆ IND_MEMORY_MODE

#define IND_MEMORY_MODE   0x04

Definition at line 117 of file vga.h.

◆ IND_PERF_TUNING

#define IND_PERF_TUNING   0x16

Definition at line 122 of file vga.h.

◆ IND_READ_MAP

#define IND_READ_MAP   0x04

Definition at line 111 of file vga.h.

◆ IND_SET_RESET_ENABLE

#define IND_SET_RESET_ENABLE   0x01

Definition at line 109 of file vga.h.

◆ IND_SYNC_RESET

#define IND_SYNC_RESET   0x00

Definition at line 115 of file vga.h.

◆ IND_VSYNC_END

#define IND_VSYNC_END   0x11

Definition at line 103 of file vga.h.

◆ INDEX_ENABLE_AUTO_START

#define INDEX_ENABLE_AUTO_START   0x31

Definition at line 136 of file vga.h.

◆ INPUT_STATUS_0_PORT

#define INPUT_STATUS_0_PORT   0x0012

Definition at line 65 of file vga.h.

◆ INPUT_STATUS_1_COLOR

#define INPUT_STATUS_1_COLOR   0x002A

Definition at line 87 of file vga.h.

◆ INPUT_STATUS_1_MONO

#define INPUT_STATUS_1_MONO   0x000A

Definition at line 51 of file vga.h.

◆ MEM_VGA

#define MEM_VGA   0xA0000

Definition at line 21 of file vga.h.

◆ MEM_VGA_SIZE

#define MEM_VGA_SIZE   0x20000

Definition at line 22 of file vga.h.

◆ MEMORY_MAPPED_IO_OFFSET

#define MEMORY_MAPPED_IO_OFFSET   (0xB8000 - 0xA0000)

Definition at line 28 of file vga.h.

◆ MEMORY_MODE_TEXT_DEFAULT

#define MEMORY_MODE_TEXT_DEFAULT   0x02

Definition at line 166 of file vga.h.

◆ MISC_OUTPUT_REG_READ_PORT

#define MISC_OUTPUT_REG_READ_PORT   0x001C

Definition at line 79 of file vga.h.

◆ MISC_OUTPUT_REG_WRITE_PORT

#define MISC_OUTPUT_REG_WRITE_PORT   0x0012

Definition at line 63 of file vga.h.

◆ READ_MAP_DEFAULT

#define READ_MAP_DEFAULT   0x00

Definition at line 168 of file vga.h.

◆ READ_MAP_TEST_SETTING

#define READ_MAP_TEST_SETTING   0x03

Definition at line 159 of file vga.h.

◆ SEQ_ADDR_MASK

#define SEQ_ADDR_MASK   0x07

Definition at line 145 of file vga.h.

◆ SEQ_ADDRESS_PORT

#define SEQ_ADDRESS_PORT   0x0014

Definition at line 69 of file vga.h.

◆ SEQ_DATA_PORT

#define SEQ_DATA_PORT   0x0015

Definition at line 70 of file vga.h.

◆ START_SYNC_RESET_VALUE

#define START_SYNC_RESET_VALUE   0x01

Definition at line 123 of file vga.h.

◆ VGA_BASE_IO_PORT

#define VGA_BASE_IO_PORT   0x000003B0

Definition at line 38 of file vga.h.

◆ VGA_END_BREAK_PORT

#define VGA_END_BREAK_PORT   0x000003C0

Definition at line 40 of file vga.h.

◆ VGA_MAX_IO_PORT

#define VGA_MAX_IO_PORT   0x000003DF

Definition at line 41 of file vga.h.

◆ VGA_NUM_ATTRIB_CONT_PORTS

#define VGA_NUM_ATTRIB_CONT_PORTS   21

Definition at line 211 of file vga.h.

◆ VGA_NUM_CRTC_PORTS

#define VGA_NUM_CRTC_PORTS   25

Definition at line 209 of file vga.h.

◆ VGA_NUM_DAC_ENTRIES

#define VGA_NUM_DAC_ENTRIES   256

Definition at line 212 of file vga.h.

◆ VGA_NUM_GRAPH_CONT_PORTS

#define VGA_NUM_GRAPH_CONT_PORTS   9

Definition at line 210 of file vga.h.

◆ VGA_NUM_SEQUENCER_PORTS

#define VGA_NUM_SEQUENCER_PORTS   5

Definition at line 208 of file vga.h.

◆ VGA_PLANE_SIZE

#define VGA_PLANE_SIZE   0x10000

Definition at line 199 of file vga.h.

◆ VGA_START_BREAK_PORT

#define VGA_START_BREAK_PORT   0x000003BB

Definition at line 39 of file vga.h.

◆ VIDEO_DISABLE

#define VIDEO_DISABLE   0

Definition at line 133 of file vga.h.

◆ VIDEO_ENABLE

#define VIDEO_ENABLE   0x20

Definition at line 134 of file vga.h.

◆ VIDEO_MAX_COLOR_REGISTER

#define VIDEO_MAX_COLOR_REGISTER   0xFF

Definition at line 179 of file vga.h.

◆ VIDEO_MAX_PALETTE_REGISTER

#define VIDEO_MAX_PALETTE_REGISTER   0x0F

Definition at line 185 of file vga.h.

◆ VIDEO_SUBSYSTEM_ENABLE_PORT

#define VIDEO_SUBSYSTEM_ENABLE_PORT   0x0013

Definition at line 67 of file vga.h.