ReactOS  0.4.13-dev-464-g6b95727
vga.h File Reference
#include <ntdef.h>
#include <dderror.h>
#include <miniport.h>
#include <video.h>
#include "cmdcnst.h"
#include "vbe.h"
Include dependency graph for vga.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  VIDEOMODE
 
struct  _VGA_VALIDATOR_DATA
 
struct  _HW_DEVICE_EXTENSION
 

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 CRTC_ADDRESS_MONO_OFFSET   0x04
 
#define FEAT_CTRL_WRITE_MONO_OFFSET   0x0A
 
#define ATT_ADDRESS_OFFSET   0x10
 
#define MISC_OUTPUT_REG_WRITE_OFFSET   0x12
 
#define VIDEO_SUBSYSTEM_ENABLE_OFFSET   0x13
 
#define SEQ_ADDRESS_OFFSET   0x14
 
#define DAC_PIXEL_MASK_OFFSET   0x16
 
#define DAC_STATE_OFFSET   0x17
 
#define DAC_ADDRESS_WRITE_OFFSET   0x18
 
#define GRAPH_ADDRESS_OFFSET   0x1E
 
#define CRTC_ADDRESS_COLOR_OFFSET   0x24
 
#define FEAT_CTRL_WRITE_COLOR_OFFSET   0x2A
 
#define IND_CL_EXTS_ENB   0x06
 
#define IND_NORD_SCRATCH_PAD   0x09
 
#define IND_CL_SCRATCH_PAD   0x0A
 
#define IND_ALP_SCRATCH_PAD   0x15
 
#define IND_CL_REV_REG   0x25
 
#define IND_CL_ID_REG   0x27
 
#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 CL64xx_EXTENSION_ENABLE_INDEX   0x0A
 
#define CL64xx_EXTENSION_ENABLE_VALUE   0xEC
 
#define CL64xx_EXTENSION_DISABLE_VALUE   0xCE
 
#define CL64xx_TRISTATE_CONTROL_REG   0xA1
 
#define CL6340_ENABLE_READBACK_REGISTER   0xE0
 
#define CL6340_ENABLE_READBACK_ALLSEL_VALUE   0xF0
 
#define CL6340_ENABLE_READBACK_OFF_VALUE   0x00
 
#define CL6340_IDENTIFICATION_REGISTER   0xE9
 
#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 CAPS_NO_HOST_XFER   0x00000002
 
#define CAPS_SW_POINTER   0x00000004
 
#define CAPS_TRUE_COLOR   0x00000008
 
#define CAPS_MM_IO   0x00000010
 
#define CAPS_BLT_SUPPORT   0x00000020
 
#define CAPS_IS_542x   0x00000040
 
#define CAPS_IS_5436   0x00000080
 
#define CAPS_CURSOR_VERT_EXP   0x00000100
 
#define DEFAULT_MODE   0
 
#define VGA_MAX_VALIDATOR_DATA   100
 
#define VGA_VALIDATOR_UCHAR_ACCESS   1
 
#define VGA_VALIDATOR_USHORT_ACCESS   2
 
#define VGA_VALIDATOR_ULONG_ACCESS   3
 
#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
 
#define VGA_HARDWARE_STATE_SIZE   sizeof(VIDEO_HARDWARE_STATE_HEADER)
 
#define VGA_BASIC_SEQUENCER_OFFSET   (VGA_HARDWARE_STATE_SIZE + 0)
 
#define VGA_BASIC_CRTC_OFFSET
 
#define VGA_BASIC_GRAPH_CONT_OFFSET
 
#define VGA_BASIC_ATTRIB_CONT_OFFSET
 
#define VGA_BASIC_DAC_OFFSET
 
#define VGA_BASIC_LATCHES_OFFSET
 
#define VGA_EXT_SEQUENCER_OFFSET   (VGA_BASIC_LATCHES_OFFSET + 4)
 
#define VGA_EXT_CRTC_OFFSET
 
