diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-29 06:12:32 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-10 03:40:11 -0400 |
commit | cc5ea5947a52b98cd9a03d4011a5a12b4e5a99c4 (patch) | |
tree | 11a83a3663b99b96437e11d4bffd1ce240cfceb5 /include/drm/drm_agpsupport.h | |
parent | cc33db0a6108d41b94eba0d84b0627cc52585109 (diff) |
drm: move AGP definitions harder
Move drm_agp_head to drm_agpsupport.h and drm_agp_mem into drm_legacy.h.
Unfortunately, drivers still heavily access drm_agp_head so we cannot
move it to drm_legacy.h. However, at least it's no longer visible in
drmP.h now (it's directly included from it, though).
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.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drm/drm_agpsupport.h b/include/drm/drm_agpsupport.h index 86a02188074b..3bebeb4af864 100644 --- a/include/drm/drm_agpsupport.h +++ b/include/drm/drm_agpsupport.h | |||
@@ -8,6 +8,19 @@ | |||
8 | #include <linux/agp_backend.h> | 8 | #include <linux/agp_backend.h> |
9 | #include <drm/drmP.h> | 9 | #include <drm/drmP.h> |
10 | 10 | ||
11 | struct drm_agp_head { | ||
12 | struct agp_kern_info agp_info; | ||
13 | struct list_head memory; | ||
14 | unsigned long mode; | ||
15 | struct agp_bridge_data *bridge; | ||
16 | int enabled; | ||
17 | int acquired; | ||
18 | unsigned long base; | ||
19 | int agp_mtrr; | ||
20 | int cant_use_aperture; | ||
21 | unsigned long page_mask; | ||
22 | }; | ||
23 | |||
11 | #if __OS_HAS_AGP | 24 | #if __OS_HAS_AGP |
12 | 25 | ||
13 | void drm_free_agp(struct agp_memory * handle, int pages); | 26 | void drm_free_agp(struct agp_memory * handle, int pages); |