ReactOS 0.4.16-dev-197-g92996da
video.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SYNCPARAM
 
struct  _ZOOMPARAM
 
struct  _PITCHPARAM
 
struct  _CSRWPARAM
 
struct  _CSRFORMPARAM
 
struct  _PRAMPARAM
 

Macros

#define VRAM_NORMAL_PLANE_B   0xA8000 /* Blue */
 
#define VRAM_NORMAL_PLANE_G   0xB0000 /* Green */
 
#define VRAM_NORMAL_PLANE_R   0xB8000 /* Red */
 
#define VRAM_NORMAL_PLANE_I   0xE0000 /* Intensity */
 
#define VRAM_PLANE_SIZE   0x08000
 
#define VRAM_NORMAL_TEXT   0xA0000
 
#define VRAM_TEXT_ATTR_OFFSET   0x02000
 
#define VRAM_TEXT_SIZE   0x02000
 
#define VRAM_ATTR_SIZE   0x02000
 
#define PEGC_FRAMEBUFFER_PACKED   0xF00000
 
#define PEGC_FRAMEBUFFER_SIZE   0x080000
 
#define PEGC_CONTROL_SIZE   0x000200
 
#define VRAM_HI_RESO_PLANE_B   0xC0000
 
#define VRAM_HI_RESO_PLANE_G   0xC8000
 
#define VRAM_HI_RESO_PLANE_R   0xD0000
 
#define VRAM_HI_RESO_PLANE_I   0xD8000
 
#define VRAM_HI_RESO_TEXT   0xE0000
 
#define GDC_STATUS_DRDY   0x01
 
#define GDC_STATUS_FIFO_FULL   0x02
 
#define GDC_STATUS_FIFO_EMPTY   0x04
 
#define GDC_STATUS_DRAWING   0x08
 
#define GDC_STATUS_DMA_EXECUTE   0x10
 
#define GDC_STATUS_VSYNC   0x20
 
#define GDC_STATUS_HBLANK   0x40
 
#define GDC_STATUS_LPEN   0x80
 
#define GDC_ATTR_VISIBLE   0x01
 
#define GDC_ATTR_BLINK   0x02
 
#define GDC_ATTR_REVERSE   0x04
 
#define GDC_ATTR_UNDERLINE   0x08
 
#define GDC_ATTR_VERTICAL_LINE   0x10
 
#define GDC_ATTR_BLACK   0x00
 
#define GDC_ATTR_BLUE   0x20
 
#define GDC_ATTR_RED   0x40
 
#define GDC_ATTR_PURPLE   0x60
 
#define GDC_ATTR_GREEN   0x80
 
#define GDC_ATTR_LIGHTBLUE   0xA0
 
#define GDC_ATTR_YELLOW   0xC0
 
#define GDC_ATTR_WHITE   0xE0
 
#define GDC_MOD_REPLACE   0x00
 
#define GDC_MOD_COMPLEMENT   0x01 /* XOR */
 
#define GDC_MOD_CLEAR   0x02 /* AND */
 
#define GDC_MOD_SET   0x03 /* OR */
 
#define GDC_GRAPHICS_DRAWING   0x40
 
#define GDC_COMMAND_RESET1   0x00
 
#define GDC_COMMAND_RESET2   0x01
 
#define GDC_COMMAND_STOP2   0x05
 
#define GDC_COMMAND_RESET3   0x09
 
#define GDC_COMMAND_BCTRL_STOP   0x0C
 
#define GDC_COMMAND_BCTRL_START   0x0D
 
#define GDC_COMMAND_SYNC_ON   0x0E
 
#define SYNC_DISPLAY_MODE_GRAPHICS_AND_CHARACTERS   0x00
 
#define SYNC_DISPLAY_MODE_GRAPHICS   0x02
 
#define SYNC_DISPLAY_MODE_CHARACTERS   0x20
 
#define SYNC_VIDEO_FRAMING_NONINTERLACED   0x00
 
#define SYNC_VIDEO_FRAMING_INTERLACED_REPEAT_FOR_CHARACTERS   0x08
 
#define SYNC_VIDEO_FRAMING_INTERLACED   0x09
 
#define SYNC_DRAW_DURING_ACTIVE_DISPLAY_TIME_AND_RETRACE_BLANKING   0x00
 
#define SYNC_DRAW_ONLY_DURING_RETRACE_BLANKING   0x10
 
#define SYNC_STATIC_RAM_NO_REFRESH   0x00
 
#define SYNC_DYNAMIC_RAM_REFRESH   0x04
 
#define GDC_COMMAND_SYNC_OFF   0x0F
 
#define GDC_COMMAND_WRITE   0x20
 
#define GDC_COMMAND_DMAW   0x24
 
#define GDC_COMMAND_ZOOM   0x46
 
#define GDC_COMMAND_PITCH   0x47
 
#define GDC_COMMAND_CSRW   0x49
 
#define GDC_COMMAND_MASK   0x4A
 
#define GDC_COMMAND_CSRFORM   0x4B
 
#define GDC_COMMAND_FIGS   0x4C
 
#define GDC_COMMAND_GCHRD   0x68
 
#define GDC_COMMAND_START   0x6B
 
#define GDC_COMMAND_FIGD   0x6C
 
#define GDC_COMMAND_SLAVE   0x6E
 
#define GDC_COMMAND_MASTER   0x6F
 
#define GDC_COMMAND_PRAM   0x70
 
#define GDC_COMMAND_TEXTW   0x78
 
#define GDC_COMMAND_READ   0xA0
 
#define GDC_COMMAND_DMAR   0xA4
 
#define GDC_COMMAND_LPRD   0xC0
 
#define GDC_COMMAND_CURD   0xE0
 
#define GDC1_IO_i_STATUS   0x60
 
#define GDC1_IO_i_DATA   0x62
 
#define GDC1_IO_i_MODE_FLIPFLOP1   0x68
 
#define GDC1_IO_o_PARAM   0x60
 
#define GDC1_IO_o_COMMAND   0x62
 
#define GDC1_IO_o_VSYNC   0x64 /* CRT interrupt reset */
 
#define GDC1_IO_o_MODE_FLIPFLOP1   0x68
 
#define GDC1_MODE_VERTICAL_LINE   0x00 /* Character attribute */
 
#define GDC1_MODE_SIMPLE_GRAPHICS   0x01
 
#define GRAPH_MODE_COLORED   0x02
 
#define GRAPH_MODE_MONOCHROME   0x03
 
#define GDC1_MODE_COLS_80   0x04
 
#define GDC1_MODE_COLS_40   0x05
 
#define GDC1_MODE_ANK_6_8   0x06
 
#define GDC1_MODE_ANK_7_13   0x07
 
#define GDC2_MODE_ODD_RLINE_SHOW   0x08
 
#define GDC2_MODE_ODD_RLINE_HIDE   0x09
 
#define GDC1_MODE_KCG_CODE   0x0A /* CG access during V-SYNC */
 
#define GDC1_MODE_KCG_BITMAP   0x0B
 
#define GDC1_NVRAM_PROTECT   0x0C
 
