Usermode/libaxwin4 - Handle demarshal failure
[tpg/acess2.git] / KernelLand / Modules / Display / PL110 / main.c
index c3b6e52..094af70 100644 (file)
@@ -64,8 +64,8 @@ const int     ciPL110_ModeCount = sizeof(caPL110_Modes)/sizeof(caPL110_Modes[0]);
 void   PL110_Uninstall();\r
 // Internal\r
 // Filesystem\r
-Uint64 PL110_Read(tVFS_Node *node, Uint64 off, Uint64 len, void *buffer);\r
-Uint64 PL110_Write(tVFS_Node *node, Uint64 off, Uint64 len, const void *buffer);\r
+size_t PL110_Read(tVFS_Node *node, off_t Offset, size_t len, void *buffer, Uint flags);\r
+size_t PL110_Write(tVFS_Node *node, off_t offset, size_t len, const void *buffer, Uint flags);\r
  int   PL110_IOCtl(tVFS_Node *node, int id, void *data);\r
 // -- Internals\r
  int   PL110_int_SetResolution(int W, int H);\r
@@ -132,7 +132,7 @@ void PL110_Uninstall()
 /**\r
  * \brief Read from the framebuffer\r
  */\r
-Uint64 PL110_Read(tVFS_Node *node, Uint64 off, Uint64 len, void *buffer)\r
+size_t PL110_Read(tVFS_Node *node, off_t off, size_t len, void *buffer, Uint flags)\r
 {\r
        return 0;\r
 }\r
@@ -140,7 +140,7 @@ Uint64 PL110_Read(tVFS_Node *node, Uint64 off, Uint64 len, void *buffer)
 /**\r
  * \brief Write to the framebuffer\r
  */\r
-Uint64 PL110_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, const void *Buffer)\r
+size_t PL110_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buffer, Uint flags)\r
 {\r
        gPL110_DrvUtil_BufInfo.BufferFormat = giPL110_BufferMode;\r
        return DrvUtil_Video_WriteLFB(&gPL110_DrvUtil_BufInfo, Offset, Length, Buffer);\r
@@ -308,11 +308,11 @@ int PL110_int_SetResolution(int W, int H)
        gpPL110_IOMem->LCDTiming3 = 0;\r
 \r
        if( gpPL110_Framebuffer ) {\r
-               MM_UnmapHWPages((tVAddr)gpPL110_Framebuffer, (giPL110_FramebufferSize+0xFFF)>>12);\r
+               MM_UnmapHWPages(gpPL110_Framebuffer, (giPL110_FramebufferSize+0xFFF)>>12);\r
        }\r
        giPL110_FramebufferSize = W*H*4;\r
 \r
-       gpPL110_Framebuffer = (void*)MM_AllocDMA( (giPL110_FramebufferSize+0xFFF)>>12, 32, &gPL110_FramebufferPhys );\r
+       gpPL110_Framebuffer = MM_AllocDMA( (giPL110_FramebufferSize+0xFFF)>>12, 32, &gPL110_FramebufferPhys );\r
        gpPL110_IOMem->LCDUPBase = gPL110_FramebufferPhys;\r
        gpPL110_IOMem->LCDLPBase = 0;\r
 \r

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