ReactOS 0.4.15-dev-8146-gdc0ed6d
hwclcd.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Boot Loader
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: boot/armllb/hw/versatile/hwclcd.c
5 * PURPOSE: LLB CLCD Routines for Versatile
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9#include "precomp.h"
10
11#define LCDTIMING0_PPL(x) ((((x) / 16 - 1) & 0x3f) << 2)
12#define LCDTIMING1_LPP(x) (((x) & 0x3ff) - 1)
13#define LCDCONTROL_LCDPWR (1 << 11)
14#define LCDCONTROL_LCDEN (1)
15#define LCDCONTROL_LCDBPP(x) (((x) & 7) << 1)
16#define LCDCONTROL_LCDTFT (1 << 5)
17
18#define PL110_LCDTIMING0 (PVOID)0x10120000
19#define PL110_LCDTIMING1 (PVOID)0x10120004
20#define PL110_LCDTIMING2 (PVOID)0x10120008
21#define PL110_LCDUPBASE (PVOID)0x10120010
22#define PL110_LCDLPBASE (PVOID)0x10120014
23#define PL110_LCDCONTROL (PVOID)0x10120018
24
26
27VOID
30{
31 /* Set framebuffer address */
34
35 /* Initialize timings to 720x400 */
38
39 /* Enable the TFT/LCD Display */
45}
46
50{
51 return 720;
52}
53
57{
58 return 400;
59}
60
64{
65 return (PVOID)0x000A0000;
66}
67
73{
74 return (((Blue >> 3) << 11)| ((Green >> 2) << 5)| ((Red >> 3) << 0));
75}
76
77/* EOF */
#define WRITE_REGISTER_ULONG(r, v)
Definition: arm.h:27
@ Green
Definition: bl.h:199
@ Red
Definition: bl.h:201
@ Blue
Definition: bl.h:198
ULONG NTAPI LlbHwVideoCreateColor(IN ULONG Red, IN ULONG Green, IN ULONG Blue)
Definition: hwclcd.c:70
#define PL110_LCDCONTROL
Definition: hwclcd.c:23
#define LCDCONTROL_LCDBPP(x)
Definition: hwclcd.c:15
PVOID NTAPI LlbHwGetFrameBuffer(VOID)
Definition: hwclcd.c:63
#define PL110_LCDTIMING1
Definition: hwclcd.c:19
#define PL110_LCDUPBASE
Definition: hwclcd.c:21
#define PL110_LCDTIMING0
Definition: hwclcd.c:18
#define LCDTIMING0_PPL(x)
Definition: hwclcd.c:11
#define LCDCONTROL_LCDPWR
Definition: hwclcd.c:13
#define LCDCONTROL_LCDEN
Definition: hwclcd.c:14
ULONG NTAPI LlbHwGetScreenWidth(VOID)
Definition: hwclcd.c:49
#define LCDCONTROL_LCDTFT
Definition: hwclcd.c:16
PUSHORT LlbHwVideoBuffer
Definition: hwclcd.c:25
#define LCDTIMING1_LPP(x)
Definition: hwclcd.c:12
VOID NTAPI LlbHwVersaClcdInitialize(VOID)
Definition: hwclcd.c:29
ULONG NTAPI LlbHwGetScreenHeight(VOID)
Definition: hwclcd.c:56
#define PL110_LCDLPBASE
Definition: hwclcd.c:22
#define NTAPI
Definition: typedefs.h:36
uint16_t * PUSHORT
Definition: typedefs.h:56
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59