#define GDC1_NVRAM_UNPROTECT   0x0D /* Memory at TextVramSegment:(3FE2-3FFEh) */
 
#define GRAPH_MODE_DISPLAY_DISABLE   0x0E
 
#define GRAPH_MODE_DISPLAY_ENABLE   0x0F
 
#define GDC1_IO_o_BORDER_COLOR   0x6C /* PC-H98 */
 
#define GDC2_IO_i_STATUS   0xA0
 
#define GDC2_IO_i_DATA   0xA2
 
#define GDC2_IO_i_VIDEO_PAGE   0xA4
 
#define GDC2_IO_i_VIDEO_PAGE_ACCESS   0xA6
 
#define GDC2_IO_i_PALETTE_INDEX   0xA8
 
#define GDC2_IO_i_GREEN   0xAA
 
#define GDC2_IO_i_RED   0xAC
 
#define GDC2_IO_i_BLUE   0xAE
 
#define GDC2_IO_i_MODE_FLIPFLOP2   0x6A
 
#define GDC2_IO_i_MODE_FLIPFLOP3   0x6E
 
#define GDC2_IO_o_PARAM   0xA0
 
#define GDC2_IO_o_COMMAND   0xA2
 
#define GDC2_IO_o_VIDEO_PAGE   0xA4 /* Video page to display (invalid in 480 height mode) */
 
#define GDC2_IO_o_VIDEO_PAGE_ACCESS   0xA6 /* Video page to CPU access */
 
#define GDC2_IO_o_PALETTE_INDEX   0xA8
 
#define GDC2_IO_o_GREEN   0xAA
 
#define GDC2_IO_o_RED   0xAC
 
#define GDC2_IO_o_BLUE   0xAE
 
#define GDC2_IO_o_MODE_FLIPFLOP2   0x6A
 
#define GDC2_MODE_COLORS_8   0x00
 
#define GDC2_MODE_COLORS_16   0x01
 
#define GDC2_MODE_GRCG   0x04
 
#define GDC2_MODE_EGC   0x05
 
#define GDC2_EGC_FF_PROTECT   0x06
 
#define GDC2_EGC_FF_UNPROTECT   0x07 /* Unprotect the EGC F/F registers */
 
#define GDC2_MODE_PEGC_DISABLE   0x20
 
#define GDC2_MODE_PEGC_ENABLE   0x21
 
#define GDC2_MODE_CRT   0x40
 
#define GDC2_MODE_LCD   0x41
 
#define GDC2_MODE_LINES_400   0x68 /* 128 kB VRAM boundary */
 
#define GDC2_MODE_LINES_800   0x69 /* 256 kB VRAM boundary */
 
#define GDC2_CLOCK1_2_5MHZ   0x82
 
#define GDC2_CLOCK1_5MHZ   0x83
 
#define GDC2_CLOCK2_2_5MHZ   0x84
 
#define GDC2_CLOCK2_5MHZ   0x85
 
#define GDC2_IO_o_MODE_FLIPFLOP3   0x6E
 
#define GRAPH_IO_i_STATUS   0x9A0
 
#define GRAPH_STATUS_SET   0x01
 
#define GRAPH_GDC_CLOCK2_5MHZ   0x02
 
#define GRAPH_IO_o_STATUS_SELECT   0x9A0
 
#define GRAPH_STATUS_GDC_CLOCK1_5MHZ   0x09
 
#define GRAPH_STATUS_PEGC   0x0A
 
#define GRAPH_IO_i_DPMS   0x9A2
 
#define GRAPH_IO_o_DPMS   0x9A2
 
#define GRAPH_DPMS_HSYNC_MASK   0x40
 
#define GRAPH_DPMS_VSYNC_MASK   0x80
 
#define GRAPH_IO_i_HORIZONTAL_SCAN_RATE   0x9A8
 
#define GRAPH_IO_o_HORIZONTAL_SCAN_RATE   0x9A8
 
#define GRAPH_HF_24KHZ   0x00
 
#define GRAPH_HF_31KHZ   0x01
 
#define GRAPH_IO_i_RELAY   0xFAC
 
#define GRAPH_RELAY_0   0x01
 
#define GRAPH_RELAY_1   0x02
 
#define GRAPH_IO_o_RELAY   0xFAC
 
#define GRAPH_VID_SRC_INTERNAL   0x00
 
#define GRAPH_VID_SRC_EXTERNAL   0x01
 
#define GRAPH_SRC_GDC   0x00
 
#define GRAPH_SRC_WAB   0x02
 
#define CRTC_IO_o_SCANLINE_START   0x70
 
#define CRTC_IO_o_SCANLINE_END   0x72
 
#define CRTC_IO_o_SCANLINE_BLANK_AT   0x74
 
#define CRTC_IO_o_SCANLINES   0x76
 
#define CRTC_IO_o_SUR   0x78
 
#define CRTC_IO_o_SDR   0x7A
 
#define GRCG_IO_i_MODE   0x7C
 
#define GRCG_IO_o_MODE   0x7C
 
#define GRCG_DISABLE   0x00
 
#define GRCG_ENABLE   0x80
 
#define GRCG_MODE_TILE_DIRECT_WRITE   0x80
 
#define GRCG_MODE_TILE_COMPARE_READ   0x80
 
#define GRCG_MODE_READ_MODIFY_WRITE   0xC0
 
#define GRCG_IO_o_TILE_PATTERN   0x7E
 
#define KCG_IO_o_CHARCODE_HIGH   0xA1
 
#define KCG_IO_o_CHARCODE_LOW   0xA3
 
#define KCG_IO_o_LINE   0xA5
 
#define KCG_IO_o_PATTERN   0xA9
 
#define KCG_IO_i_PATTERN   0xA9
 
#define EGC_IO_o_PLANE_ACCESS   0x4A0
 
#define EGC_IO_o_PATTERN_DATA_PLANE_READ   0x4A2
 
#define EGC_IO_o_READ_WRITE_MODE   0x4A4
 
#define EGC_IO_o_FG_COLOR   0x4A6
 
#define EGC_IO_o_MASK   0x4A8
 
#define EGC_IO_o_BG_COLOR   0x4AA
 
#define EGC_IO_o_BIT_ADDRESS   0x4AC
 
#define EGC_IO_o_BIT_LENGTH   0x4AE
 
#define PEGC_MMIO_BANK_0   0x004
 
#define PEGC_MMIO_BANK_1   0x006
 
#define PEGC_MMIO_MODE   0x100
 
#define PEGC_MODE_PACKED   0x00
 
#define PEGC_MODE_PLANAR   0x01
 
#define PEGC_MMIO_FRAMEBUFFER   0x102
 
#define PEGC_FB_UNMAP   0x00
 
#define PEGC_FB_MAP   0x01
 
#define PEGC_FB_UNKNOWN1   0x02
 
#define PEGC_FB_UNKNOWN2   0x03
 
#define PEGC_MMIO_PLANE_ACCESS   0x104
 
#define PEGC_MMIO_ROP   0x108
 
#define PEGC_MMIO_DATA_SELECT   0x10A
 
