Author: evb
Date: Thu Feb 4 06:43:02 2010
New Revision: 45411
URL:
http://svn.reactos.org/svn/reactos?rev=45411&view=rev
Log:
- Add stubs for video mach functions and update minor to 1.3.
Modified:
trunk/reactos/boot/armllb/fw.c
trunk/reactos/boot/armllb/inc/fw.h
trunk/reactos/boot/armllb/inc/osloader.h
trunk/reactos/boot/armllb/os/loader.c
trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c
Modified: trunk/reactos/boot/armllb/fw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/armllb/fw.c?rev=45411…
==============================================================================
--- trunk/reactos/boot/armllb/fw.c [iso-8859-1] (original)
+++ trunk/reactos/boot/armllb/fw.c [iso-8859-1] Thu Feb 4 06:43:02 2010
@@ -32,4 +32,106 @@
return LlbKeyboardGetChar();
}
+ULONG
+LlbFwVideoSetDisplayMode(IN PCHAR DisplayModeName,
+ IN BOOLEAN Init)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+ return 0;
+}
+
+VOID
+LlbFwVideoGetDisplaySize(OUT PULONG Width,
+ OUT PULONG Height,
+ OUT PULONG Depth)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+}
+
+ULONG
+LlbFwVideoGetBufferSize(VOID)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+}
+
+VOID
+LlbFwVideoSetTextCursorPosition(IN ULONG X,
+ IN ULONG Y)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+}
+
+VOID
+LlbFwVideoHideShowTextCursor(IN BOOLEAN Show)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+}
+
+VOID
+LlbFwVideoCopyOffScreenBufferToVRAM(IN PVOID Buffer)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+}
+
+VOID
+LlbFwVideoClearScreen(IN UCHAR Attr)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+}
+
+VOID
+LlbFwVideoPutChar(IN INT c,
+ IN UCHAR Attr,
+ IN ULONG X,
+ IN ULONG Y)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+}
+
+BOOLEAN
+LlbFwVideoIsPaletteFixed(VOID)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+ return TRUE;
+}
+
+VOID
+LlbFwVideoSetPaletteColor(IN UCHAR Color,
+ IN UCHAR Red,
+ IN UCHAR Green,
+ IN UCHAR Blue)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+ return;
+}
+
+VOID
+LlbFwVideoGetPaletteColor(IN UCHAR Color,
+ OUT PUCHAR Red,
+ OUT PUCHAR Green,
+ OUT PUCHAR Blue)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+ return;
+}
+
+VOID
+LlbFwVideoSync(VOID)
+{
+ printf("%s is UNIMPLEMENTED", __FUNCTION__);
+ while (TRUE);
+ return;
+}
+
/* EOF */
Modified: trunk/reactos/boot/armllb/inc/fw.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/armllb/inc/fw.h?rev=4…
==============================================================================
--- trunk/reactos/boot/armllb/inc/fw.h [iso-8859-1] (original)
+++ trunk/reactos/boot/armllb/inc/fw.h [iso-8859-1] Thu Feb 4 06:43:02 2010
@@ -21,4 +21,77 @@
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
+);
+
/* EOF */
Modified: trunk/reactos/boot/armllb/inc/osloader.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/armllb/inc/osloader.h…
==============================================================================
--- trunk/reactos/boot/armllb/inc/osloader.h [iso-8859-1] (original)
+++ trunk/reactos/boot/armllb/inc/osloader.h [iso-8859-1] Thu Feb 4 06:43:02 2010
@@ -42,7 +42,7 @@
// Information sent from LLB to OS Loader
//
#define ARM_BOARD_CONFIGURATION_MAJOR_VERSION 1
-#define ARM_BOARD_CONFIGURATION_MINOR_VERSION 2
+#define ARM_BOARD_CONFIGURATION_MINOR_VERSION 3
typedef struct _ARM_BOARD_CONFIGURATION_BLOCK
{
ULONG MajorVersion;
@@ -57,6 +57,18 @@
PVOID ConsPutChar;
PVOID ConsKbHit;
PVOID ConsGetCh;
+ PVOID VideoClearScreen;
+ PVOID VideoSetDisplayMode;
+ PVOID VideoGetDisplaySize;
+ PVOID VideoGetBufferSize;
+ PVOID VideoSetTextCursorPosition;
+ PVOID VideoHideShowTextCursor;
+ PVOID VideoPutChar;
+ PVOID VideoCopyOffScreenBufferToVRAM;
+ PVOID VideoIsPaletteFixed;
+ PVOID VideoSetPaletteColor;
+ PVOID VideoGetPaletteColor;
+ PVOID VideoSync;
} ARM_BOARD_CONFIGURATION_BLOCK, *PARM_BOARD_CONFIGURATION_BLOCK;
VOID
Modified: trunk/reactos/boot/armllb/os/loader.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/armllb/os/loader.c?re…
==============================================================================
--- trunk/reactos/boot/armllb/os/loader.c [iso-8859-1] (original)
+++ trunk/reactos/boot/armllb/os/loader.c [iso-8859-1] Thu Feb 4 06:43:02 2010
@@ -73,6 +73,19 @@
ArmBlock.ConsPutChar = LlbFwPutChar;
ArmBlock.ConsKbHit = LlbFwKbHit;
ArmBlock.ConsGetCh = LlbFwGetCh;
+ ArmBlock.VideoClearScreen = LlbFwVideoClearScreen;
+ ArmBlock.VideoSetDisplayMode = LlbFwVideoSetDisplayMode;
+ ArmBlock.VideoGetDisplaySize = LlbFwVideoGetDisplaySize;
+ ArmBlock.VideoGetBufferSize = LlbFwVideoGetBufferSize;
+ ArmBlock.VideoSetTextCursorPosition = LlbFwVideoSetTextCursorPosition;
+ ArmBlock.VideoSetTextCursorPosition = LlbFwVideoSetTextCursorPosition;
+ ArmBlock.VideoHideShowTextCursor = LlbFwVideoHideShowTextCursor;
+ ArmBlock.VideoPutChar = LlbFwVideoPutChar;
+ ArmBlock.VideoCopyOffScreenBufferToVRAM = LlbFwVideoCopyOffScreenBufferToVRAM;
+ ArmBlock.VideoIsPaletteFixed = LlbFwVideoIsPaletteFixed;
+ ArmBlock.VideoSetPaletteColor = LlbFwVideoSetPaletteColor;
+ ArmBlock.VideoGetPaletteColor = LlbFwVideoGetPaletteColor;
+ ArmBlock.VideoSync = LlbFwVideoSync;
}
VOID
Modified: trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c [iso-8859-1] Thu Feb 4 06:43:02
2010
@@ -158,7 +158,20 @@
MachVtbl.ConsPutChar = ArmBoardBlock->ConsPutChar;
MachVtbl.ConsKbHit = ArmBoardBlock->ConsKbHit;
MachVtbl.ConsGetCh = ArmBoardBlock->ConsGetCh;
-
+ MachVtbl.VideoClearScreen = ArmBoardBlock->VideoClearScreen;
+ MachVtbl.VideoSetDisplayMode = ArmBoardBlock->VideoSetDisplayMode;
+ MachVtbl.VideoGetDisplaySize = ArmBoardBlock->VideoGetDisplaySize;
+ MachVtbl.VideoGetBufferSize = ArmBoardBlock->VideoGetBufferSize;
+ MachVtbl.VideoSetTextCursorPosition =
ArmBoardBlock->VideoSetTextCursorPosition;
+ MachVtbl.VideoSetTextCursorPosition =
ArmBoardBlock->VideoSetTextCursorPosition;
+ MachVtbl.VideoHideShowTextCursor =
ArmBoardBlock->VideoHideShowTextCursor;
+ MachVtbl.VideoPutChar = ArmBoardBlock->VideoPutChar;
+ MachVtbl.VideoCopyOffScreenBufferToVRAM =
ArmBoardBlock->VideoCopyOffScreenBufferToVRAM;
+ MachVtbl.VideoIsPaletteFixed = ArmBoardBlock->VideoIsPaletteFixed;
+ MachVtbl.VideoSetPaletteColor = ArmBoardBlock->VideoSetPaletteColor;
+ MachVtbl.VideoGetPaletteColor = ArmBoardBlock->VideoGetPaletteColor;
+ MachVtbl.VideoSync = ArmBoardBlock->VideoSync;
+
/* Setup the disk and file system buffers */
gDiskReadBuffer = 0x00090000;
gFileSysBuffer = 0x00090000;