ReactOS  0.4.15-dev-1070-ge1a01de
arm.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 extern PUSHORT VgaArmBase;
5 
6 #define LCDTIMING0_PPL(x) ((((x) / 16 - 1) & 0x3f) << 2)
7 #define LCDTIMING1_LPP(x) (((x) & 0x3ff) - 1)
8 #define LCDCONTROL_LCDPWR (1 << 11)
9 #define LCDCONTROL_LCDEN (1)
10 #define LCDCONTROL_LCDBPP(x) (((x) & 7) << 1)
11 #define LCDCONTROL_LCDTFT (1 << 5)
12 
13 #define PL110_LCDTIMING0 (PVOID)0xE0020000
14 #define PL110_LCDTIMING1 (PVOID)0xE0020004
15 #define PL110_LCDTIMING2 (PVOID)0xE0020008
16 #define PL110_LCDUPBASE (PVOID)0xE0020010
17 #define PL110_LCDLPBASE (PVOID)0xE0020014
18 #define PL110_LCDCONTROL (PVOID)0xE0020018
19 
20 #define READ_REGISTER_ULONG(r) (*(volatile ULONG * const)(r))
21 #define WRITE_REGISTER_ULONG(r, v) (*(volatile ULONG *)(r) = (v))
22 
23 #define READ_REGISTER_USHORT(r) (*(volatile USHORT * const)(r))
24 #define WRITE_REGISTER_USHORT(r, v) (*(volatile USHORT *)(r) = (v))
25 
27 USHORT
30 {
31  UCHAR Red, Green, Blue;
32 
33  /* Extract color components */
37 
38  /* Build the 16-bit color mask */
39  return ((Red & 0x1F) << 11) | ((Green & 0x1F) << 6) | ((Blue & 0x1F));
40 }
41 
42 VOID
43 NTAPI
46  _In_ ULONG Count);
47 
49 VOID
51  _In_ ULONG Left,
52  _In_ ULONG Top,
54 {
55  PUSHORT PixelPosition;
56 
57  /* Calculate the pixel position */
58  PixelPosition = &VgaArmBase[Left + (Top * SCREEN_WIDTH)];
59 
60  /* Set our color */
62 }
63 
64 VOID
65 NTAPI
67  _In_ ULONG CurrentTop,
68  _In_ ULONG TopDelta,
69  _In_ BOOLEAN Restore);
70 
71 VOID
72 NTAPI
73 DoScroll(
74  _In_ ULONG Scroll);
75 
76 VOID
77 NTAPI
79  _In_ CHAR Character,
80  _In_ ULONG Left,
81  _In_ ULONG Top,
82  _In_ ULONG TextColor,
83  _In_ ULONG BackColor);
Definition: bl.h:202
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
Definition: arm.h:50
ASMGENDATA Table[]
Definition: genincdata.c:61
char CHAR
Definition: xmlstorage.h:175
#define SCREEN_WIDTH
Definition: pc98video.c:27
VOID NTAPI DisplayCharacter(_In_ CHAR Character, _In_ ULONG Left, _In_ ULONG Top, _In_ ULONG TextColor, _In_ ULONG BackColor)
Definition: bootvid.c:13
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1223
#define GetRValue(quad)
Definition: precomp.h:64
Definition: bl.h:199
VOID NTAPI InitPaletteWithTable(_In_ PULONG Table, _In_ ULONG Count)
Definition: bootvid.c:170
PUSHORT VgaArmBase
Definition: bootvid.c:6
static const UCHAR DefaultPalette[]
Definition: blue.c:70
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned char BOOLEAN
#define FORCEINLINE
Definition: ntbasedef.h:216
#define GetBValue(quad)
Definition: precomp.h:66
#define GetGValue(quad)
Definition: precomp.h:65
#define WRITE_REGISTER_USHORT(r, v)
Definition: arm.h:24
VOID NTAPI DoScroll(_In_ ULONG Scroll)
Definition: bootvid.c:59
Definition: bl.h:200
unsigned char UCHAR
Definition: xmlstorage.h:181
#define _In_
Definition: no_sal2.h:204
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
FORCEINLINE USHORT VidpBuildColor(_In_ UCHAR Color)
Definition: arm.h:28
unsigned int ULONG
Definition: retypes.h:1
static LPHIST_ENTRY Top
Definition: history.c:53
unsigned short * PUSHORT
Definition: retypes.h:2
VOID NTAPI PreserveRow(_In_ ULONG CurrentTop, _In_ ULONG TopDelta, _In_ BOOLEAN Restore)
Definition: bootvid.c:107