diff options
Diffstat (limited to 'drivers/char/drm/i915_drv.h')
-rw-r--r-- | drivers/char/drm/i915_drv.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/char/drm/i915_drv.h b/drivers/char/drm/i915_drv.h index 28b98733beb8..12fcd33dfda6 100644 --- a/drivers/char/drm/i915_drv.h +++ b/drivers/char/drm/i915_drv.h | |||
@@ -70,7 +70,7 @@ struct mem_block { | |||
70 | struct mem_block *prev; | 70 | struct mem_block *prev; |
71 | int start; | 71 | int start; |
72 | int size; | 72 | int size; |
73 | DRMFILE filp; /* 0: free, -1: heap, other: real files */ | 73 | struct drm_file *file_priv; /* NULL: free, -1: heap, other: real files */ |
74 | }; | 74 | }; |
75 | 75 | ||
76 | typedef struct _drm_i915_vbl_swap { | 76 | typedef struct _drm_i915_vbl_swap { |
@@ -123,7 +123,8 @@ extern int i915_max_ioctl; | |||
123 | extern void i915_kernel_lost_context(struct drm_device * dev); | 123 | extern void i915_kernel_lost_context(struct drm_device * dev); |
124 | extern int i915_driver_load(struct drm_device *, unsigned long flags); | 124 | extern int i915_driver_load(struct drm_device *, unsigned long flags); |
125 | extern void i915_driver_lastclose(struct drm_device * dev); | 125 | extern void i915_driver_lastclose(struct drm_device * dev); |
126 | extern void i915_driver_preclose(struct drm_device * dev, DRMFILE filp); | 126 | extern void i915_driver_preclose(struct drm_device *dev, |
127 | struct drm_file *file_priv); | ||
127 | extern int i915_driver_device_is_agp(struct drm_device * dev); | 128 | extern int i915_driver_device_is_agp(struct drm_device * dev); |
128 | extern long i915_compat_ioctl(struct file *filp, unsigned int cmd, | 129 | extern long i915_compat_ioctl(struct file *filp, unsigned int cmd, |
129 | unsigned long arg); | 130 | unsigned long arg); |
@@ -149,7 +150,7 @@ extern int i915_mem_init_heap(DRM_IOCTL_ARGS); | |||
149 | extern int i915_mem_destroy_heap(DRM_IOCTL_ARGS); | 150 | extern int i915_mem_destroy_heap(DRM_IOCTL_ARGS); |
150 | extern void i915_mem_takedown(struct mem_block **heap); | 151 | extern void i915_mem_takedown(struct mem_block **heap); |
151 | extern void i915_mem_release(struct drm_device * dev, | 152 | extern void i915_mem_release(struct drm_device * dev, |
152 | DRMFILE filp, struct mem_block *heap); | 153 | struct drm_file *file_priv, struct mem_block *heap); |
153 | 154 | ||
154 | #define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, (reg)) | 155 | #define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, (reg)) |
155 | #define I915_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, (reg), (val)) | 156 | #define I915_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, (reg), (val)) |