#define VGA_EXT_GRAPH_CONT_OFFSET
 
#define VGA_EXT_ATTRIB_CONT_OFFSET
 
#define VGA_EXT_DAC_OFFSET
 
#define VGA_VALIDATOR_OFFSET   (VGA_EXT_DAC_OFFSET + 4 * EXT_NUM_DAC_ENTRIES)
 
#define VGA_VALIDATOR_AREA_SIZE
 
#define VGA_MISC_DATA_AREA_OFFSET   VGA_VALIDATOR_OFFSET + VGA_VALIDATOR_AREA_SIZE
 
#define VGA_MISC_DATA_AREA_SIZE   0
 
#define VGA_PLANE_0_OFFSET   VGA_MISC_DATA_AREA_OFFSET + VGA_MISC_DATA_AREA_SIZE
 
#define VGA_PLANE_1_OFFSET   VGA_PLANE_0_OFFSET + VGA_PLANE_SIZE
 
#define VGA_PLANE_2_OFFSET   VGA_PLANE_1_OFFSET + VGA_PLANE_SIZE
 
#define VGA_PLANE_3_OFFSET   VGA_PLANE_2_OFFSET + VGA_PLANE_SIZE
 
#define VGA_TOTAL_STATE_SIZE   VGA_PLANE_3_OFFSET + VGA_PLANE_SIZE
 
#define NUM_VGA_ACCESS_RANGES   5
 
#define VESA_MAGIC   ('V' + ('E' << 8) + ('S' << 16) + ('A' << 24))
 

Typedefs

typedef struct VIDEOMODEPVIDEOMODE
 
typedef struct _VGA_VALIDATOR_DATA VGA_VALIDATOR_DATA
 
typedef struct _VGA_VALIDATOR_DATAPVGA_VALIDATOR_DATA
 
typedef struct _HW_DEVICE_EXTENSION HW_DEVICE_EXTENSION
 
typedef struct _HW_DEVICE_EXTENSIONPHW_DEVICE_EXTENSION
 

Variables

USHORT EnableA000Data []
 
USHORT DisableA000Color []
 
ULONG NumVideoModes
 
VIDEOMODE ModesVGA []
 
PVIDEOMODE VgaModeList
 
VIDEO_ACCESS_RANGE VgaAccessRange []
 

Macro Definition Documentation

◆ ATT_ADDRESS_OFFSET

#define ATT_ADDRESS_OFFSET   0x10

Definition at line 106 of file vga.h.

◆ ATT_ADDRESS_PORT

#define ATT_ADDRESS_PORT   0x0010

Definition at line 61 of file vga.h.

◆ ATT_DATA_READ_PORT

#define ATT_DATA_READ_PORT   0x0011

Definition at line 65 of file vga.h.

◆ ATT_DATA_WRITE_PORT

#define ATT_DATA_WRITE_PORT   0x0010

Definition at line 62 of file vga.h.

◆ ATT_INITIALIZE_PORT_COLOR

#define ATT_INITIALIZE_PORT_COLOR   INPUT_STATUS_1_COLOR

Definition at line 94 of file vga.h.

◆ ATT_INITIALIZE_PORT_MONO

#define ATT_INITIALIZE_PORT_MONO   INPUT_STATUS_1_MONO

Definition at line 57 of file vga.h.

◆ BIT_MASK_DEFAULT

#define BIT_MASK_DEFAULT   0xFF

Definition at line 212 of file vga.h.

◆ CAPS_BLT_SUPPORT

#define CAPS_BLT_SUPPORT   0x00000020

Definition at line 241 of file vga.h.

◆ CAPS_CURSOR_VERT_EXP

#define CAPS_CURSOR_VERT_EXP   0x00000100

Definition at line 244 of file vga.h.

◆ CAPS_IS_542x

#define CAPS_IS_542x   0x00000040

Definition at line 242 of file vga.h.

◆ CAPS_IS_5436