#define PEGC_MMIO_MASK   0x10C
 
#define PEGC_MMIO_BIT_LENGTH   0x110
 
#define PEGC_MMIO_BIT_ADDRESS   0x112
 
#define PEGC_MMIO_FG_COLOR   0x114
 
#define PEGC_MMIO_BG_COLOR   0x118
 
#define PEGC_MMIO_ROP_PATTERN   0x120
 

Typedefs

typedef struct _SYNCPARAM SYNCPARAM
 
typedef struct _SYNCPARAMPSYNCPARAM
 
typedef struct _ZOOMPARAM ZOOMPARAM
 
typedef struct _ZOOMPARAMPZOOMPARAM
 
typedef struct _PITCHPARAM PITCHPARAM
 
typedef struct _PITCHPARAMPPITCHPARAM
 
typedef struct _CSRWPARAM CSRWPARAM
 
typedef struct _CSRWPARAMPCSRWPARAM
 
typedef struct _CSRFORMPARAM CSRFORMPARAM
 
typedef struct _CSRFORMPARAMPCSRFORMPARAM
 
typedef struct _PRAMPARAM PRAMPARAM
 
typedef struct _PRAMPARAMPPRAMPARAM
 

Functions

FORCEINLINE VOID WRITE_GDC_SYNC (PUCHAR Port, PSYNCPARAM SyncParameters)
 
FORCEINLINE VOID WRITE_GDC_ZOOM (PUCHAR Port, PZOOMPARAM ZoomParameters)
 
FORCEINLINE VOID WRITE_GDC_PITCH (PUCHAR Port, PPITCHPARAM PitchParameters)
 
FORCEINLINE VOID WRITE_GDC_CSRW (PUCHAR Port, PCSRWPARAM CursorParameters)
 
FORCEINLINE VOID WRITE_GDC_CSRFORM (PUCHAR Port, PCSRFORMPARAM CursorParameters)
 
FORCEINLINE VOID WRITE_GDC_PRAM (PUCHAR Port, PPRAMPARAM RamParameters)
 
FORCEINLINE VOID WRITE_GDC1_COMMAND (UCHAR Command)
 
FORCEINLINE VOID WRITE_GDC2_COMMAND (UCHAR Command)
 

Macro Definition Documentation

◆ CRTC_IO_o_SCANLINE_BLANK_AT

#define CRTC_IO_o_SCANLINE_BLANK_AT   0x74

Definition at line 380 of file video.h.

◆ CRTC_IO_o_SCANLINE_END

#define CRTC_IO_o_SCANLINE_END   0x72

Definition at line 379 of file video.h.

◆ CRTC_IO_o_SCANLINE_START

#define CRTC_IO_o_SCANLINE_START   0x70

Definition at line 378 of file video.h.

◆ CRTC_IO_o_SCANLINES

#define CRTC_IO_o_SCANLINES   0x76

Definition at line 381 of file video.h.

◆ CRTC_IO_o_SDR

#define CRTC_IO_o_SDR   0x7A

Definition at line 383 of file video.h.

◆ CRTC_IO_o_SUR

#define CRTC_IO_o_SUR   0x78

Definition at line 382 of file video.h.

◆ EGC_IO_o_BG_COLOR

#define EGC_IO_o_BG_COLOR   0x4AA

Definition at line 413 of file video.h.

◆ EGC_IO_o_BIT_ADDRESS

#define EGC_IO_o_BIT_ADDRESS   0x4AC

Definition at line 414 of file video.h.

◆ EGC_IO_o_BIT_LENGTH

#define EGC_IO_o_BIT_LENGTH   0x4AE

Definition at line 415 of file video.h.

◆ EGC_IO_o_FG_COLOR

#define EGC_IO_o_FG_COLOR   0x4A6

Definition at line 411 of file video.h.

◆ EGC_IO_o_MASK

#define EGC_IO_o_MASK   0x4A8

Definition at line 412 of file video.h.

◆ EGC_IO_o_PATTERN_DATA_PLANE_READ

#define EGC_IO_o_PATTERN_DATA_PLANE_READ   0x4A2

Definition at line 409 of file video.h.

◆ EGC_IO_o_PLANE_ACCESS

#define EGC_IO_o_PLANE_ACCESS   0x4A0

Definition at line 408 of file video.h.

◆ EGC_IO_o_READ_WRITE_MODE

#define EGC_IO_o_READ_WRITE_MODE   0x4A4

Definition at line 410 of file video.h.

◆ GDC1_IO_i_DATA

#define GDC1_IO_i_DATA   0x62

Definition at line 231 of file video.h.

◆ GDC1_IO_i_MODE_FLIPFLOP1

#define GDC1_IO_i_MODE_FLIPFLOP1   0x68

Definition at line 232 of file video.h.

◆ GDC1_IO_i_STATUS

#define GDC1_IO_i_STATUS   0x60

Definition at line 230 of file video.h.

◆ GDC1_IO_o_BORDER_COLOR

#define GDC1_IO_o_BORDER_COLOR   0x6C /* PC-H98 */

Definition at line 256 of file video.h.

◆ GDC1_IO_o_COMMAND

#define GDC1_IO_o_COMMAND   0x62

Definition at line 235 of file video.h.

◆ GDC1_IO_o_MODE_FLIPFLOP1

#define GDC1_IO_o_MODE_FLIPFLOP1   0x68

Definition at line 238 of file video.h.

◆ GDC1_IO_o_PARAM

#define GDC1_IO_o_PARAM   0x60

Definition at line 234 of file video.h.

◆ GDC1_IO_o_VSYNC

#define GDC1_IO_o_VSYNC   0x64 /* CRT interrupt reset */

Definition at line 236 of file video.h.

◆ GDC1_MODE_ANK_6_8

#define GDC1_MODE_ANK_6_8   0x06

Definition at line 245 of file video.h.

◆ GDC1_MODE_ANK_7_13

#define GDC1_MODE_ANK_7_13   0x07

Definition at line 246 of file video.h.

◆ GDC1_MODE_COLS_40

#define GDC1_MODE_COLS_40   0x05

Definition at line 244 of file video.h.

◆ GDC1_MODE_COLS_80

#define GDC1_MODE_COLS_80   0x04

Definition at line 243 of file video.h.

◆ GDC1_MODE_KCG_BITMAP

#define GDC1_MODE_KCG_BITMAP   0x0B

Definition at line 250 of file video.h.

◆ GDC1_MODE_KCG_CODE

#define GDC1_MODE_KCG_CODE   0x0A /* CG access during V-SYNC */

Definition at line 249 of file video.h.

◆ GDC1_MODE_SIMPLE_GRAPHICS

#define GDC1_MODE_SIMPLE_GRAPHICS   0x01

Definition at line 240 of file video.h.

◆ GDC1_MODE_VERTICAL_LINE

#define GDC1_MODE_VERTICAL_LINE   0x00 /* Character attribute */

Definition at line 239 of file video.h.

◆ GDC1_NVRAM_PROTECT

#define GDC1_NVRAM_PROTECT   0x0C

