summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-08-25 08:04:47 +0100
committerAndy Green <andy.green@linaro.org>2011-08-25 08:04:47 +0100
commite50c93abed9badac0dd8da2c808de60f47a93a32 (patch)
tree2950b9df21f49046b365fdd5b21b4e2f1795e1c9
parent0fa8cb8aa5ea6b75ef26e3fd26a08a959023326d (diff)
sgx adapt platform driver
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/gpu/pvr/pvr_drm.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/drivers/gpu/pvr/pvr_drm.c b/drivers/gpu/pvr/pvr_drm.c
index 1e79017d095..c66a88d5d5f 100644
--- a/drivers/gpu/pvr/pvr_drm.c
+++ b/drivers/gpu/pvr/pvr_drm.c
@@ -354,13 +354,20 @@ static int PVRSRVDrmProbe(struct platform_device *pDevice);
static int PVRSRVDrmRemove(struct platform_device *pDevice);
#endif
+static struct drm_bus sPVRdrmbus = {
+ .bus_type = DRIVER_BUS_PLATFORM,
+
+ // int (*get_irq)(struct drm_device *dev);
+ // const char *(*get_name)(struct drm_device *dev);
+ // int (*set_busid)(struct drm_device *dev, struct drm_master *master);
+ // int (*set_unique)(struct drm_device *dev, struct drm_master *master,
+ // struct drm_unique *unique);
+ // int (*irq_by_busid)(struct drm_device *dev, struct drm_irq_busid *p);
+};
+
static struct drm_driver sPVRDrmDriver =
{
-#if defined(PVR_DRI_DRM_PLATFORM_DEV)
- .driver_features = DRIVER_USE_PLATFORM_DEVICE,
-#else
.driver_features = 0,
-#endif
.dev_priv_size = 0,
.load = PVRSRVDrmLoad,
.unload = PVRSRVDrmUnload,
@@ -382,7 +389,7 @@ static struct drm_driver sPVRDrmDriver =
.poll = drm_poll,
.fasync = drm_fasync,
},
-#if defined(PVR_DRI_DRM_PLATFORM_DEV)
+#if 0
.platform_driver =
{
.id_table = asPlatIdList,
@@ -403,12 +410,16 @@ static struct drm_driver sPVRDrmDriver =
.id_table = asPciIdList,
},
#endif
+
+ .bus = &sPVRdrmbus,
+
.name = PVR_DRM_NAME,
.desc = PVR_DRM_DESC,
.date = PVR_BUILD_DATE,
.major = PVRVERSION_MAJ,
.minor = PVRVERSION_MIN,
.patchlevel = PVRVERSION_BUILD,
+
};
#if defined(PVR_DRI_DRM_PLATFORM_DEV) && !defined(SUPPORT_DRI_DRM_EXT)