#define CAPS_IS_5436   0x00000080

Definition at line 243 of file vga.h.

◆ CAPS_MM_IO

#define CAPS_MM_IO   0x00000010

Definition at line 240 of file vga.h.

◆ CAPS_NO_HOST_XFER

#define CAPS_NO_HOST_XFER   0x00000002

Definition at line 236 of file vga.h.

◆ CAPS_SW_POINTER

#define CAPS_SW_POINTER   0x00000004

Definition at line 238 of file vga.h.

◆ CAPS_TRUE_COLOR

#define CAPS_TRUE_COLOR   0x00000008

Definition at line 239 of file vga.h.

◆ CHAIN4_MASK

#define CHAIN4_MASK   0x08

Definition at line 196 of file vga.h.

◆ CL6340_ENABLE_READBACK_ALLSEL_VALUE

#define CL6340_ENABLE_READBACK_ALLSEL_VALUE   0xF0

Definition at line 170 of file vga.h.

◆ CL6340_ENABLE_READBACK_OFF_VALUE

#define CL6340_ENABLE_READBACK_OFF_VALUE   0x00

Definition at line 171 of file vga.h.

◆ CL6340_ENABLE_READBACK_REGISTER

#define CL6340_ENABLE_READBACK_REGISTER   0xE0

Definition at line 169 of file vga.h.

◆ CL6340_IDENTIFICATION_REGISTER

#define CL6340_IDENTIFICATION_REGISTER   0xE9

Definition at line 172 of file vga.h.

◆ CL64xx_EXTENSION_DISABLE_VALUE

#define CL64xx_EXTENSION_DISABLE_VALUE   0xCE

Definition at line 166 of file vga.h.

◆ CL64xx_EXTENSION_ENABLE_INDEX

#define CL64xx_EXTENSION_ENABLE_INDEX   0x0A

Definition at line 164 of file vga.h.

◆ CL64xx_EXTENSION_ENABLE_VALUE

#define CL64xx_EXTENSION_ENABLE_VALUE   0xEC

Definition at line 165 of file vga.h.

◆ CL64xx_TRISTATE_CONTROL_REG

#define CL64xx_TRISTATE_CONTROL_REG   0xA1

Definition at line 167 of file vga.h.

◆ CRTC_ADDRESS_COLOR_OFFSET

#define CRTC_ADDRESS_COLOR_OFFSET   0x24

Definition at line 114 of file vga.h.

◆ CRTC_ADDRESS_MONO_OFFSET

#define CRTC_ADDRESS_MONO_OFFSET   0x04

Definition at line 104 of file vga.h.

◆ CRTC_ADDRESS_PORT_COLOR

#define CRTC_ADDRESS_PORT_COLOR   0x0024

Definition at line 88 of file vga.h.

◆ CRTC_ADDRESS_PORT_MONO

#define CRTC_ADDRESS_PORT_MONO   0x0004

Definition at line 51 of file vga.h.

◆ CRTC_DATA_PORT_COLOR

#define CRTC_DATA_PORT_COLOR   0x0025

Definition at line 89 of file vga.h.

◆ CRTC_DATA_PORT_MONO

#define CRTC_DATA_PORT_MONO   0x0005

Definition at line 52 of file vga.h.

◆ DAC_ADDRESS_READ_PORT

#define DAC_ADDRESS_READ_PORT   0x0017

Definition at line 76 of file vga.h.

◆ DAC_ADDRESS_WRITE_OFFSET

#define DAC_ADDRESS_WRITE_OFFSET   0x18

Definition at line 112 of file vga.h.

◆ DAC_ADDRESS_WRITE_PORT

#define DAC_ADDRESS_WRITE_PORT   0x0018

Definition at line 80 of file vga.h.

◆ DAC_DATA_REG_PORT

#define DAC_DATA_REG_PORT   0x0019

Definition at line 81 of file vga.h.

