aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-08-29 06:12:40 -0400
committerDave Airlie <airlied@redhat.com>2014-09-10 03:42:03 -0400
commitd7d2c48e5cfe27dc7378e48d4f22efcf417317d9 (patch)
tree42a5a54b7651df6e6a7bce6e0081b3f9999ffd75 /include/drm/drmP.h
parent69d516c0a990b42c4d55f7631fa28cc41bfcc8f0 (diff)
drm: move remaining includes in drmP.h to the top
Including headers somewhere else but at the top is ugly, deprecated and was used in early days only to speed up compile-times. Those days are over. Make headers independent and then move the inclusions to the top. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h31
1 files changed, 12 insertions, 19 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 840a3735d3da..a8b24fcddb8c 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1,17 +1,14 @@
1/**
2 * \file drmP.h
3 * Private header for Direct Rendering Manager
4 *
5 * \author Rickard E. (Rik) Faith <faith@valinux.com>
6 * \author Gareth Hughes <gareth@valinux.com>
7 */
8
9/* 1/*
2 * Internal Header for the Direct Rendering Manager
3 *
10 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 4 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
11 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
12 * Copyright (c) 2009-2010, Code Aurora Forum. 6 * Copyright (c) 2009-2010, Code Aurora Forum.
13 * All rights reserved. 7 * All rights reserved.
14 * 8 *
9 * Author: Rickard E. (Rik) Faith <faith@valinux.com>
10 * Author: Gareth Hughes <gareth@valinux.com>
11 *
15 * Permission is hereby granted, free of charge, to any person obtaining a 12 * Permission is hereby granted, free of charge, to any person obtaining a
16 * copy of this software and associated documentation files (the "Software"), 13 * copy of this software and associated documentation files (the "Software"),
17 * to deal in the Software without restriction, including without limitation 14 * to deal in the Software without restriction, including without limitation
@@ -64,8 +61,14 @@
64#include <asm/pgalloc.h> 61#include <asm/pgalloc.h>
65#include <asm/uaccess.h> 62#include <asm/uaccess.h>
66 63
67#include <drm/drm.h> 64#include <uapi/drm/drm.h>
65#include <uapi/drm/drm_mode.h>
66
67#include <drm/drm_agpsupport.h>
68#include <drm/drm_crtc.h>
69#include <drm/drm_global.h>
68#include <drm/drm_hashtab.h> 70#include <drm/drm_hashtab.h>
71#include <drm/drm_mem_util.h>
69#include <drm/drm_mm.h> 72#include <drm/drm_mm.h>
70#include <drm/drm_os_linux.h> 73#include <drm/drm_os_linux.h>
71#include <drm/drm_sarea.h> 74#include <drm/drm_sarea.h>
@@ -564,8 +567,6 @@ struct drm_gem_object {
564 struct dma_buf_attachment *import_attach; 567 struct dma_buf_attachment *import_attach;
565}; 568};
566 569
567#include <drm/drm_crtc.h>
568
569/** 570/**
570 * struct drm_master - drm master structure 571 * struct drm_master - drm master structure
571 * 572 *
@@ -1228,10 +1229,6 @@ extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);
1228extern int drm_modeset_ctl(struct drm_device *dev, void *data, 1229extern int drm_modeset_ctl(struct drm_device *dev, void *data,
1229 struct drm_file *file_priv); 1230 struct drm_file *file_priv);
1230 1231
1231 /* AGP/GART support (drm_agpsupport.h) */
1232
1233#include <drm/drm_agpsupport.h>
1234
1235 /* Stub support (drm_stub.h) */ 1232 /* Stub support (drm_stub.h) */
1236extern int drm_setmaster_ioctl(struct drm_device *dev, void *data, 1233extern int drm_setmaster_ioctl(struct drm_device *dev, void *data,
1237 struct drm_file *file_priv); 1234 struct drm_file *file_priv);
@@ -1397,8 +1394,6 @@ int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size,
1397 struct vm_area_struct *vma); 1394 struct vm_area_struct *vma);
1398int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma); 1395int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
1399 1396
1400#include <drm/drm_global.h>
1401
1402static inline void 1397static inline void
1403drm_gem_object_reference(struct drm_gem_object *obj) 1398drm_gem_object_reference(struct drm_gem_object *obj)
1404{ 1399{
@@ -1472,8 +1467,6 @@ static __inline__ void drm_core_dropmap(struct drm_local_map *map)
1472{ 1467{
1473} 1468}
1474 1469
1475#include <drm/drm_mem_util.h>
1476
1477struct drm_device *drm_dev_alloc(struct drm_driver *driver, 1470struct drm_device *drm_dev_alloc(struct drm_driver *driver,
1478 struct device *parent); 1471 struct device *parent);
1479void drm_dev_ref(struct drm_device *dev); 1472void drm_dev_ref(struct drm_device *dev);