1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
From 8b6a6bb6702ab796ab56dbbd6caa1b271ed4485b Mon Sep 17 00:00:00 2001
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Date: Fri, 9 Jan 2009 12:40:28 +0200
Subject: [PATCH] Compile fixes for DSS2
---
.../dc_omap3430_linux/omaplfb_displayclass.c | 6 ++++--
.../3rdparty/dc_omap3430_linux/omaplfb_linux.c | 14 ++++----------
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c b/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c
index 7b8ec37..6fde397 100755
--- a/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c
+++ b/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c
@@ -57,8 +57,6 @@ PVRSRV_ERROR OMAPLFBPostPower (IMG_HANDLE hDevHandle,
PVR_POWER_STATE eCurrentPowerState);
#endif
-extern void omap_dispc_set_plane_base(int plane, IMG_UINT32 phys_addr);
-
static PFN_DC_GET_PVRJTABLE pfnGetPVRJTable = IMG_NULL;
static OMAPLFB_DEVINFO * GetAnchorPtr(IMG_VOID)
@@ -124,6 +122,9 @@ static void WorkHandler(
static PVRSRV_ERROR Flip(OMAPLFB_SWAPCHAIN *psSwapChain,
IMG_UINT32 aPhyAddr)
{
+ printk("no flipping\n");
+ return PVRSRV_OK;
+#if 0
if (1 /* omap2_disp_get_output_dev(OMAP2_GRAPHICS) == OMAP2_OUTPUT_LCD */)
{
omap_dispc_set_plane_base(0, aPhyAddr);
@@ -137,6 +138,7 @@ static PVRSRV_ERROR Flip(OMAPLFB_SWAPCHAIN *psSwapChain,
}
return PVRSRV_ERROR_INVALID_PARAMS;
+#endif
}
static IMG_VOID EnableVSyncInterrupt(OMAPLFB_SWAPCHAIN *psSwapChain)
diff --git a/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c b/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
index acf1631..12f3e32 100755
--- a/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
+++ b/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
@@ -37,6 +37,7 @@
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
+#include <mach/display.h>
#include <asm/io.h>
@@ -52,10 +53,6 @@ MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE(DRVNAME);
-extern int omap_dispc_request_irq(unsigned long, void (*)(void *), void *);
-extern void omap_dispc_free_irq(unsigned long, void (*)(void *), void *);
-
-
#define unref__ __attribute__ ((unused))
@@ -101,17 +98,14 @@ PVRSRV_ERROR OMAPLFBGetLibFuncAddr (IMG_CHAR *szFunctionName, PFN_DC_GET_PVRJTAB
}
static void
-OMAPLFBVSyncISR(void *arg)
+OMAPLFBVSyncISR(void *arg, u32 mask)
{
(void) OMAPLFBVSyncIHandler((OMAPLFB_SWAPCHAIN *)arg);
}
-#define DISPC_IRQ_VSYNC 0x0002
-
PVRSRV_ERROR OMAPLFBInstallVSyncISR(OMAPLFB_SWAPCHAIN *psSwapChain)
{
-
- if (omap_dispc_request_irq(DISPC_IRQ_VSYNC, OMAPLFBVSyncISR, psSwapChain) != 0)
+ if (omap_dispc_register_isr(OMAPLFBVSyncISR, psSwapChain, DISPC_IRQ_VSYNC) != 0)
return PVRSRV_ERROR_OUT_OF_MEMORY; /* not worth a proper mapping */
return PVRSRV_OK;
@@ -120,7 +114,7 @@ PVRSRV_ERROR OMAPLFBInstallVSyncISR(OMAPLFB_SWAPCHAIN *psSwapChain)
PVRSRV_ERROR OMAPLFBUninstallVSyncISR (OMAPLFB_SWAPCHAIN *psSwapChain)
{
- omap_dispc_free_irq(DISPC_IRQ_VSYNC, OMAPLFBVSyncISR, psSwapChain);
+ omap_dispc_unregister_isr(OMAPLFBVSyncISR);
return PVRSRV_OK;
}
--
1.5.6.3
|