◆ DAC_PIXEL_MASK_OFFSET

#define DAC_PIXEL_MASK_OFFSET   0x16

Definition at line 110 of file vga.h.

◆ DAC_PIXEL_MASK_PORT

#define DAC_PIXEL_MASK_PORT   0x0016

Definition at line 75 of file vga.h.

◆ DAC_STATE_OFFSET

#define DAC_STATE_OFFSET   0x17

Definition at line 111 of file vga.h.

◆ DAC_STATE_PORT

#define DAC_STATE_PORT   0x0017

Definition at line 78 of file vga.h.

◆ DEFAULT_MODE

#define DEFAULT_MODE   0

Definition at line 288 of file vga.h.

◆ END_SYNC_RESET_VALUE

#define END_SYNC_RESET_VALUE   0x03

Definition at line 157 of file vga.h.

◆ EXT_NUM_ATTRIB_CONT_PORTS

#define EXT_NUM_ATTRIB_CONT_PORTS   0

Definition at line 330 of file vga.h.

◆ EXT_NUM_CRTC_PORTS

#define EXT_NUM_CRTC_PORTS   0

Definition at line 329 of file vga.h.

◆ EXT_NUM_DAC_ENTRIES

#define EXT_NUM_DAC_ENTRIES   0

Definition at line 331 of file vga.h.

◆ EXT_NUM_GRAPH_CONT_PORTS

#define EXT_NUM_GRAPH_CONT_PORTS   0

Definition at line 327 of file vga.h.

◆ EXT_NUM_SEQUENCER_PORTS

#define EXT_NUM_SEQUENCER_PORTS   0

Definition at line 328 of file vga.h.

◆ FEAT_CTRL_READ_PORT

#define FEAT_CTRL_READ_PORT   0x001A

Definition at line 82 of file vga.h.

◆ FEAT_CTRL_WRITE_COLOR_OFFSET

#define FEAT_CTRL_WRITE_COLOR_OFFSET   0x2A

Definition at line 115 of file vga.h.

◆ FEAT_CTRL_WRITE_MONO_OFFSET

#define FEAT_CTRL_WRITE_MONO_OFFSET   0x0A

Definition at line 105 of file vga.h.

◆ FEAT_CTRL_WRITE_PORT_COLOR

#define FEAT_CTRL_WRITE_PORT_COLOR   0x002A

Definition at line 90 of file vga.h.

◆ FEAT_CTRL_WRITE_PORT_MONO

#define FEAT_CTRL_WRITE_PORT_MONO   0x000A

Definition at line 53 of file vga.h.

◆ GRAPH_ADDR_MASK

#define GRAPH_ADDR_MASK   0x0F

Definition at line 189 of file vga.h.

◆ GRAPH_ADDRESS_OFFSET

#define GRAPH_ADDRESS_OFFSET   0x1E

Definition at line 113 of file vga.h.

◆ GRAPH_ADDRESS_PORT

#define GRAPH_ADDRESS_PORT   0x001E

Definition at line 85 of file vga.h.

◆ GRAPH_DATA_PORT

#define GRAPH_DATA_PORT   0x001F

Definition at line 86 of file vga.h.

◆ IND_ALP_SCRATCH_PAD

#define IND_ALP_SCRATCH_PAD   0x15

Definition at line 127 of file vga.h.

◆ IND_BIT_MASK

#define IND_BIT_MASK   0x08

Definition at line 146 of file vga.h.

◆ IND_CL_EXTS_ENB

#define IND_CL_EXTS_ENB   0x06

Definition at line 124 of file vga.h.

◆ IND_CL_ID_REG

#define IND_CL_ID_REG   0x27

Definition at line 129 of file vga.h.

◆ IND_CL_REV_REG

#define IND_CL_REV_REG   0x25

Definition at line 128 of file vga.h.

◆ IND_CL_SCRATCH_PAD

#define IND_CL_SCRATCH_PAD   0x0A

