ReactOS 0.4.16-dev-1489-g8fbbb41
arm.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Boot Video Driver for ARM devices
3 * LICENSE: BSD - See COPYING.ARM in root directory
4 * PURPOSE: PrimeCell Color LCD Controller (PL110) definitions
5 * COPYRIGHT: Copyright 2008 ReactOS Portable Systems Group <ros.arm@reactos.org>
6 */
7
8#pragma once
9
10extern PUSHORT VgaArmBase;
11
12#define LCDTIMING0_PPL(x) ((((x) / 16 - 1) & 0x3f) << 2)
13#define LCDTIMING1_LPP(x) (((x) & 0x3ff) - 1)
14#define LCDCONTROL_LCDPWR (1 << 11)
15#define LCDCONTROL_LCDEN (1)
16#define LCDCONTROL_LCDBPP(x) (((x) & 7) << 1)
17#define LCDCONTROL_LCDTFT (1 << 5)
18
19#define PL110_LCDTIMING0 (PVOID)0xE0020000
20#define PL110_LCDTIMING1 (PVOID)0xE0020004
21#define PL110_LCDTIMING2 (PVOID)0xE0020008
22#define PL110_LCDUPBASE (PVOID)0xE0020010
23#define PL110_LCDLPBASE (PVOID)0xE0020014
24#define PL110_LCDCONTROL (PVOID)0xE0020018
25
26#define READ_REGISTER_ULONG(r) (*(volatile ULONG * const)(r))
27#define WRITE_REGISTER_ULONG(r, v) (*(volatile ULONG *)(r) = (v))
28
29#define READ_REGISTER_USHORT(r) (*(volatile USHORT * const)(r))
30#define WRITE_REGISTER_USHORT(r, v) (*(volatile USHORT *)(r) = (v))
31
32VOID
36
37VOID
39
40VOID
42 _In_ ULONG Left,
45
46VOID
48 _In_ ULONG CurrentTop,
49 _In_ ULONG TopDelta,
50 _In_ BOOLEAN Restore);
51
52VOID
54 _In_ ULONG Scroll);
55
56VOID
58 _In_ CHAR Character,
59 _In_ ULONG Left,
61 _In_ ULONG TextColor,
62 _In_ ULONG BackColor);
unsigned char BOOLEAN
VOID PreserveRow(_In_ ULONG CurrentTop, _In_ ULONG TopDelta, _In_ BOOLEAN Restore)
Definition: bootvid.c:150
VOID PrepareForSetPixel(VOID)
Definition: bootvid.c:35
VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
Definition: bootvid.c:43
VOID DisplayCharacter(_In_ CHAR Character, _In_ ULONG Left, _In_ ULONG Top, _In_ ULONG TextColor, _In_ ULONG BackColor)
Definition: bootvid.c:58
VOID DoScroll(_In_ ULONG Scroll)
Definition: bootvid.c:103
VOID InitPaletteWithTable(_In_ PULONG Table, _In_ ULONG Count)
Definition: bootvid.c:211
PUSHORT VgaArmBase
Definition: bootvid.c:13
static LPHIST_ENTRY Top
Definition: history.c:53
ASMGENDATA Table[]
Definition: genincdata.c:61
#define _In_
Definition: no_sal2.h:158
int Count
Definition: noreturn.cpp:7
uint32_t * PULONG
Definition: typedefs.h:59
uint16_t * PUSHORT
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175