ReactOS 0.4.15-dev-5666-gc548b97
pc.h
Go to the documentation of this file.
1
2#pragma once
3
5extern ULONG_PTR VgaBase;
7extern USHORT VGA_640x480[];
8extern UCHAR PixelMask[8];
9
10#define __inpb(Port) \
11 READ_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)))
12
13#define __inpw(Port) \
14 READ_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)))
15
16#define __outpb(Port, Value) \
17 WRITE_PORT_UCHAR((PUCHAR)(VgaRegisterBase + (Port)), (UCHAR)(Value))
18
19#define __outpw(Port, Value) \
20 WRITE_PORT_USHORT((PUSHORT)(VgaRegisterBase + (Port)), (USHORT)(Value))
21
22VOID
27
28VOID
30
32VOID
34 _In_ ULONG Left,
37{
38 PUCHAR PixelPosition;
39
40 /* Calculate the pixel position */
41 PixelPosition = (PUCHAR)(VgaBase + (Left >> 3) + (Top * (SCREEN_WIDTH / 8)));
42
43 /* Select the bitmask register and write the mask */
45
46 /* Dummy read to load latch registers */
47 (VOID)READ_REGISTER_UCHAR(PixelPosition);
48
49 /* Set the new color */
50 WRITE_REGISTER_UCHAR(PixelPosition, Color);
51}
52
53VOID
56 _In_ ULONG CurrentTop,
57 _In_ ULONG TopDelta,
58 _In_ BOOLEAN Restore);
59
60VOID
63 _In_ ULONG Scroll);
64
65VOID
68 _In_ CHAR Character,
69 _In_ ULONG Left,
71 _In_ ULONG TextColor,
72 _In_ ULONG BackColor);
unsigned char BOOLEAN
#define VOID
Definition: acefi.h:82
static LPHIST_ENTRY Top
Definition: history.c:53
#define GRAPH_ADDRESS_PORT
Definition: vga.h:81
#define IND_BIT_MASK
Definition: vga.h:114
#define VGA_BASE_IO_PORT
Definition: vga.h:38
ASMGENDATA Table[]
Definition: genincdata.c:61
unsigned int * PULONG
Definition: retypes.h:1
unsigned char * PUCHAR
Definition: retypes.h:3
unsigned int ULONG
Definition: retypes.h:1
#define _In_
Definition: ms_sal.h:308
int Count
Definition: noreturn.cpp:7
#define SCREEN_WIDTH
Definition: pc98video.c:27
VOID NTAPI DoScroll(_In_ ULONG Scroll)
Definition: bootvid.c:59
ULONG_PTR VgaRegisterBase
Definition: vga.c:58
VOID NTAPI PreserveRow(_In_ ULONG CurrentTop, _In_ ULONG TopDelta, _In_ BOOLEAN Restore)
Definition: bootvid.c:107
VOID NTAPI InitPaletteWithTable(_In_ PULONG Table, _In_ ULONG Count)
Definition: bootvid.c:170
#define __outpw(Port, Value)
Definition: pc.h:19
VOID PrepareForSetPixel(VOID)
Definition: vga.c:81
USHORT VGA_640x480[]
Definition: bootdata.c:38
ULONG_PTR VgaBase
Definition: vga.c:59
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
Definition: pc.h:33
USHORT AT_Initialization[]
Definition: bootdata.c:7
VOID NTAPI DisplayCharacter(_In_ CHAR Character, _In_ ULONG Left, _In_ ULONG Top, _In_ ULONG TextColor, _In_ ULONG BackColor)
Definition: bootvid.c:13
UCHAR PixelMask[8]
Definition: vga.c:27
unsigned short USHORT
Definition: pedump.c:61
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define FORCEINLINE
Definition: wdftypes.h:67
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175