Definition at line 126 of file vga.h.

◆ IND_CR2C

#define IND_CR2C   0x2C

Definition at line 139 of file vga.h.

◆ IND_CR2D

#define IND_CR2D   0x2D

Definition at line 140 of file vga.h.

◆ IND_CRTC_COMPAT

#define IND_CRTC_COMPAT   0x34

Definition at line 152 of file vga.h.

◆ IND_CRTC_PROTECT

#define IND_CRTC_PROTECT   0x11

Definition at line 150 of file vga.h.

◆ IND_CURSOR_END

#define IND_CURSOR_END   0x0B

Definition at line 132 of file vga.h.

◆ IND_CURSOR_HIGH_LOC

#define IND_CURSOR_HIGH_LOC   0x0E

Definition at line 133 of file vga.h.

◆ IND_CURSOR_LOW_LOC

#define IND_CURSOR_LOW_LOC   0x0F

Definition at line 134 of file vga.h.

◆ IND_CURSOR_START

#define IND_CURSOR_START   0x0A

Definition at line 131 of file vga.h.

◆ IND_DATA_ROTATE

#define IND_DATA_ROTATE   0x03

Definition at line 142 of file vga.h.

◆ IND_GRAPH_MISC

#define IND_GRAPH_MISC   0x06

Definition at line 145 of file vga.h.

◆ IND_GRAPH_MODE

#define IND_GRAPH_MODE   0x05

Definition at line 144 of file vga.h.

◆ IND_MAP_MASK

#define IND_MAP_MASK   0x02

Definition at line 148 of file vga.h.

◆ IND_MEMORY_MODE

#define IND_MEMORY_MODE   0x04

Definition at line 149 of file vga.h.

◆ IND_NORD_SCRATCH_PAD

#define IND_NORD_SCRATCH_PAD   0x09

Definition at line 125 of file vga.h.

◆ IND_PERF_TUNING

#define IND_PERF_TUNING   0x16

Definition at line 154 of file vga.h.

◆ IND_READ_MAP

#define IND_READ_MAP   0x04

Definition at line 143 of file vga.h.

◆ IND_SET_RESET_ENABLE

#define IND_SET_RESET_ENABLE   0x01

Definition at line 141 of file vga.h.

◆ IND_SYNC_RESET

#define IND_SYNC_RESET   0x00

Definition at line 147 of file vga.h.

◆ IND_VSYNC_END

#define IND_VSYNC_END   0x11

Definition at line 135 of file vga.h.

◆ INDEX_ENABLE_AUTO_START

#define INDEX_ENABLE_AUTO_START   0x31

Definition at line 181 of file vga.h.

◆ INPUT_STATUS_0_PORT

#define INPUT_STATUS_0_PORT   0x0012

Definition at line 69 of file vga.h.

◆ INPUT_STATUS_1_COLOR

#define INPUT_STATUS_1_COLOR   0x002A

Definition at line 91 of file vga.h.

◆ INPUT_STATUS_1_MONO

#define INPUT_STATUS_1_MONO   0x000A

Definition at line 55 of file vga.h.

◆ MEM_VGA

#define MEM_VGA   0xA0000

Definition at line 25 of file vga.h.

◆ MEM_VGA_SIZE

#define MEM_VGA_SIZE   0x20000

Definition at line 26 of file vga.h.

◆ MEMORY_MAPPED_IO_OFFSET

#define MEMORY_MAPPED_IO_OFFSET   (0xB8000 - 0xA0000)

Definition at line 32 of file vga.h.

◆ MEMORY_MODE_TEXT_DEFAULT

#define MEMORY_MODE_TEXT_DEFAULT   0x02

Definition at line 211 of file vga.h.

◆ MISC_OUTPUT_REG_READ_PORT

#define MISC_OUTPUT_REG_READ_PORT   0x001C

Definition at line 83 of file vga.h.

◆ MISC_OUTPUT_REG_WRITE_OFFSET

