vgadefs.h revision 040f5298dc1e307aa20cf50b4eea39bba3b7b5fa
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/*
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * BIOS Memory
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_SEG 0x40
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_INITIAL_MODE 0x10
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CURRENT_MODE 0x49
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_NB_COLS 0x4A
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_PAGE_SIZE 0x4C
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CURRENT_START 0x4E
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CURSOR_POS 0x50
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CURSOR_TYPE 0x60
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CURRENT_PAGE 0x62
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CRTC_ADDRESS 0x63
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CURRENT_MSR 0x65
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CURRENT_PAL 0x66
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_NB_ROWS 0x84
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_CHAR_HEIGHT 0x85
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_VIDEO_CTL 0x87
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_SWITCHES 0x88
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_MODESET_CTL 0x89
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_DCC_INDEX 0x8A
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_VS_POINTER 0xA8
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_VBE_FLAG 0xB9
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define BIOSMEM_VBE_MODE 0xBA
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/*
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * VGA registers
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin */
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_ACTL_ADDRESS 0x3c0
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_ACTL_WRITE_DATA 0x3c0
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_ACTL_READ_DATA 0x3c1
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_INPUT_STATUS 0x3c2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_WRITE_MISC_OUTPUT 0x3c2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_VIDEO_ENABLE 0x3c3
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_SEQU_ADDRESS 0x3c4
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_SEQU_DATA 0x3c5
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_PEL_MASK 0x3c6
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_DAC_STATE 0x3c7
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_DAC_READ_ADDRESS 0x3c7
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_DAC_WRITE_ADDRESS 0x3c8
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_DAC_DATA 0x3c9
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_READ_FEATURE_CTL 0x3ca
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_READ_MISC_OUTPUT 0x3cc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_GRDC_ADDRESS 0x3ce
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_GRDC_DATA 0x3cf
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_MDA_CRTC_ADDRESS 0x3b4
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_MDA_CRTC_DATA 0x3b5
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_VGA_CRTC_ADDRESS 0x3d4
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_VGA_CRTC_DATA 0x3d5
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_MDA_WRITE_FEATURE_CTL 0x3ba
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_VGA_WRITE_FEATURE_CTL 0x3da
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_ACTL_RESET 0x3da
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_MDA_MODECTL 0x3b8
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_CGA_MODECTL 0x3d8
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define VGAREG_CGA_PALETTE 0x3d9
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin