ReactOS  0.4.15-dev-3303-g1ade494
hwclcd.c File Reference
#include "precomp.h"
Include dependency graph for hwclcd.c:

Go to the source code of this file.

Macros

#define LCDTIMING0_PPL(x)   ((((x) / 16 - 1) & 0x3f) << 2)
 
#define LCDTIMING1_LPP(x)   (((x) & 0x3ff) - 1)
 
#define LCDCONTROL_LCDPWR   (1 << 11)
 
#define LCDCONTROL_LCDEN   (1)
 
#define LCDCONTROL_LCDBPP(x)   (((x) & 7) << 1)
 
#define LCDCONTROL_LCDTFT   (1 << 5)
 
#define PL110_LCDTIMING0   (PVOID)0x10120000
 
#define PL110_LCDTIMING1   (PVOID)0x10120004
 
#define PL110_LCDTIMING2   (PVOID)0x10120008
 
#define PL110_LCDUPBASE   (PVOID)0x10120010
 
#define PL110_LCDLPBASE   (PVOID)0x10120014
 
#define PL110_LCDCONTROL   (PVOID)0x10120018
 

Functions

VOID NTAPI LlbHwVersaClcdInitialize (VOID)
 
ULONG NTAPI LlbHwGetScreenWidth (VOID)
 
ULONG NTAPI LlbHwGetScreenHeight (VOID)
 
PVOID NTAPI LlbHwGetFrameBuffer (VOID)
 
ULONG NTAPI LlbHwVideoCreateColor (IN ULONG Red, IN ULONG Green, IN ULONG Blue)
 

Variables

PUSHORT LlbHwVideoBuffer
 

Macro Definition Documentation

◆ LCDCONTROL_LCDBPP

#define LCDCONTROL_LCDBPP (   x)    (((x) & 7) << 1)

Definition at line 15 of file hwclcd.c.

◆ LCDCONTROL_LCDEN

#define LCDCONTROL_LCDEN   (1)

Definition at line 14 of file hwclcd.c.

◆ LCDCONTROL_LCDPWR

#define LCDCONTROL_LCDPWR   (1 << 11)

Definition at line 13 of file hwclcd.c.

◆ LCDCONTROL_LCDTFT

#define LCDCONTROL_LCDTFT   (1 << 5)

Definition at line 16 of file hwclcd.c.

◆ LCDTIMING0_PPL

#define LCDTIMING0_PPL (   x)    ((((x) / 16 - 1) & 0x3f) << 2)

Definition at line 11 of file hwclcd.c.

◆ LCDTIMING1_LPP

#define LCDTIMING1_LPP (   x)    (((x) & 0x3ff) - 1)

Definition at line 12 of file hwclcd.c.

◆ PL110_LCDCONTROL

#define PL110_LCDCONTROL   (PVOID)0x10120018

Definition at line 23 of file hwclcd.c.

◆ PL110_LCDLPBASE

#define PL110_LCDLPBASE   (PVOID)0x10120014

Definition at line 22 of file hwclcd.c.

◆ PL110_LCDTIMING0

#define PL110_LCDTIMING0   (PVOID)0x10120000

Definition at line 18 of file hwclcd.c.

◆ PL110_LCDTIMING1

#define PL110_LCDTIMING1   (PVOID)0x10120004

Definition at line 19 of file hwclcd.c.

◆ PL110_LCDTIMING2

#define PL110_LCDTIMING2   (PVOID)0x10120008

Definition at line 20 of file hwclcd.c.

◆ PL110_LCDUPBASE

#define PL110_LCDUPBASE   (PVOID)0x10120010

Definition at line 21 of file hwclcd.c.

Function Documentation

◆ LlbHwGetFrameBuffer()

PVOID NTAPI LlbHwGetFrameBuffer ( VOID  )

Definition at line 63 of file hwclcd.c.

64 {
65  return (PVOID)0x000A0000;
66 }

Referenced by LlbHwVersaClcdInitialize().

◆ LlbHwGetScreenHeight()

ULONG NTAPI LlbHwGetScreenHeight ( VOID  )

Definition at line 56 of file hwclcd.c.

57 {
58  return 400;
59 }

Referenced by LlbHwVersaClcdInitialize().

◆ LlbHwGetScreenWidth()

ULONG NTAPI LlbHwGetScreenWidth ( VOID  )

Definition at line 49 of file hwclcd.c.

50 {
51  return 720;
52 }

Referenced by LlbHwVersaClcdInitialize().

◆ LlbHwVersaClcdInitialize()

VOID NTAPI LlbHwVersaClcdInitialize ( VOID  )

Definition at line 29 of file hwclcd.c.

30 {
31  /* Set framebuffer address */
34 
35  /* Initialize timings to 720x400 */
38 
39  /* Enable the TFT/LCD Display */
45 }
ULONG NTAPI LlbHwGetScreenHeight(VOID)
Definition: hwclcd.c:56
NTKERNELAPI VOID NTAPI WRITE_REGISTER_ULONG(IN PULONG Register, IN ULONG Value)
#define LCDCONTROL_LCDEN
Definition: hwclcd.c:14
#define PL110_LCDTIMING1
Definition: hwclcd.c:19
#define LCDTIMING1_LPP(x)
Definition: hwclcd.c:12
PVOID NTAPI LlbHwGetFrameBuffer(VOID)
Definition: hwclcd.c:63
#define PL110_LCDLPBASE
Definition: hwclcd.c:22
#define LCDCONTROL_LCDTFT
Definition: hwclcd.c:16
#define PL110_LCDCONTROL
Definition: hwclcd.c:23
ULONG NTAPI LlbHwGetScreenWidth(VOID)
Definition: hwclcd.c:49
#define LCDCONTROL_LCDBPP(x)
Definition: hwclcd.c:15
#define LCDTIMING0_PPL(x)
Definition: hwclcd.c:11
#define LCDCONTROL_LCDPWR
Definition: hwclcd.c:13
#define PL110_LCDTIMING0
Definition: hwclcd.c:18
unsigned int ULONG
Definition: retypes.h:1
#define PL110_LCDUPBASE
Definition: hwclcd.c:21

Referenced by LlbHwInitialize().

◆ LlbHwVideoCreateColor()

ULONG NTAPI LlbHwVideoCreateColor ( IN ULONG  Red,
IN ULONG  Green,
IN ULONG  Blue 
)

Definition at line 70 of file hwclcd.c.

73 {
74  return (((Blue >> 3) << 11)| ((Green >> 2) << 5)| ((Red >> 3) << 0));
75 }
Definition: bl.h:202
Definition: bl.h:199
Definition: bl.h:200

Variable Documentation

◆ LlbHwVideoBuffer

PUSHORT LlbHwVideoBuffer

Definition at line 25 of file hwclcd.c.