#define MISC_OUTPUT_REG_WRITE_OFFSET   0x12

Definition at line 107 of file vga.h.

◆ MISC_OUTPUT_REG_WRITE_PORT

#define MISC_OUTPUT_REG_WRITE_PORT   0x0012

Definition at line 67 of file vga.h.

◆ NUM_VGA_ACCESS_RANGES

#define NUM_VGA_ACCESS_RANGES   5

Definition at line 444 of file vga.h.

◆ READ_MAP_DEFAULT

#define READ_MAP_DEFAULT   0x00

Definition at line 213 of file vga.h.

◆ READ_MAP_TEST_SETTING

#define READ_MAP_TEST_SETTING   0x03

Definition at line 204 of file vga.h.

◆ SEQ_ADDR_MASK

#define SEQ_ADDR_MASK   0x07

Definition at line 190 of file vga.h.

◆ SEQ_ADDRESS_OFFSET

#define SEQ_ADDRESS_OFFSET   0x14

Definition at line 109 of file vga.h.

◆ SEQ_ADDRESS_PORT

#define SEQ_ADDRESS_PORT   0x0014

Definition at line 73 of file vga.h.

◆ SEQ_DATA_PORT

#define SEQ_DATA_PORT   0x0015

Definition at line 74 of file vga.h.

◆ START_SYNC_RESET_VALUE

#define START_SYNC_RESET_VALUE   0x01

Definition at line 155 of file vga.h.

◆ VESA_MAGIC

#define VESA_MAGIC   ('V' + ('E' << 8) + ('S' << 16) + ('A' << 24))

Definition at line 449 of file vga.h.

◆ VGA_BASE_IO_PORT

#define VGA_BASE_IO_PORT   0x000003B0

Definition at line 42 of file vga.h.

◆ VGA_BASIC_ATTRIB_CONT_OFFSET

#define VGA_BASIC_ATTRIB_CONT_OFFSET
Value:
VGA_NUM_GRAPH_CONT_PORTS)
#define VGA_BASIC_GRAPH_CONT_OFFSET
Definition: vga.h:344

Definition at line 346 of file vga.h.

◆ VGA_BASIC_CRTC_OFFSET

#define VGA_BASIC_CRTC_OFFSET
Value:
VGA_NUM_SEQUENCER_PORTS)
#define VGA_BASIC_SEQUENCER_OFFSET
Definition: vga.h:341

Definition at line 342 of file vga.h.

◆ VGA_BASIC_DAC_OFFSET

#define VGA_BASIC_DAC_OFFSET
Value:
VGA_NUM_ATTRIB_CONT_PORTS)
#define VGA_BASIC_ATTRIB_CONT_OFFSET
Definition: vga.h:346

Definition at line 348 of file vga.h.

◆ VGA_BASIC_GRAPH_CONT_OFFSET

#define VGA_BASIC_GRAPH_CONT_OFFSET
Value:
VGA_NUM_CRTC_PORTS)
#define VGA_BASIC_CRTC_OFFSET
Definition: vga.h:342

Definition at line 344 of file vga.h.

◆ VGA_BASIC_LATCHES_OFFSET

#define VGA_BASIC_LATCHES_OFFSET
Value:
#define VGA_NUM_DAC_ENTRIES
Definition: vga.h:325
#define VGA_BASIC_DAC_OFFSET
Definition: vga.h:348

Definition at line 350 of file vga.h.

◆ VGA_BASIC_SEQUENCER_OFFSET

#define VGA_BASIC_SEQUENCER_OFFSET   (VGA_HARDWARE_STATE_SIZE + 0)

Definition at line 341 of file vga.h.

◆ VGA_END_BREAK_PORT

#define VGA_END_BREAK_PORT   0x000003C0

Definition at line 44 of file vga.h.

◆ VGA_EXT_ATTRIB_CONT_OFFSET

