aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-10 14:04:36 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-10 14:04:36 -0500
commit1a464cbb3d483f2f195b614cffa4aa1b910a0440 (patch)
treeaf57dee6436532dbb546b8670e9e1f6910d489b5 /drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
parentdbe950f201a8edd353b0bd9079e8d536ee4ce37c (diff)
parent095f979a539245a46b9e5d600ec9c720b4d928e5 (diff)
Merge branch 'drm-core-next' of git://people.freedesktop.org/~airlied/linux
* 'drm-core-next' of git://people.freedesktop.org/~airlied/linux: (307 commits) drm/nouveau/pm: fix build with HWMON off gma500: silence gcc warnings in mid_get_vbt_data() drm/ttm: fix condition (and vs or) drm/radeon: double lock typo in radeon_vm_bo_rmv() drm/radeon: use after free in radeon_vm_bo_add() drm/sis|via: don't return stack garbage from free_mem ioctl drm/radeon/kms: remove pointless CS flags priority struct drm/radeon/kms: check if vm is supported in VA ioctl drm: introduce drm_can_sleep and use in intel/radeon drivers. (v2) radeon: Fix disabling PCI bus mastering on big endian hosts. ttm: fix agp since ttm tt rework agp: Fix multi-line warning message whitespace drm/ttm/dma: Fix accounting error when calling ttm_mem_global_free_page and don't try to free freed pages. drm/ttm/dma: Only call set_pages_array_wb when the page is not in WB pool. drm/radeon/kms: sync across multiple rings when doing bo moves v3 drm/radeon/kms: Add support for multi-ring sync in CS ioctl (v2) drm/radeon: GPU virtual memory support v22 drm: make DRM_UNLOCKED ioctls with their own mutex drm: no need to hold global mutex for static data drm/radeon/benchmark: common modes sweep ignores 640x480@32 ... Fix up trivial conflicts in radeon/evergreen.c and vmwgfx/vmwgfx_kms.c
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index dff8fc767152..f390f5f9cb68 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -1064,6 +1064,21 @@ static const struct dev_pm_ops vmw_pm_ops = {
1064 .resume = vmw_pm_resume, 1064 .resume = vmw_pm_resume,
1065}; 1065};
1066 1066
1067static const struct file_operations vmwgfx_driver_fops = {
1068 .owner = THIS_MODULE,
1069 .open = drm_open,
1070 .release = drm_release,
1071 .unlocked_ioctl = vmw_unlocked_ioctl,
1072 .mmap = vmw_mmap,
1073 .poll = vmw_fops_poll,
1074 .read = vmw_fops_read,
1075 .fasync = drm_fasync,
1076#if defined(CONFIG_COMPAT)
1077 .compat_ioctl = drm_compat_ioctl,
1078#endif
1079 .llseek = noop_llseek,
1080};
1081
1067static struct drm_driver driver = { 1082static struct drm_driver driver = {
1068 .driver_features = DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | 1083 .driver_features = DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED |
1069 DRIVER_MODESET, 1084 DRIVER_MODESET,
@@ -1088,20 +1103,7 @@ static struct drm_driver driver = {
1088 .master_drop = vmw_master_drop, 1103 .master_drop = vmw_master_drop,
1089 .open = vmw_driver_open, 1104 .open = vmw_driver_open,
1090 .postclose = vmw_postclose, 1105 .postclose = vmw_postclose,
1091 .fops = { 1106 .fops = &vmwgfx_driver_fops,
1092 .owner = THIS_MODULE,
1093 .open = drm_open,
1094 .release = drm_release,
1095 .unlocked_ioctl = vmw_unlocked_ioctl,
1096 .mmap = vmw_mmap,
1097 .poll = vmw_fops_poll,
1098 .read = vmw_fops_read,
1099 .fasync = drm_fasync,
1100#if defined(CONFIG_COMPAT)
1101 .compat_ioctl = drm_compat_ioctl,
1102#endif
1103 .llseek = noop_llseek,
1104 },
1105 .name = VMWGFX_DRIVER_NAME, 1107 .name = VMWGFX_DRIVER_NAME,
1106 .desc = VMWGFX_DRIVER_DESC, 1108 .desc = VMWGFX_DRIVER_DESC,
1107 .date = VMWGFX_DRIVER_DATE, 1109 .date = VMWGFX_DRIVER_DATE,