ReactOS
0.4.17-dev-1344-g1103f43
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-2026 Dmitry Borisov <di.sean@protonmail.com>
6
*/
7
8
#pragma once
9
10
/* Use inline port routines on PC-98, instead of going through HAL */
11
#include <
ioaccess.h
>
12
13
/* GLOBALS ********************************************************************/
14
15
#define FB_OFFSET(x, y) ((y) * SCREEN_WIDTH + (x))
16
17
extern
ULONG_PTR
FrameBuffer
;
18
19
/* FUNCTIONS ******************************************************************/
20
21
VOID
22
InitPaletteWithTable
(
23
_In_reads_
(
Count
)
const
ULONG
*
Table
,
24
_In_
ULONG
Count
);
25
26
#define InitializePalette
// Overrides the default definition.
27
#define PrepareForSetPixel()
28
29
FORCEINLINE
30
VOID
31
SetPixel
(
32
_In_
ULONG
Left,
33
_In_
ULONG
Top
,
34
_In_
UCHAR
Color
)
35
{
36
PUCHAR
PixelPosition = (
PUCHAR
)(
FrameBuffer
+
FB_OFFSET
(Left,
Top
));
37
38
*PixelPosition =
Color
;
39
}
Top
static LPHIST_ENTRY Top
Definition:
history.c:53
Table
ASMGENDATA Table[]
Definition:
genincdata.c:61
void
Definition:
nsiface.idl:2307
ioaccess.h
_In_reads_
#define _In_reads_(s)
Definition:
no_sal2.h:168
_In_
#define _In_
Definition:
no_sal2.h:158
FB_OFFSET
#define FB_OFFSET(x, y)
Definition:
pc98.h:15
SetPixel
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
Definition:
pc98.h:31
InitPaletteWithTable
VOID InitPaletteWithTable(_In_reads_(Count) const ULONG *Table, _In_ ULONG Count)
Definition:
bootvid.c:220
FrameBuffer
ULONG_PTR FrameBuffer
Definition:
xboxvideo.c:29
Color
Definition:
gdipluscolor.h:301
UCHAR
unsigned char UCHAR
Definition:
typedefs.h:53
ULONG_PTR
uint32_t ULONG_PTR
Definition:
typedefs.h:65
PUCHAR
unsigned char * PUCHAR
Definition:
typedefs.h:53
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
Count
USHORT Count
Definition:
userreq.cpp:200
FORCEINLINE
#define FORCEINLINE
Definition:
wdftypes.h:67
drivers
base
bootvid
i386
pc98
pc98.h
Generated on Thu Nov 12 2026 06:08:18 for ReactOS by
1.9.6