#define VGA_EXT_ATTRIB_CONT_OFFSET
Value:
EXT_NUM_GRAPH_CONT_PORTS)
#define VGA_EXT_GRAPH_CONT_OFFSET
Definition: vga.h:356

Definition at line 358 of file vga.h.

◆ VGA_EXT_CRTC_OFFSET

#define VGA_EXT_CRTC_OFFSET
Value:
EXT_NUM_SEQUENCER_PORTS)
#define VGA_EXT_SEQUENCER_OFFSET
Definition: vga.h:353

Definition at line 354 of file vga.h.

◆ VGA_EXT_DAC_OFFSET

#define VGA_EXT_DAC_OFFSET
Value:
EXT_NUM_ATTRIB_CONT_PORTS)
#define VGA_EXT_ATTRIB_CONT_OFFSET
Definition: vga.h:358

Definition at line 360 of file vga.h.

◆ VGA_EXT_GRAPH_CONT_OFFSET

#define VGA_EXT_GRAPH_CONT_OFFSET
Value:
EXT_NUM_CRTC_PORTS)
#define VGA_EXT_CRTC_OFFSET
Definition: vga.h:354

Definition at line 356 of file vga.h.

◆ VGA_EXT_SEQUENCER_OFFSET

#define VGA_EXT_SEQUENCER_OFFSET   (VGA_BASIC_LATCHES_OFFSET + 4)

Definition at line 353 of file vga.h.

◆ VGA_HARDWARE_STATE_SIZE

#define VGA_HARDWARE_STATE_SIZE   sizeof(VIDEO_HARDWARE_STATE_HEADER)

Definition at line 339 of file vga.h.

◆ VGA_MAX_IO_PORT

#define VGA_MAX_IO_PORT   0x000003DF

Definition at line 45 of file vga.h.

◆ VGA_MAX_VALIDATOR_DATA

#define VGA_MAX_VALIDATOR_DATA   100

Definition at line 296 of file vga.h.

◆ VGA_MISC_DATA_AREA_OFFSET

#define VGA_MISC_DATA_AREA_OFFSET   VGA_VALIDATOR_OFFSET + VGA_VALIDATOR_AREA_SIZE

Definition at line 371 of file vga.h.

◆ VGA_MISC_DATA_AREA_SIZE

#define VGA_MISC_DATA_AREA_SIZE   0

Definition at line 373 of file vga.h.

◆ VGA_NUM_ATTRIB_CONT_PORTS

#define VGA_NUM_ATTRIB_CONT_PORTS   21

Definition at line 324 of file vga.h.

◆ VGA_NUM_CRTC_PORTS

#define VGA_NUM_CRTC_PORTS   25

Definition at line 322 of file vga.h.

◆ VGA_NUM_DAC_ENTRIES

#define VGA_NUM_DAC_ENTRIES   256

Definition at line 325 of file vga.h.

◆ VGA_NUM_GRAPH_CONT_PORTS

#define VGA_NUM_GRAPH_CONT_PORTS   9

Definition at line 323 of file vga.h.

◆ VGA_NUM_SEQUENCER_PORTS

#define VGA_NUM_SEQUENCER_PORTS   5

Definition at line 321 of file vga.h.

◆ VGA_PLANE_0_OFFSET

Definition at line 375 of file vga.h.

◆ VGA_PLANE_1_OFFSET

#define VGA_PLANE_1_OFFSET   VGA_PLANE_0_OFFSET + VGA_PLANE_SIZE

Definition at line 377 of file vga.h.

◆ VGA_PLANE_2_OFFSET

#define VGA_PLANE_2_OFFSET   VGA_PLANE_1_OFFSET + VGA_PLANE_SIZE

Definition at line 378 of file vga.h.

◆ VGA_PLANE_3_OFFSET

#define VGA_PLANE_3_OFFSET   VGA_PLANE_2_OFFSET + VGA_PLANE_SIZE

Definition at line 379 of file vga.h.

◆ VGA_PLANE_SIZE

