ReactOS 0.4.16-dev-122-g325d74c
fw.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _TIMEINFO
 

Typedefs

typedef struct _TIMEINFO TIMEINFO
 

Functions

VOID LlbFwPutChar (INT Ch)
 
BOOLEAN LlbFwKbHit (VOID)
 
INT LlbFwGetCh (VOID)
 
ULONG LlbFwVideoSetDisplayMode (IN PCHAR DisplayModeName, IN BOOLEAN Init)
 
VOID LlbFwVideoGetDisplaySize (OUT PULONG Width, OUT PULONG Height, OUT PULONG Depth)
 
ULONG LlbFwVideoGetBufferSize (VOID)
 
VOID LlbFwVideoSetTextCursorPosition (IN ULONG X, IN ULONG Y)
 
VOID LlbFwVideoHideShowTextCursor (IN BOOLEAN Show)
 
VOID LlbFwVideoCopyOffScreenBufferToVRAM (IN PVOID Buffer)
 
VOID LlbFwVideoClearScreen (IN UCHAR Attr)
 
VOID LlbFwVideoPutChar (IN INT c, IN UCHAR Attr, IN ULONG X, IN ULONG Y)
 
BOOLEAN LlbFwVideoIsPaletteFixed (VOID)
 
VOID LlbFwVideoSetPaletteColor (IN UCHAR Color, IN UCHAR Red, IN UCHAR Green, IN UCHAR Blue)
 
VOID LlbFwVideoGetPaletteColor (IN UCHAR Color, OUT PUCHAR Red, OUT PUCHAR Green, OUT PUCHAR Blue)
 
VOID LlbFwVideoSync (VOID)
 
TIMEINFOLlbFwGetTime (VOID)
 

Typedef Documentation

◆ TIMEINFO

Function Documentation

◆ LlbFwGetCh()

INT LlbFwGetCh ( VOID  )

Definition at line 49 of file fw.c.

50{
51 /* Return the key pressed */
52#ifdef _ZOOM2_
53 return LlbKeypadGetChar();
54#else
55 return LlbKeyboardGetChar();
56#endif
57}
CHAR NTAPI LlbKeyboardGetChar(VOID)
Definition: keyboard.c:225
CHAR NTAPI LlbKeypadGetChar(VOID)
Definition: matrix.c:29

Referenced by LlbBuildArmBlock().

◆ LlbFwGetTime()

TIMEINFO * LlbFwGetTime ( VOID  )

Definition at line 113 of file fw.c.

114{
115 /* Call existing function */
116 return LlbGetTime();
117}
TIMEINFO *NTAPI LlbGetTime(VOID)
Definition: time.c:84

Referenced by LlbBuildArmBlock().

◆ LlbFwKbHit()

BOOLEAN LlbFwKbHit ( VOID  )

Definition at line 42 of file fw.c.

43{
44 /* Check RX buffer */
45 return LlbHwKbdReady();
46}
BOOLEAN NTAPI LlbHwKbdReady(VOID)
Definition: hwinfo.c:48

Referenced by LlbBuildArmBlock().

◆ LlbFwPutChar()

VOID LlbFwPutChar ( INT  Ch)

Definition at line 32 of file fw.c.

33{
34 /* Just call directly the video function */
36
37 /* DEBUG ONLY */
39}
VOID NTAPI LlbSerialPutChar(IN CHAR c)
Definition: serial.c:13
VOID NTAPI LlbVideoPutChar(IN UCHAR c)
Definition: video.c:349
#define Ch(x, y, z)
Definition: sha2.c:141

Referenced by LlbBuildArmBlock().

◆ LlbFwVideoClearScreen()

VOID LlbFwVideoClearScreen ( IN UCHAR  Attr)

Definition at line 81 of file fw.c.

82{
83 /* Clear the screen */
85}
VOID NTAPI LlbVideoClearScreen(IN BOOLEAN OsLoader)
Definition: video.c:310
#define TRUE
Definition: types.h:120

Referenced by LlbBuildArmBlock().