Definition at line 251 of file video.h.

◆ GDC1_NVRAM_UNPROTECT

#define GDC1_NVRAM_UNPROTECT   0x0D /* Memory at TextVramSegment:(3FE2-3FFEh) */

Definition at line 252 of file video.h.

◆ GDC2_CLOCK1_2_5MHZ

#define GDC2_CLOCK1_2_5MHZ   0x82

Definition at line 305 of file video.h.

◆ GDC2_CLOCK1_5MHZ

#define GDC2_CLOCK1_5MHZ   0x83

Definition at line 306 of file video.h.

◆ GDC2_CLOCK2_2_5MHZ

#define GDC2_CLOCK2_2_5MHZ   0x84

Definition at line 307 of file video.h.

◆ GDC2_CLOCK2_5MHZ

#define GDC2_CLOCK2_5MHZ   0x85

Definition at line 308 of file video.h.

◆ GDC2_EGC_FF_PROTECT

#define GDC2_EGC_FF_PROTECT   0x06

Definition at line 285 of file video.h.

◆ GDC2_EGC_FF_UNPROTECT

#define GDC2_EGC_FF_UNPROTECT   0x07 /* Unprotect the EGC F/F registers */

Definition at line 286 of file video.h.

◆ GDC2_IO_i_BLUE

#define GDC2_IO_i_BLUE   0xAE

Definition at line 267 of file video.h.

◆ GDC2_IO_i_DATA

#define GDC2_IO_i_DATA   0xA2

Definition at line 261 of file video.h.

◆ GDC2_IO_i_GREEN

#define GDC2_IO_i_GREEN   0xAA

Definition at line 265 of file video.h.

◆ GDC2_IO_i_MODE_FLIPFLOP2

#define GDC2_IO_i_MODE_FLIPFLOP2   0x6A

Definition at line 268 of file video.h.

◆ GDC2_IO_i_MODE_FLIPFLOP3

#define GDC2_IO_i_MODE_FLIPFLOP3   0x6E

Definition at line 269 of file video.h.

◆ GDC2_IO_i_PALETTE_INDEX

#define GDC2_IO_i_PALETTE_INDEX   0xA8

Definition at line 264 of file video.h.

◆ GDC2_IO_i_RED

#define GDC2_IO_i_RED   0xAC

Definition at line 266 of file video.h.

◆ GDC2_IO_i_STATUS

#define GDC2_IO_i_STATUS   0xA0

Definition at line 260 of file video.h.

◆ GDC2_IO_i_VIDEO_PAGE

#define GDC2_IO_i_VIDEO_PAGE   0xA4

Definition at line 262 of file video.h.

◆ GDC2_IO_i_VIDEO_PAGE_ACCESS

#define GDC2_IO_i_VIDEO_PAGE_ACCESS   0xA6

Definition at line 263 of file video.h.

◆ GDC2_IO_o_BLUE

#define GDC2_IO_o_BLUE   0xAE

Definition at line 278 of file video.h.

◆ GDC2_IO_o_COMMAND

#define GDC2_IO_o_COMMAND   0xA2

Definition at line 272 of file video.h.

◆ GDC2_IO_o_GREEN

#define GDC2_IO_o_GREEN   0xAA

Definition at line 276 of file video.h.

◆ GDC2_IO_o_MODE_FLIPFLOP2

#define GDC2_IO_o_MODE_FLIPFLOP2   0x6A

Definition at line 280 of file video.h.

◆ GDC2_IO_o_MODE_FLIPFLOP3

#define GDC2_IO_o_MODE_FLIPFLOP3   0x6E

Definition at line 310 of file video.h.

◆ GDC2_IO_o_PALETTE_INDEX

#define GDC2_IO_o_PALETTE_INDEX   0xA8

Definition at line 275 of file video.h.

◆ GDC2_IO_o_PARAM

#define GDC2_IO_o_PARAM   0xA0

Definition at line 271 of file video.h.

◆ GDC2_IO_o_RED

#define GDC2_IO_o_RED   0xAC

Definition at line 277 of file video.h.

◆ GDC2_IO_o_VIDEO_PAGE

#define GDC2_IO_o_VIDEO_PAGE   0xA4 /* Video page to display (invalid in 480 height mode) */

Definition at line 273 of file video.h.

◆ GDC2_IO_o_VIDEO_PAGE_ACCESS

#define GDC2_IO_o_VIDEO_PAGE_ACCESS   0xA6 /* Video page to CPU access */

Definition at line 274 of file video.h.

◆ GDC2_MODE_COLORS_16

#define GDC2_MODE_COLORS_16   0x01

Definition at line 282 of file video.h.

◆ GDC2_MODE_COLORS_8

#define GDC2_MODE_COLORS_8   0x00

Definition at line 281 of file video.h.

◆ GDC2_MODE_CRT

#define GDC2_MODE_CRT   0x40

Definition at line 297 of file video.h.

◆ GDC2_MODE_EGC

#define GDC2_MODE_EGC   0x05

Definition at line 284 of file video.h.

◆ GDC2_MODE_GRCG

#define GDC2_MODE_GRCG   0x04

Definition at line 283 of file video.h.

◆ GDC2_MODE_LCD

#define GDC2_MODE_LCD   0x41

Definition at line 298 of file video.h.

◆ GDC2_MODE_LINES_400

#define GDC2_MODE_LINES_400   0x68 /* 128 kB VRAM boundary */

Definition at line 301 of file video.h.

◆ GDC2_MODE_LINES_800

#define GDC2_MODE_LINES_800   0x69 /* 256 kB VRAM boundary */

Definition at line 302 of file video.h.

◆ GDC2_MODE_ODD_RLINE_HIDE

#define GDC2_MODE_ODD_RLINE_HIDE   0x09

Definition at line 248 of file video.h.

◆ GDC2_MODE_ODD_RLINE_SHOW

#define GDC2_MODE_ODD_RLINE_SHOW   0x08

Definition at line 247 of file video.h.

◆ GDC2_MODE_PEGC_DISABLE

#define GDC2_MODE_PEGC_DISABLE   0x20

Definition at line 287 of file video.h.

◆ GDC2_MODE_PEGC_ENABLE

#define GDC2_MODE_PEGC_ENABLE   0x21

Definition at line 288 of file video.h.

◆ GDC_ATTR_BLACK

#define GDC_ATTR_BLACK   0x00

Definition at line 51 of file video.h.

◆ GDC_ATTR_BLINK

#define GDC_ATTR_BLINK   0x02

Definition at line 46 of file video.h.

◆ GDC_ATTR_BLUE

#define GDC_ATTR_BLUE   0x20

Definition at line 52 of file video.h.

◆ GDC_ATTR_GREEN

#define GDC_ATTR_GREEN   0x80

Definition at line 55 of file video.h.

◆ GDC_ATTR_LIGHTBLUE

#define GDC_ATTR_LIGHTBLUE   0xA0

Definition at line 56 of file video.h.

◆ GDC_ATTR_PURPLE

#define GDC_ATTR_PURPLE   0x60

