diff options
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index d6b67bb9075f..3fd82809b2d4 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -72,7 +72,8 @@ | |||
72 | #include <linux/workqueue.h> | 72 | #include <linux/workqueue.h> |
73 | #include <linux/poll.h> | 73 | #include <linux/poll.h> |
74 | #include <asm/pgalloc.h> | 74 | #include <asm/pgalloc.h> |
75 | #include "drm.h" | 75 | #include <drm/drm.h> |
76 | #include <drm/drm_sarea.h> | ||
76 | 77 | ||
77 | #include <linux/idr.h> | 78 | #include <linux/idr.h> |
78 | 79 | ||
@@ -84,9 +85,9 @@ struct module; | |||
84 | struct drm_file; | 85 | struct drm_file; |
85 | struct drm_device; | 86 | struct drm_device; |
86 | 87 | ||
87 | #include "drm_os_linux.h" | 88 | #include <drm/drm_os_linux.h> |
88 | #include "drm_hashtab.h" | 89 | #include <drm/drm_hashtab.h> |
89 | #include "drm_mm.h" | 90 | #include <drm/drm_mm.h> |
90 | 91 | ||
91 | #define DRM_UT_CORE 0x01 | 92 | #define DRM_UT_CORE 0x01 |
92 | #define DRM_UT_DRIVER 0x02 | 93 | #define DRM_UT_DRIVER 0x02 |
@@ -426,8 +427,8 @@ struct drm_prime_file_private { | |||
426 | /** File private data */ | 427 | /** File private data */ |
427 | struct drm_file { | 428 | struct drm_file { |
428 | int authenticated; | 429 | int authenticated; |
429 | pid_t pid; | 430 | struct pid *pid; |
430 | uid_t uid; | 431 | kuid_t uid; |
431 | drm_magic_t magic; | 432 | drm_magic_t magic; |
432 | unsigned long ioctl_count; | 433 | unsigned long ioctl_count; |
433 | struct list_head lhead; | 434 | struct list_head lhead; |
@@ -675,7 +676,7 @@ struct drm_gem_object { | |||
675 | struct dma_buf_attachment *import_attach; | 676 | struct dma_buf_attachment *import_attach; |
676 | }; | 677 | }; |
677 | 678 | ||
678 | #include "drm_crtc.h" | 679 | #include <drm/drm_crtc.h> |
679 | 680 | ||
680 | /* per-master structure */ | 681 | /* per-master structure */ |
681 | struct drm_master { | 682 | struct drm_master { |
@@ -1303,7 +1304,7 @@ extern void drm_vm_close_locked(struct drm_device *dev, struct vm_area_struct *v | |||
1303 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); | 1304 | extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); |
1304 | 1305 | ||
1305 | /* Memory management support (drm_memory.h) */ | 1306 | /* Memory management support (drm_memory.h) */ |
1306 | #include "drm_memory.h" | 1307 | #include <drm/drm_memory.h> |
1307 | extern void drm_free_agp(DRM_AGP_MEM * handle, int pages); | 1308 | extern void drm_free_agp(DRM_AGP_MEM * handle, int pages); |
1308 | extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start); | 1309 | extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start); |
1309 | extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev, | 1310 | extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev, |
@@ -1367,6 +1368,7 @@ extern int drm_remove_magic(struct drm_master *master, drm_magic_t magic); | |||
1367 | 1368 | ||
1368 | /* Cache management (drm_cache.c) */ | 1369 | /* Cache management (drm_cache.c) */ |
1369 | void drm_clflush_pages(struct page *pages[], unsigned long num_pages); | 1370 | void drm_clflush_pages(struct page *pages[], unsigned long num_pages); |
1371 | void drm_clflush_sg(struct sg_table *st); | ||
1370 | void drm_clflush_virt_range(char *addr, unsigned long length); | 1372 | void drm_clflush_virt_range(char *addr, unsigned long length); |
1371 | 1373 | ||
1372 | /* Locking IOCTL support (drm_lock.h) */ | 1374 | /* Locking IOCTL support (drm_lock.h) */ |
@@ -1612,7 +1614,7 @@ void drm_gem_vm_open(struct vm_area_struct *vma); | |||
1612 | void drm_gem_vm_close(struct vm_area_struct *vma); | 1614 | void drm_gem_vm_close(struct vm_area_struct *vma); |
1613 | int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma); | 1615 | int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma); |
1614 | 1616 | ||
1615 | #include "drm_global.h" | 1617 | #include <drm/drm_global.h> |
1616 | 1618 | ||
1617 | static inline void | 1619 | static inline void |
1618 | drm_gem_object_reference(struct drm_gem_object *obj) | 1620 | drm_gem_object_reference(struct drm_gem_object *obj) |
@@ -1721,7 +1723,7 @@ static __inline__ void drm_core_dropmap(struct drm_local_map *map) | |||
1721 | { | 1723 | { |
1722 | } | 1724 | } |
1723 | 1725 | ||
1724 | #include "drm_mem_util.h" | 1726 | #include <drm/drm_mem_util.h> |
1725 | 1727 | ||
1726 | extern int drm_fill_in_dev(struct drm_device *dev, | 1728 | extern int drm_fill_in_dev(struct drm_device *dev, |
1727 | const struct pci_device_id *ent, | 1729 | const struct pci_device_id *ent, |