Modules/Tegra2Vid - Slight debugging updates
authorJohn Hodge <[email protected]>
Tue, 6 Mar 2012 03:54:32 +0000 (11:54 +0800)
committerJohn Hodge <[email protected]>
Tue, 6 Mar 2012 03:54:32 +0000 (11:54 +0800)
KernelLand/Modules/Display/Tegra2Vid/main.c
RunQemu

index da71057..8d7140f 100644 (file)
@@ -67,10 +67,11 @@ tVideo_IOCtl_Pos    gTegra2Vid_CursorPos;
  */\r
 int Tegra2Vid_Install(char **Arguments)\r
 {\r
-       return MODULE_ERR_NOTNEEDED;\r
+//     return MODULE_ERR_NOTNEEDED;\r
 //     KeyVal_Parse(&gTegra2Vid_KeyValueParser, Arguments);\r
 \r
        gpTegra2Vid_IOMem = (void*)MM_MapHWPages(gTegra2Vid_PhysBase, 256/4);\r
+       #if 0\r
        {\r
                Log_Debug("Tegra2Vid", "Display CMD Registers");\r
                for( int i = 0x000; i <= 0x01A; i ++ )\r
@@ -95,11 +96,12 @@ int Tegra2Vid_Install(char **Arguments)
                for( int i = 0x800; i <= 0x80A; i ++ )\r
                        Log_Debug("Tegra2Vid", "[0x%03x] = 0x%08x", i, gpTegra2Vid_IOMem[i]);\r
        }\r
+       #endif\r
 //     return 1;\r
 \r
        // HACK!!!\r
 //     {\r
-//             int     w = 1980, h = 1080;\r
+//             int     w = 1680, h = 1050;\r
 //             gpTegra2Vid_IOMem[DC_DISP_DISP_ACTIVE_0] = (h << 16) | w;\r
 //             gpTegra2Vid_IOMem[DC_WIN_A_SIZE_0] = (h << 16) | w;\r
 //             gpTegra2Vid_IOMem[DC_WIN_A_PRESCALED_SIZE_0] = (h << 16) | w;\r
@@ -116,7 +118,7 @@ int Tegra2Vid_Install(char **Arguments)
                );\r
        memset(gpTegra2Vid_Framebuffer, 0xFF, 0x1000);\r
 \r
-       gpTegra2Vid_IOMem[DC_WIN_A_WIN_OPTIONS_0] &= ~0x40;\r
+//     gpTegra2Vid_IOMem[DC_WIN_A_WIN_OPTIONS_0] &= ~0x40;\r
        gpTegra2Vid_IOMem[DC_WIN_A_COLOR_DEPTH_0] = 12; // Could be 13 (BGR/RGB)\r
        gTegra2Vid_DrvUtil_BufInfo.Width = 1024;\r
        gTegra2Vid_DrvUtil_BufInfo.Height = 768;\r
@@ -211,6 +213,11 @@ int Tegra2Vid_IOCtl(tVFS_Node *Node, int ID, void *Data)
                if( mode->flags != 0 )\r
                        LEAVE_RET('i', 0);\r
 \r
+               // DEBUG!!!\r
+               mode->width = 1024;\r
+               mode->height = 768;\r
+               break;\r
+\r
                ret = 0;\r
 \r
                for( int i = 0; i < ciTegra2Vid_ModeCount; i ++ )\r
diff --git a/RunQemu b/RunQemu
index 2b7bc9d..aeb68c3 100755 (executable)
--- a/RunQemu
+++ b/RunQemu
@@ -49,6 +49,7 @@ if [ "x$_NOUSB" != "xyes" ] ; then
        QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
        QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
        QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse"
+       QEMU_PARAMS=$QEMU_PARAMS" -usbdevice keyboard"
 fi
 
 #      /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt

UCC git Repository :: git.ucc.asn.au