Definition at line 54 of file video.h.

◆ GDC_ATTR_RED

#define GDC_ATTR_RED   0x40

Definition at line 53 of file video.h.

◆ GDC_ATTR_REVERSE

#define GDC_ATTR_REVERSE   0x04

Definition at line 47 of file video.h.

◆ GDC_ATTR_UNDERLINE

#define GDC_ATTR_UNDERLINE   0x08

Definition at line 48 of file video.h.

◆ GDC_ATTR_VERTICAL_LINE

#define GDC_ATTR_VERTICAL_LINE   0x10

Definition at line 49 of file video.h.

◆ GDC_ATTR_VISIBLE

#define GDC_ATTR_VISIBLE   0x01

Definition at line 45 of file video.h.

◆ GDC_ATTR_WHITE

#define GDC_ATTR_WHITE   0xE0

Definition at line 58 of file video.h.

◆ GDC_ATTR_YELLOW

#define GDC_ATTR_YELLOW   0xC0

Definition at line 57 of file video.h.

◆ GDC_COMMAND_BCTRL_START

#define GDC_COMMAND_BCTRL_START   0x0D

Definition at line 73 of file video.h.

◆ GDC_COMMAND_BCTRL_STOP

#define GDC_COMMAND_BCTRL_STOP   0x0C

Definition at line 72 of file video.h.

◆ GDC_COMMAND_CSRFORM

#define GDC_COMMAND_CSRFORM   0x4B

Definition at line 173 of file video.h.

◆ GDC_COMMAND_CSRW

#define GDC_COMMAND_CSRW   0x49

Definition at line 151 of file video.h.

◆ GDC_COMMAND_CURD

#define GDC_COMMAND_CURD   0xE0

Definition at line 226 of file video.h.

◆ GDC_COMMAND_DMAR

#define GDC_COMMAND_DMAR   0xA4

Definition at line 224 of file video.h.

◆ GDC_COMMAND_DMAW

#define GDC_COMMAND_DMAW   0x24

Definition at line 122 of file video.h.

◆ GDC_COMMAND_FIGD

#define GDC_COMMAND_FIGD   0x6C

Definition at line 198 of file video.h.

◆ GDC_COMMAND_FIGS

#define GDC_COMMAND_FIGS   0x4C

Definition at line 195 of file video.h.

◆ GDC_COMMAND_GCHRD

#define GDC_COMMAND_GCHRD   0x68

Definition at line 196 of file video.h.

◆ GDC_COMMAND_LPRD

#define GDC_COMMAND_LPRD   0xC0

Definition at line 225 of file video.h.

◆ GDC_COMMAND_MASK

#define GDC_COMMAND_MASK   0x4A

Definition at line 171 of file video.h.

◆ GDC_COMMAND_MASTER

#define GDC_COMMAND_MASTER   0x6F

Definition at line 200 of file video.h.

◆ GDC_COMMAND_PITCH

#define GDC_COMMAND_PITCH   0x47

Definition at line 138 of file video.h.

◆ GDC_COMMAND_PRAM

#define GDC_COMMAND_PRAM   0x70

Definition at line 202 of file video.h.

◆ GDC_COMMAND_READ

#define GDC_COMMAND_READ   0xA0

Definition at line 223 of file video.h.

◆ GDC_COMMAND_RESET1

#define GDC_COMMAND_RESET1   0x00

Definition at line 68 of file video.h.

◆ GDC_COMMAND_RESET2

#define GDC_COMMAND_RESET2   0x01

Definition at line 69 of file video.h.

◆ GDC_COMMAND_RESET3

#define GDC_COMMAND_RESET3   0x09

Definition at line 71 of file video.h.

◆ GDC_COMMAND_SLAVE

#define GDC_COMMAND_SLAVE   0x6E

Definition at line 199 of file video.h.

◆ GDC_COMMAND_START

#define GDC_COMMAND_START   0x6B

Definition at line 197 of file video.h.

◆ GDC_COMMAND_STOP2

#define GDC_COMMAND_STOP2   0x05

Definition at line 70 of file video.h.

◆ GDC_COMMAND_SYNC_OFF

#define GDC_COMMAND_SYNC_OFF   0x0F

Definition at line 120 of file video.h.

◆ GDC_COMMAND_SYNC_ON

#define GDC_COMMAND_SYNC_ON   0x0E

Definition at line 75 of file video.h.

◆ GDC_COMMAND_TEXTW

#define GDC_COMMAND_TEXTW   0x78

Definition at line 222 of file video.h.

◆ GDC_COMMAND_WRITE

#define GDC_COMMAND_WRITE   0x20

Definition at line 121 of file video.h.

◆ GDC_COMMAND_ZOOM

#define GDC_COMMAND_ZOOM   0x46

Definition at line 124 of file video.h.

◆ GDC_GRAPHICS_DRAWING

#define GDC_GRAPHICS_DRAWING   0x40

Definition at line 66 of file video.h.

◆ GDC_MOD_CLEAR

#define GDC_MOD_CLEAR   0x02 /* AND */

Definition at line 63 of file video.h.

◆ GDC_MOD_COMPLEMENT

#define GDC_MOD_COMPLEMENT   0x01 /* XOR */

Definition at line 62 of file video.h.

◆ GDC_MOD_REPLACE

#define GDC_MOD_REPLACE   0x00

Definition at line 61 of file video.h.

◆ GDC_MOD_SET

#define GDC_MOD_SET   0x03 /* OR */

Definition at line 64 of file video.h.

◆ GDC_STATUS_DMA_EXECUTE

#define GDC_STATUS_DMA_EXECUTE   0x10

Definition at line 40 of file video.h.

◆ GDC_STATUS_DRAWING

#define GDC_STATUS_DRAWING   0x08

Definition at line 39 of file video.h.

◆ GDC_STATUS_DRDY

#define GDC_STATUS_DRDY   0x01

Definition at line 36 of file video.h.

◆ GDC_STATUS_FIFO_EMPTY

#define GDC_STATUS_FIFO_EMPTY   0x04

Definition at line 38 of file video.h.

◆ GDC_STATUS_FIFO_FULL

#define GDC_STATUS_FIFO_FULL   0x02

Definition at line 37 of file video.h.

◆ GDC_STATUS_HBLANK

#define GDC_STATUS_HBLANK   0x40

Definition at line 42 of file video.h.

◆ GDC_STATUS_LPEN

#define GDC_STATUS_LPEN   0x80

Definition at line 43 of file video.h.

◆ GDC_STATUS_VSYNC

#define GDC_STATUS_VSYNC   0x20

Definition at line 41 of file video.h.

◆ GRAPH_DPMS_HSYNC_MASK

#define GRAPH_DPMS_HSYNC_MASK   0x40

Definition at line 356 of file video.h.

◆ GRAPH_DPMS_VSYNC_MASK

#define GRAPH_DPMS_VSYNC_MASK   0x80

Definition at line 357 of file video.h.

◆ GRAPH_GDC_CLOCK2_5MHZ

#define GRAPH_GDC_CLOCK2_5MHZ   0x02

