- Add stubs for video mach functions and update minor to 1.3.
authorevb <evb@svn.reactos.org>
Thu, 4 Feb 2010 05:43:02 +0000 (05:43 +0000)
committerevb <evb@svn.reactos.org>
Thu, 4 Feb 2010 05:43:02 +0000 (05:43 +0000)
svn path=/trunk/; revision=45411

reactos/boot/armllb/fw.c
reactos/boot/armllb/inc/fw.h
reactos/boot/armllb/inc/osloader.h
reactos/boot/armllb/os/loader.c
reactos/boot/freeldr/freeldr/arch/arm/macharm.c

index baa9cde..be4dfde 100644 (file)
@@ -32,4 +32,106 @@ LlbFwGetCh(VOID)
     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 */
index 9ef3caa..fb1404e 100755 (executable)
@@ -21,4 +21,77 @@ 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
+);
+
 /* EOF */
index a62e5fc..133dafb 100644 (file)
@@ -42,7 +42,7 @@ typedef struct
 // 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 @@ typedef struct _ARM_BOARD_CONFIGURATION_BLOCK
     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
index 7c990df..d4e520a 100755 (executable)
@@ -73,6 +73,19 @@ LlbBuildArmBlock(VOID)
     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
index 2a03e29..1450595 100644 (file)
@@ -158,7 +158,20 @@ MachInit(IN PCCH CommandLine)
             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;