aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_agpsupport.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/drm_agpsupport.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/drm_agpsupport.h')
-rw-r--r--include/drm/drm_agpsupport.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/drm/drm_agpsupport.h b/include/drm/drm_agpsupport.h
index 4f1724c7ba8c..055dc058d147 100644
--- a/include/drm/drm_agpsupport.h
+++ b/include/drm/drm_agpsupport.h
@@ -1,12 +1,16 @@
1#ifndef _DRM_AGPSUPPORT_H_ 1#ifndef _DRM_AGPSUPPORT_H_
2#define _DRM_AGPSUPPORT_H_ 2#define _DRM_AGPSUPPORT_H_
3 3
4#include <linux/agp_backend.h>
4#include <linux/kernel.h> 5#include <linux/kernel.h>
6#include <linux/list.h>
5#include <linux/mm.h> 7#include <linux/mm.h>
6#include <linux/mutex.h> 8#include <linux/mutex.h>
7#include <linux/types.h> 9#include <linux/types.h>
8#include <linux/agp_backend.h> 10#include <uapi/drm/drm.h>
9#include <drm/drmP.h> 11
12struct drm_device;
13struct drm_file;
10 14
11#define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && \ 15#define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && \
12 defined(MODULE))) 16 defined(MODULE)))
@@ -61,6 +65,7 @@ int drm_agp_unbind_ioctl(struct drm_device *dev, void *data,
61int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request); 65int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request);
62int drm_agp_bind_ioctl(struct drm_device *dev, void *data, 66int drm_agp_bind_ioctl(struct drm_device *dev, void *data,
63 struct drm_file *file_priv); 67 struct drm_file *file_priv);
68
64#else /* __OS_HAS_AGP */ 69#else /* __OS_HAS_AGP */
65 70
66static inline void drm_free_agp(struct agp_memory * handle, int pages) 71static inline void drm_free_agp(struct agp_memory * handle, int pages)
@@ -188,6 +193,7 @@ static inline int drm_agp_bind_ioctl(struct drm_device *dev, void *data,
188{ 193{
189 return -ENODEV; 194 return -ENODEV;
190} 195}
196
191#endif /* __OS_HAS_AGP */ 197#endif /* __OS_HAS_AGP */
192 198
193#endif /* _DRM_AGPSUPPORT_H_ */ 199#endif /* _DRM_AGPSUPPORT_H_ */