Definition at line 348 of file video.h.

◆ GRAPH_HF_24KHZ

#define GRAPH_HF_24KHZ   0x00

Definition at line 361 of file video.h.

◆ GRAPH_HF_31KHZ

#define GRAPH_HF_31KHZ   0x01

Definition at line 362 of file video.h.

◆ GRAPH_IO_i_DPMS

#define GRAPH_IO_i_DPMS   0x9A2

Definition at line 354 of file video.h.

◆ GRAPH_IO_i_HORIZONTAL_SCAN_RATE

#define GRAPH_IO_i_HORIZONTAL_SCAN_RATE   0x9A8

Definition at line 359 of file video.h.

◆ GRAPH_IO_i_RELAY

#define GRAPH_IO_i_RELAY   0xFAC

Definition at line 364 of file video.h.

◆ GRAPH_IO_i_STATUS

#define GRAPH_IO_i_STATUS   0x9A0

Definition at line 346 of file video.h.

◆ GRAPH_IO_o_DPMS

#define GRAPH_IO_o_DPMS   0x9A2

Definition at line 355 of file video.h.

◆ GRAPH_IO_o_HORIZONTAL_SCAN_RATE

#define GRAPH_IO_o_HORIZONTAL_SCAN_RATE   0x9A8

Definition at line 360 of file video.h.

◆ GRAPH_IO_o_RELAY

#define GRAPH_IO_o_RELAY   0xFAC

Definition at line 368 of file video.h.

◆ GRAPH_IO_o_STATUS_SELECT

#define GRAPH_IO_o_STATUS_SELECT   0x9A0

Definition at line 350 of file video.h.

◆ GRAPH_MODE_COLORED

#define GRAPH_MODE_COLORED   0x02

Definition at line 241 of file video.h.

◆ GRAPH_MODE_DISPLAY_DISABLE

#define GRAPH_MODE_DISPLAY_DISABLE   0x0E

Definition at line 253 of file video.h.

◆ GRAPH_MODE_DISPLAY_ENABLE

#define GRAPH_MODE_DISPLAY_ENABLE   0x0F

Definition at line 254 of file video.h.

◆ GRAPH_MODE_MONOCHROME

#define GRAPH_MODE_MONOCHROME   0x03

Definition at line 242 of file video.h.

◆ GRAPH_RELAY_0

#define GRAPH_RELAY_0   0x01

Definition at line 365 of file video.h.

◆ GRAPH_RELAY_1

#define GRAPH_RELAY_1   0x02

Definition at line 366 of file video.h.

◆ GRAPH_SRC_GDC

#define GRAPH_SRC_GDC   0x00

Definition at line 373 of file video.h.

◆ GRAPH_SRC_WAB

#define GRAPH_SRC_WAB   0x02

Definition at line 374 of file video.h.

◆ GRAPH_STATUS_GDC_CLOCK1_5MHZ

#define GRAPH_STATUS_GDC_CLOCK1_5MHZ   0x09

Definition at line 351 of file video.h.

◆ GRAPH_STATUS_PEGC

#define GRAPH_STATUS_PEGC   0x0A

Definition at line 352 of file video.h.

◆ GRAPH_STATUS_SET

#define GRAPH_STATUS_SET   0x01

Definition at line 347 of file video.h.

◆ GRAPH_VID_SRC_EXTERNAL

#define GRAPH_VID_SRC_EXTERNAL   0x01

Definition at line 371 of file video.h.

◆ GRAPH_VID_SRC_INTERNAL

#define GRAPH_VID_SRC_INTERNAL   0x00

Definition at line 370 of file video.h.

◆ GRCG_DISABLE

#define GRCG_DISABLE   0x00

Definition at line 389 of file video.h.

◆ GRCG_ENABLE

#define GRCG_ENABLE   0x80

Definition at line 390 of file video.h.

◆ GRCG_IO_i_MODE

#define GRCG_IO_i_MODE   0x7C

Definition at line 387 of file video.h.

◆ GRCG_IO_o_MODE

#define GRCG_IO_o_MODE   0x7C

Definition at line 388 of file video.h.

◆ GRCG_IO_o_TILE_PATTERN

#define GRCG_IO_o_TILE_PATTERN   0x7E

Definition at line 395 of file video.h.

◆ GRCG_MODE_READ_MODIFY_WRITE

#define GRCG_MODE_READ_MODIFY_WRITE   0xC0

Definition at line 393 of file video.h.

◆ GRCG_MODE_TILE_COMPARE_READ

#define GRCG_MODE_TILE_COMPARE_READ   0x80

Definition at line 392 of file video.h.

◆ GRCG_MODE_TILE_DIRECT_WRITE

#define GRCG_MODE_TILE_DIRECT_WRITE   0x80

Definition at line 391 of file video.h.

◆ KCG_IO_i_PATTERN

#define KCG_IO_i_PATTERN   0xA9

Definition at line 404 of file video.h.

◆ KCG_IO_o_CHARCODE_HIGH

#define KCG_IO_o_CHARCODE_HIGH   0xA1

Definition at line 399 of file video.h.

◆ KCG_IO_o_CHARCODE_LOW

#define KCG_IO_o_CHARCODE_LOW   0xA3

Definition at line 400 of file video.h.

◆ KCG_IO_o_LINE

#define KCG_IO_o_LINE   0xA5

Definition at line 401 of file video.h.

◆ KCG_IO_o_PATTERN

#define KCG_IO_o_PATTERN   0xA9

Definition at line 402 of file video.h.

◆ PEGC_CONTROL_SIZE

#define PEGC_CONTROL_SIZE   0x000200

Definition at line 25 of file video.h.

◆ PEGC_FB_MAP

#define PEGC_FB_MAP   0x01

Definition at line 426 of file video.h.

◆ PEGC_FB_UNKNOWN1

#define PEGC_FB_UNKNOWN1   0x02

Definition at line 427 of file video.h.

◆ PEGC_FB_UNKNOWN2

#define PEGC_FB_UNKNOWN2   0x03

Definition at line 428 of file video.h.

◆ PEGC_FB_UNMAP

#define PEGC_FB_UNMAP   0x00

Definition at line 425 of file video.h.

◆ PEGC_FRAMEBUFFER_PACKED

#define PEGC_FRAMEBUFFER_PACKED   0xF00000

Definition at line 22 of file video.h.

◆ PEGC_FRAMEBUFFER_SIZE

#define PEGC_FRAMEBUFFER_SIZE   0x080000

Definition at line 23 of file video.h.

◆ PEGC_MMIO_BANK_0

#define PEGC_MMIO_BANK_0   0x004

Definition at line 417 of file video.h.

◆ PEGC_MMIO_BANK_1

#define PEGC_MMIO_BANK_1   0x006

Definition at line 418 of file video.h.

◆ PEGC_MMIO_BG_COLOR

#define PEGC_MMIO_BG_COLOR   0x118

Definition at line 437 of file video.h.

◆ PEGC_MMIO_BIT_ADDRESS

#define PEGC_MMIO_BIT_ADDRESS   0x112

Definition at line 435 of file video.h.

