2 * PROJECT: ReactOS Boot Loader
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: boot/armllb/fw.c
5 * PURPOSE: LLB Firmware Routines (accessible by OS Loader)
6 * PROGRAMMERS: ReactOS Portable Systems Group
14 /* Just call directly the video function */
24 /* Not yet implemented */
31 /* Return the key pressed */
32 return LlbKeyboardGetChar();
36 LlbFwVideoSetDisplayMode(IN PCHAR DisplayModeName
,
39 /* Return text mode */
44 LlbFwVideoGetDisplaySize(OUT PULONG Width
,
48 /* Query static settings */
49 *Width
= LlbHwGetScreenWidth();
50 *Height
= LlbHwGetScreenHeight();
52 /* Depth is always 16 bpp */
57 LlbFwVideoGetBufferSize(VOID
)
60 return LlbHwGetScreenWidth() * LlbHwGetScreenHeight() * 2;
64 LlbFwVideoSetTextCursorPosition(IN ULONG X
,
67 printf("%s is UNIMPLEMENTED", __FUNCTION__
);
72 LlbFwVideoHideShowTextCursor(IN BOOLEAN Show
)
78 USHORT ColorPalette
[16][3] =
99 LlbFwVideoCopyOffScreenBufferToVRAM(IN PVOID Buffer
)
101 /* No double-buffer is used on ARM */
106 LlbFwVideoClearScreen(IN UCHAR Attr
)
108 /* Clear the screen */
109 LlbVideoClearScreen(TRUE
);
113 LlbFwVideoPutChar(IN INT c
,
118 ULONG Color
, BackColor
;
121 /* Convert EGA index to color used by hardware */
122 Color
= LlbHwVideoCreateColor(ColorPalette
[Attr
& 0xF][0],
123 ColorPalette
[Attr
& 0xF][1],
124 ColorPalette
[Attr
& 0xF][2]);
125 BackColor
= LlbHwVideoCreateColor(ColorPalette
[Attr
>> 4][0],
126 ColorPalette
[Attr
>> 4][1],
127 ColorPalette
[Attr
>> 4][2]);
129 /* Compute buffer address */
130 Buffer
= (PUSHORT
)LlbHwGetFrameBuffer() + (LlbHwGetScreenWidth() * (Y
* 8)) + (X
* 8);
133 LlbVideoDrawChar(c
, Buffer
, Color
, BackColor
);
137 LlbFwVideoIsPaletteFixed(VOID
)
139 printf("%s is UNIMPLEMENTED", __FUNCTION__
);
145 LlbFwVideoSetPaletteColor(IN UCHAR Color
,
150 printf("%s is UNIMPLEMENTED", __FUNCTION__
);
156 LlbFwVideoGetPaletteColor(IN UCHAR Color
,
161 printf("%s is UNIMPLEMENTED", __FUNCTION__
);
169 printf("%s is UNIMPLEMENTED", __FUNCTION__
);
177 printf("%s is UNIMPLEMENTED", __FUNCTION__
);