◆ LlbFwVideoCopyOffScreenBufferToVRAM()

VOID LlbFwVideoCopyOffScreenBufferToVRAM ( IN PVOID  Buffer)

◆ LlbFwVideoGetBufferSize()

ULONG LlbFwVideoGetBufferSize ( VOID  )

◆ LlbFwVideoGetDisplaySize()

VOID LlbFwVideoGetDisplaySize ( OUT PULONG  Width,
OUT PULONG  Height,
OUT PULONG  Depth 
)

Definition at line 68 of file fw.c.

71{
72 /* Query static settings */
75
76 /* Depth is always 16 bpp */
77 *Depth = 16;
78}
ULONG NTAPI LlbHwGetScreenWidth(VOID)
Definition: hwinfo.c:62
ULONG NTAPI LlbHwGetScreenHeight(VOID)
Definition: hwinfo.c:69
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:89
_In_ HFONT _Out_ PUINT Height
Definition: font.h:88
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth
Definition: exfuncs.h:819

Referenced by LlbBuildArmBlock().

◆ LlbFwVideoGetPaletteColor()

VOID LlbFwVideoGetPaletteColor ( IN UCHAR  Color,
OUT PUCHAR  Red,
OUT PUCHAR  Green,
OUT PUCHAR  Blue 
)

◆ LlbFwVideoHideShowTextCursor()

VOID LlbFwVideoHideShowTextCursor ( IN BOOLEAN  Show)

◆ LlbFwVideoIsPaletteFixed()

BOOLEAN LlbFwVideoIsPaletteFixed ( VOID  )

◆ LlbFwVideoPutChar()

VOID LlbFwVideoPutChar ( IN INT  c,
IN UCHAR  Attr,
IN ULONG  X,
IN ULONG  Y 
)

Definition at line 88 of file fw.c.

92{
93 ULONG Color, BackColor;
95
96 /* Convert EGA index to color used by hardware */
98 ColorPalette[Attr & 0xF][1],
99 ColorPalette[Attr & 0xF][2]);
100 BackColor = LlbHwVideoCreateColor(ColorPalette[Attr >> 4][0],
101 ColorPalette[Attr >> 4][1],
102 ColorPalette[Attr >> 4][2]);
103
104 /* Compute buffer address */
105 Buffer = (PUSHORT)LlbHwGetFrameBuffer() + (LlbHwGetScreenWidth() * (Y * 16)) + (X * 8);
106
107 /* Draw it */
108 LlbVideoDrawChar(c, Buffer, Color, BackColor);
109}
VOID NTAPI LlbVideoDrawChar(IN UCHAR c, IN PUSHORT Buffer, IN USHORT Color, IN USHORT BackColor)
Definition: video.c:277
Definition: bufpool.h:45
#define Y(I)
const GLubyte * c
Definition: glext.h:8905
ULONG NTAPI LlbHwVideoCreateColor(IN ULONG Red, IN ULONG Green, IN ULONG Blue)
Definition: hwinfo.c:83
PVOID NTAPI LlbHwGetFrameBuffer(VOID)
Definition: hwinfo.c:76
uint16_t * PUSHORT
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59

Referenced by LlbBuildArmBlock().

◆ LlbFwVideoSetDisplayMode()

ULONG LlbFwVideoSetDisplayMode ( IN PCHAR  DisplayModeName,
IN BOOLEAN  Init 
)

Definition at line 60 of file fw.c.

62{
63 /* Return text mode */
64 return 0;
65}

Referenced by LlbBuildArmBlock().

◆ LlbFwVideoSetPaletteColor()

VOID LlbFwVideoSetPaletteColor ( IN UCHAR  Color,
IN UCHAR  Red,
IN UCHAR  Green,
IN UCHAR  Blue 
)

◆ LlbFwVideoSetTextCursorPosition()

VOID LlbFwVideoSetTextCursorPosition ( IN ULONG  X,
IN ULONG  Y 
)

◆ LlbFwVideoSync()

VOID LlbFwVideoSync ( VOID  )