◆ PEGC_MMIO_BIT_LENGTH

#define PEGC_MMIO_BIT_LENGTH   0x110

Definition at line 434 of file video.h.

◆ PEGC_MMIO_DATA_SELECT

#define PEGC_MMIO_DATA_SELECT   0x10A

Definition at line 432 of file video.h.

◆ PEGC_MMIO_FG_COLOR

#define PEGC_MMIO_FG_COLOR   0x114

Definition at line 436 of file video.h.

◆ PEGC_MMIO_FRAMEBUFFER

#define PEGC_MMIO_FRAMEBUFFER   0x102

Definition at line 424 of file video.h.

◆ PEGC_MMIO_MASK

#define PEGC_MMIO_MASK   0x10C

Definition at line 433 of file video.h.

◆ PEGC_MMIO_MODE

#define PEGC_MMIO_MODE   0x100

Definition at line 420 of file video.h.

◆ PEGC_MMIO_PLANE_ACCESS

#define PEGC_MMIO_PLANE_ACCESS   0x104

Definition at line 430 of file video.h.

◆ PEGC_MMIO_ROP

#define PEGC_MMIO_ROP   0x108

Definition at line 431 of file video.h.

◆ PEGC_MMIO_ROP_PATTERN

#define PEGC_MMIO_ROP_PATTERN   0x120

Definition at line 438 of file video.h.

◆ PEGC_MODE_PACKED

#define PEGC_MODE_PACKED   0x00

Definition at line 421 of file video.h.

◆ PEGC_MODE_PLANAR

#define PEGC_MODE_PLANAR   0x01

Definition at line 422 of file video.h.

◆ SYNC_DISPLAY_MODE_CHARACTERS

#define SYNC_DISPLAY_MODE_CHARACTERS   0x20

Definition at line 81 of file video.h.

◆ SYNC_DISPLAY_MODE_GRAPHICS

#define SYNC_DISPLAY_MODE_GRAPHICS   0x02

Definition at line 80 of file video.h.

◆ SYNC_DISPLAY_MODE_GRAPHICS_AND_CHARACTERS

#define SYNC_DISPLAY_MODE_GRAPHICS_AND_CHARACTERS   0x00

Definition at line 79 of file video.h.

◆ SYNC_DRAW_DURING_ACTIVE_DISPLAY_TIME_AND_RETRACE_BLANKING

#define SYNC_DRAW_DURING_ACTIVE_DISPLAY_TIME_AND_RETRACE_BLANKING   0x00

Definition at line 87 of file video.h.

◆ SYNC_DRAW_ONLY_DURING_RETRACE_BLANKING

#define SYNC_DRAW_ONLY_DURING_RETRACE_BLANKING   0x10

Definition at line 88 of file video.h.

◆ SYNC_DYNAMIC_RAM_REFRESH

#define SYNC_DYNAMIC_RAM_REFRESH   0x04

Definition at line 91 of file video.h.

◆ SYNC_STATIC_RAM_NO_REFRESH

#define SYNC_STATIC_RAM_NO_REFRESH   0x00

Definition at line 90 of file video.h.

◆ SYNC_VIDEO_FRAMING_INTERLACED

#define SYNC_VIDEO_FRAMING_INTERLACED   0x09

Definition at line 85 of file video.h.

◆ SYNC_VIDEO_FRAMING_INTERLACED_REPEAT_FOR_CHARACTERS

#define SYNC_VIDEO_FRAMING_INTERLACED_REPEAT_FOR_CHARACTERS   0x08

Definition at line 84 of file video.h.

◆ SYNC_VIDEO_FRAMING_NONINTERLACED

#define SYNC_VIDEO_FRAMING_NONINTERLACED   0x00

Definition at line 83 of file video.h.

◆ VRAM_ATTR_SIZE

#define VRAM_ATTR_SIZE   0x02000

Definition at line 20 of file video.h.

◆ VRAM_HI_RESO_PLANE_B

#define VRAM_HI_RESO_PLANE_B   0xC0000

Definition at line 28 of file video.h.

◆ VRAM_HI_RESO_PLANE_G

#define VRAM_HI_RESO_PLANE_G   0xC8000

Definition at line 29 of file video.h.

◆ VRAM_HI_RESO_PLANE_I

#define VRAM_HI_RESO_PLANE_I   0xD8000

Definition at line 31 of file video.h.

◆ VRAM_HI_RESO_PLANE_R

#define VRAM_HI_RESO_PLANE_R   0xD0000

Definition at line 30 of file video.h.

◆ VRAM_HI_RESO_TEXT

#define VRAM_HI_RESO_TEXT   0xE0000

Definition at line 32 of file video.h.

◆ VRAM_NORMAL_PLANE_B

#define VRAM_NORMAL_PLANE_B   0xA8000 /* Blue */

Definition at line 12 of file video.h.

◆ VRAM_NORMAL_PLANE_G

#define VRAM_NORMAL_PLANE_G   0xB0000 /* Green */

Definition at line 13 of file video.h.

◆ VRAM_NORMAL_PLANE_I

#define VRAM_NORMAL_PLANE_I   0xE0000 /* Intensity */

Definition at line 15 of file video.h.

◆ VRAM_NORMAL_PLANE_R

#define VRAM_NORMAL_PLANE_R   0xB8000 /* Red */

Definition at line 14 of file video.h.

◆ VRAM_NORMAL_TEXT

#define VRAM_NORMAL_TEXT   0xA0000

Definition at line 17 of file video.h.

◆ VRAM_PLANE_SIZE

#define VRAM_PLANE_SIZE   0x08000

Definition at line 16 of file video.h.

◆ VRAM_TEXT_ATTR_OFFSET

#define VRAM_TEXT_ATTR_OFFSET   0x02000

Definition at line 18 of file video.h.

◆ VRAM_TEXT_SIZE

#define VRAM_TEXT_SIZE   0x02000

Definition at line 19 of file video.h.

Typedef Documentation

◆ CSRFORMPARAM

◆ CSRWPARAM

◆ PCSRFORMPARAM

◆ PCSRWPARAM

◆ PITCHPARAM

◆ PPITCHPARAM

◆ PPRAMPARAM

◆ PRAMPARAM

◆ PSYNCPARAM

◆ PZOOMPARAM

◆ SYNCPARAM

◆ ZOOMPARAM

Function Documentation

◆ WRITE_GDC1_COMMAND()

FORCEINLINE VOID WRITE_GDC1_COMMAND ( UCHAR  Command)

Definition at line 326 of file video.h.

327{
329 NOTHING;
330
332}
#define NOTHING
Definition: input_list.c:10
#define READ_PORT_UCHAR(p)
Definition: pc98vid.h:22
#define WRITE_PORT_UCHAR(p, d)
Definition: pc98vid.h:21
#define GDC1_IO_i_STATUS
Definition: video.h:230
#define GDC1_IO_o_COMMAND
Definition: video.h:235
#define GDC_STATUS_FIFO_EMPTY
Definition: video.h:38
Definition: shell.h:41
unsigned char * PUCHAR
Definition: typedefs.h:53