#define VGA_PLANE_SIZE   0x10000

Definition at line 312 of file vga.h.

◆ VGA_START_BREAK_PORT

#define VGA_START_BREAK_PORT   0x000003BB

Definition at line 43 of file vga.h.

◆ VGA_TOTAL_STATE_SIZE

#define VGA_TOTAL_STATE_SIZE   VGA_PLANE_3_OFFSET + VGA_PLANE_SIZE

Definition at line 385 of file vga.h.

◆ VGA_VALIDATOR_AREA_SIZE

#define VGA_VALIDATOR_AREA_SIZE
Value:
sizeof (VGA_VALIDATOR_DATA)) + \
sizeof (ULONG) + \
sizeof (ULONG) + \
#define VGA_MAX_VALIDATOR_DATA
Definition: vga.h:296
unsigned int ULONG
Definition: retypes.h:1

Definition at line 365 of file vga.h.

◆ VGA_VALIDATOR_OFFSET

#define VGA_VALIDATOR_OFFSET   (VGA_EXT_DAC_OFFSET + 4 * EXT_NUM_DAC_ENTRIES)

Definition at line 363 of file vga.h.

◆ VGA_VALIDATOR_UCHAR_ACCESS

#define VGA_VALIDATOR_UCHAR_ACCESS   1

Definition at line 298 of file vga.h.

◆ VGA_VALIDATOR_ULONG_ACCESS

#define VGA_VALIDATOR_ULONG_ACCESS   3

Definition at line 300 of file vga.h.

◆ VGA_VALIDATOR_USHORT_ACCESS

#define VGA_VALIDATOR_USHORT_ACCESS   2

Definition at line 299 of file vga.h.

◆ VIDEO_DISABLE

#define VIDEO_DISABLE   0

Definition at line 178 of file vga.h.

◆ VIDEO_ENABLE

#define VIDEO_ENABLE   0x20

Definition at line 179 of file vga.h.

◆ VIDEO_MAX_COLOR_REGISTER

#define VIDEO_MAX_COLOR_REGISTER   0xFF

Definition at line 224 of file vga.h.

◆ VIDEO_MAX_PALETTE_REGISTER

#define VIDEO_MAX_PALETTE_REGISTER   0x0F

Definition at line 230 of file vga.h.

◆ VIDEO_SUBSYSTEM_ENABLE_OFFSET

#define VIDEO_SUBSYSTEM_ENABLE_OFFSET   0x13

Definition at line 108 of file vga.h.

◆ VIDEO_SUBSYSTEM_ENABLE_PORT

#define VIDEO_SUBSYSTEM_ENABLE_PORT   0x0013

Definition at line 71 of file vga.h.

Typedef Documentation

◆ HW_DEVICE_EXTENSION

◆ PHW_DEVICE_EXTENSION

◆ PVGA_VALIDATOR_DATA

◆ PVIDEOMODE

◆ VGA_VALIDATOR_DATA

Variable Documentation

◆ DisableA000Color

USHORT DisableA000Color[]

Definition at line 473 of file vgadata.c.

Referenced by VgaZeroVideoMemory().

◆ EnableA000Data

USHORT EnableA000Data[]

Definition at line 447 of file vgadata.c.

Referenced by VgaZeroVideoMemory().

◆ ModesVGA

VIDEOMODE ModesVGA[]

Definition at line 281 of file vgadata.c.

Referenced by InitializeModeTable().

◆ NumVideoModes

ULONG NumVideoModes

◆ VgaAccessRange

VIDEO_ACCESS_RANGE VgaAccessRange[]

Definition at line 16 of file vgadata.c.

Referenced by VgaAcquireResources(), VgaFindAdapter(), and VgaStartIO().

◆ VgaModeList

PVIDEOMODE VgaModeList

Definition at line 434 of file vgadata.c.

Referenced by InitializeModeTable(), VgaQueryAvailableModes(), and VgaSetMode().