ReactOS  0.4.15-dev-1201-gb2cf5a4
pc98.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Boot Video Driver for NEC PC-98 series
3  * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE: Arch-specific header file
5  * COPYRIGHT: Copyright 2020 Dmitry Borisov (di.sean@protonmail.com)
6  */
7 
8 #pragma once
9 
10 /* INCLUDES *******************************************************************/
11 
12 #include <drivers/pc98/video.h>
13 
14 /* GLOBALS ********************************************************************/
15 
16 #define BYTES_PER_SCANLINE (SCREEN_WIDTH / 8)
17 #define FB_OFFSET(x, y) ((y) * SCREEN_WIDTH + (x))
18 
19 extern ULONG_PTR FrameBuffer;
20 
21 /* PROTOTYPES *****************************************************************/
22 
23 VOID
24 NTAPI
26  _In_ CHAR Character,
27  _In_ ULONG Left,
28  _In_ ULONG Top,
29  _In_ ULONG TextColor,
30  _In_ ULONG BackColor);
31 
32 VOID
33 NTAPI
34 DoScroll(
35  _In_ ULONG Scroll);
36 
37 VOID
38 NTAPI
41  _In_ ULONG Count);
42 
43 VOID
44 NTAPI
46  _In_ ULONG CurrentTop,
47  _In_ ULONG TopDelta,
48  _In_ BOOLEAN Restore);
49 
50 VOID
52 
53 /* FUNCTIONS ******************************************************************/
54 
56 VOID
58  _In_ ULONG Left,
59  _In_ ULONG Top,
61 {
62  PUCHAR PixelPosition = (PUCHAR)(FrameBuffer + FB_OFFSET(Left, Top));
63 
64  WRITE_REGISTER_UCHAR(PixelPosition, Color);
65 }
ASMGENDATA Table[]
Definition: genincdata.c:61
unsigned char * PUCHAR
Definition: retypes.h:3
char CHAR
Definition: xmlstorage.h:175
VOID PrepareForSetPixel(VOID)
Definition: vga.c:81
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1223
uint32_t ULONG_PTR
Definition: typedefs.h:65
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
Definition: pc98.h:57
unsigned char BOOLEAN
#define FORCEINLINE
Definition: ntbasedef.h:216
VOID NTAPI DisplayCharacter(_In_ CHAR Character, _In_ ULONG Left, _In_ ULONG Top, _In_ ULONG TextColor, _In_ ULONG BackColor)
Definition: bootvid.c:13
unsigned char UCHAR
Definition: xmlstorage.h:181
VOID NTAPI InitPaletteWithTable(_In_ PULONG Table, _In_ ULONG Count)
Definition: bootvid.c:170
#define _In_
Definition: no_sal2.h:204
unsigned int * PULONG
Definition: retypes.h:1
VOID NTAPI PreserveRow(_In_ ULONG CurrentTop, _In_ ULONG TopDelta, _In_ BOOLEAN Restore)
Definition: bootvid.c:107
ULONG_PTR FrameBuffer
Definition: xboxvideo.c:28
unsigned int ULONG
Definition: retypes.h:1
VOID NTAPI DoScroll(_In_ ULONG Scroll)
Definition: bootvid.c:59
static LPHIST_ENTRY Top
Definition: history.c:53
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
#define FB_OFFSET(x, y)
Definition: pc98.h:17