Referenced by InitializeDisplay(), and Pc98VidSetCurrentMode().

◆ WRITE_GDC2_COMMAND()

FORCEINLINE VOID WRITE_GDC2_COMMAND ( UCHAR  Command)

Definition at line 336 of file video.h.

337{
339 NOTHING;
340
342}
#define GDC2_IO_o_COMMAND
Definition: video.h:272
#define GDC2_IO_i_STATUS
Definition: video.h:260

Referenced by InitializeDisplay(), and Pc98VidSetCurrentMode().

◆ WRITE_GDC_CSRFORM()

FORCEINLINE VOID WRITE_GDC_CSRFORM ( PUCHAR  Port,
PCSRFORMPARAM  CursorParameters 
)

Definition at line 186 of file video.h.

187{
188 WRITE_PORT_UCHAR(Port, (((_Bool)CursorParameters->Show) << 7) |
189 (CursorParameters->LinesPerRow - 1));
190 WRITE_PORT_UCHAR(Port, ((CursorParameters->BlinkRate & 0x03) << 6) |
191 (((_Bool)!CursorParameters->Blink) << 5) | CursorParameters->StartScanLine);
192 WRITE_PORT_UCHAR(Port, (CursorParameters->EndScanLine << 3) | ((CursorParameters->BlinkRate & 0x1C) >> 2));
193}
CPPORT Port[4]
Definition: headless.c:35
UCHAR StartScanLine
Definition: video.h:180
UCHAR LinesPerRow
Definition: video.h:179
BOOLEAN Show
Definition: video.h:176
UCHAR EndScanLine
Definition: video.h:181
BOOLEAN Blink
Definition: video.h:177
UCHAR BlinkRate
Definition: video.h:178

Referenced by InitializeDisplay(), Pc98VideoHideShowTextCursor(), and Pc98VidSetCurrentMode().

◆ WRITE_GDC_CSRW()

FORCEINLINE VOID WRITE_GDC_CSRW ( PUCHAR  Port,
PCSRWPARAM  CursorParameters 
)

Definition at line 160 of file video.h.

161{
162 ASSERT(CursorParameters->CursorAddress < 0xF00000);
163 ASSERT(CursorParameters->DotAddress < 0x10);
164
165 WRITE_PORT_UCHAR(Port, CursorParameters->CursorAddress & 0xFF);
166 WRITE_PORT_UCHAR(Port, (CursorParameters->CursorAddress >> 8) & 0xFF);
167 WRITE_PORT_UCHAR(Port, (CursorParameters->DotAddress << 4) |
168 ((CursorParameters->CursorAddress >> 16) & 0x03));
169}
#define ASSERT(a)
Definition: mode.c:44
UCHAR DotAddress
Definition: video.h:155
ULONG CursorAddress
Definition: video.h:154

Referenced by InitializeDisplay(), Pc98VideoSetTextCursorPosition(), and Pc98VidSetCurrentMode().

◆ WRITE_GDC_PITCH()

FORCEINLINE VOID WRITE_GDC_PITCH ( PUCHAR  Port,
PPITCHPARAM  PitchParameters 
)

Definition at line 146 of file video.h.

147{
148 WRITE_PORT_UCHAR(Port, PitchParameters->WordsPerScanline);
149}
ULONG WordsPerScanline
Definition: video.h:141

Referenced by InitializeDisplay(), and Pc98VidSetCurrentMode().

◆ WRITE_GDC_PRAM()

FORCEINLINE VOID WRITE_GDC_PRAM ( PUCHAR  Port,
PPRAMPARAM  RamParameters 
)

Definition at line 213 of file video.h.

214{
215 WRITE_PORT_UCHAR(Port, RamParameters->StartingAddress & 0xFF);
216 WRITE_PORT_UCHAR(Port, (RamParameters->StartingAddress >> 8) & 0xFF);
217 WRITE_PORT_UCHAR(Port, ((RamParameters->Length & 0x0F) << 4) | ((RamParameters->StartingAddress >> 16) & 0x03));
218 WRITE_PORT_UCHAR(Port, ((RamParameters->WideDisplay & 0x01) << 7) | ((RamParameters->ImageBit & 0x01) << 6) |
219 ((RamParameters->Length >> 4) & 0x3F));
220}
ULONG StartingAddress
Definition: video.h:205
USHORT Length
Definition: video.h:206
BOOLEAN ImageBit
Definition: video.h:207
BOOLEAN WideDisplay
Definition: video.h:208

Referenced by InitializeDisplay(), and Pc98VidSetCurrentMode().

◆ WRITE_GDC_SYNC()

FORCEINLINE VOID WRITE_GDC_SYNC ( PUCHAR  Port,
PSYNCPARAM  SyncParameters 
)

Definition at line 105 of file video.h.

106{
107 WRITE_PORT_UCHAR(Port, SyncParameters->Flags & 0x3F);
108 WRITE_PORT_UCHAR(Port, SyncParameters->ScreenWidthChars - 2);
109 WRITE_PORT_UCHAR(Port, (SyncParameters->VerticalSyncWidth & 0x07) << 5 |
110 (SyncParameters->HorizontalSyncWidth - 1));
111 WRITE_PORT_UCHAR(Port, ((SyncParameters->HorizontalFrontPorchWidth - 1) << 2) |
112 ((SyncParameters->VerticalSyncWidth & 0x18) >> 3));
113 WRITE_PORT_UCHAR(Port, SyncParameters->HorizontalBackPorchWidth - 1);
115 WRITE_PORT_UCHAR(Port, SyncParameters->ScreenWidthLines & 0xFF);
116 WRITE_PORT_UCHAR(Port, (SyncParameters->VerticalBackPorchWidth << 2) |
117 ((SyncParameters->ScreenWidthLines & 0x300) >> 8));
118}
UCHAR HorizontalBackPorchWidth
Definition: video.h:97
UCHAR VerticalBackPorchWidth
Definition: video.h:100
USHORT ScreenWidthLines
Definition: video.h:99
UCHAR ScreenWidthChars
Definition: video.h:93
UCHAR VerticalSyncWidth
Definition: video.h:95
UCHAR HorizontalSyncWidth
Definition: video.h:94
UCHAR VerticalFrontPorchWidth
Definition: video.h:98
UCHAR Flags
Definition: video.h:78
UCHAR HorizontalFrontPorchWidth
Definition: video.h:96

Referenced by InitializeDisplay(), and Pc98VidSetCurrentMode().

◆ WRITE_GDC_ZOOM()

FORCEINLINE VOID WRITE_GDC_ZOOM ( PUCHAR  Port,
PZOOMPARAM  ZoomParameters 
)

Definition at line 133 of file video.h.

134{
135 WRITE_PORT_UCHAR(Port, ZoomParameters->DisplayZoomFactor << 4 | ZoomParameters->WritingZoomFactor);
136}
UCHAR WritingZoomFactor
Definition: video.h:128
UCHAR DisplayZoomFactor
Definition: video.h:127

Referenced by InitializeDisplay(), and Pc98VidSetCurrentMode().