Update for Dynamic Frame Buffer Base Address bug235_bringup_0
authorFaisal Memon <faisal.memon@nokia.com>
Thu, 02 Sep 2010 16:04:46 +0100
branchbug235_bringup_0
changeset 166 82f54ddc6d9b
parent 165 3899db667a38
child 167 b9003303ce25
Update for Dynamic Frame Buffer Base Address
graphics_plat/guestvideodriver_api/eabi/guestvideohwapiu.def
graphics_plat/guestvideodriver_api/inc/guestvideodriverinterfaceconstants.h
--- a/graphics_plat/guestvideodriver_api/eabi/guestvideohwapiu.def	Thu Aug 26 19:05:31 2010 +0100
+++ b/graphics_plat/guestvideodriver_api/eabi/guestvideohwapiu.def	Thu Sep 02 16:04:46 2010 +0100
@@ -8,3 +8,4 @@
         _ZN17RGuestVideoDriverC2Ev @ 7 NONAME
         _ZN17RGuestVideoDriverD1Ev @ 8 NONAME
         _ZN17RGuestVideoDriverD2Ev @ 9 NONAME
+	_ZN17RGuestVideoDriver25GetFrameBufferBaseAddressERm @ 10 NONAME
--- a/graphics_plat/guestvideodriver_api/inc/guestvideodriverinterfaceconstants.h	Thu Aug 26 19:05:31 2010 +0100
+++ b/graphics_plat/guestvideodriver_api/inc/guestvideodriverinterfaceconstants.h	Thu Sep 02 16:04:46 2010 +0100
@@ -20,18 +20,19 @@
 //        pvbus.pvbus_m_range[0x60000000..0x62ffffff] => graphicsvirtualhw.mbus; //=>Reserve own memory area later
 //        pvbus.pvbus_m_range[0x63000000..0x63000fff] => graphicsvirtualhw.pbus; //=>Reserve own memory area later                
 
+#define VVI_REGISTERS_BASE 0x00000000
 // base address
-#define VVI_REGISTERS_BASE_ADDRESS 0x63000000
+#define VVI_REGISTERS_BASE_ADDRESS 0xC6000000 + 0x10*0x1000 
 #define VVI_REGISTERS_MEMORY_SIZE 0x1000
 #define VVI_REGISTERS_MASK 0x0FFF
 
-#define VVI_PARAMETERS_INPUT_BASE_ADDRESS 0x60000000
+#define VVI_PARAMETERS_INPUT_BASE_ADDRESS VVI_REGISTERS_BASE + 0x00000000
 #define VVI_PARAMETERS_INPUT_MEMORY_SIZE  0x01000000
 
-#define VVI_PARAMETERS_OUTPUT_BASE_ADDRESS 0x61000000
+#define VVI_PARAMETERS_OUTPUT_BASE_ADDRESS VVI_REGISTERS_BASE + 0x01000000
 #define VVI_PARAMETERS_OUTPUT_MEMORY_SIZE  0x01000000
 
-#define VVI_FRAMEBUFFER_BASE_ADDRESS 0x62000000
+#define VVI_FRAMEBUFFER_BASE_ADDRESS VVI_REGISTERS_BASE + 0x02000000
 #define VVI_FRAMEBUFFER_MEMORY_SIZE  0x01000000
 
 // register indices, TODO: cleanup needed, some are not used
@@ -47,12 +48,14 @@
 #define VVI_R_INPUT_BUFFER_WRITE_COUNT 0x0024
 #define VVI_R_INPUT_BUFFER_MAX_TAIL    0x0028
 #define VVI_R_REQUEST_ID               0x002c
-#define VVI_R_LASTREG                  0x0030  // not a register, address of last register
+#define VVI_R_SHARED_CMD_MEMORY_BASE       0x0030
+#define VVI_R_SHARED_FRAMEBUFFER_MEMORY_BASE 0x0034
+#define VVI_R_LASTREG                  0x0038  // not a register, address of last register
 
 // COMMAND register values
 #define VVI_EXECUTE 0
 
 //IRQ number
-#define VVI_IRQ 391
+#define VVI_IRQ 11
 
 #endif