aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-11 05:34:40 -0500
committerDave Airlie <airlied@redhat.com>2013-12-17 20:32:55 -0500
commitd2e546b855646f251046098ddaccef50bf3d4302 (patch)
tree2fbb465e003fe0fbcc2283d69ce5e747c6a13329 /drivers/gpu
parent8a5a80081a1cc8b4f7bdf777fde3d955a020481c (diff)
drm: rip out DRM_AGP_MEM and DRM_AGP_KERN
The <linux/agp_backend.h> header provides dummy functions and fallbacks, so no need for screaming macros. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/drm_agpsupport.c8
-rw-r--r--drivers/gpu/drm/drm_memory.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c
index 74fabe6956cb..dde205cef384 100644
--- a/drivers/gpu/drm/drm_agpsupport.c
+++ b/drivers/gpu/drm/drm_agpsupport.c
@@ -53,7 +53,7 @@
53 */ 53 */
54int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info) 54int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info)
55{ 55{
56 DRM_AGP_KERN *kern; 56 struct agp_kern_info *kern;
57 57
58 if (!dev->agp || !dev->agp->acquired) 58 if (!dev->agp || !dev->agp->acquired)
59 return -EINVAL; 59 return -EINVAL;
@@ -198,7 +198,7 @@ int drm_agp_enable_ioctl(struct drm_device *dev, void *data,
198int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request) 198int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request)
199{ 199{
200 struct drm_agp_mem *entry; 200 struct drm_agp_mem *entry;
201 DRM_AGP_MEM *memory; 201 struct agp_memory *memory;
202 unsigned long pages; 202 unsigned long pages;
203 u32 type; 203 u32 type;
204 204
@@ -466,14 +466,14 @@ void drm_agp_clear(struct drm_device *dev)
466 * No reference is held on the pages during this time -- it is up to the 466 * No reference is held on the pages during this time -- it is up to the
467 * caller to handle that. 467 * caller to handle that.
468 */ 468 */
469DRM_AGP_MEM * 469struct agp_memory *
470drm_agp_bind_pages(struct drm_device *dev, 470drm_agp_bind_pages(struct drm_device *dev,
471 struct page **pages, 471 struct page **pages,
472 unsigned long num_pages, 472 unsigned long num_pages,
473 uint32_t gtt_offset, 473 uint32_t gtt_offset,
474 u32 type) 474 u32 type)
475{ 475{
476 DRM_AGP_MEM *mem; 476 struct agp_memory *mem;
477 int ret, i; 477 int ret, i;
478 478
479 DRM_DEBUG("\n"); 479 DRM_DEBUG("\n");
diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c
index 3359bc453e11..00c67c0f2381 100644
--- a/drivers/gpu/drm/drm_memory.c
+++ b/drivers/gpu/drm/drm_memory.c
@@ -82,19 +82,19 @@ static void *agp_remap(unsigned long offset, unsigned long size,
82} 82}
83 83
84/** Wrapper around agp_free_memory() */ 84/** Wrapper around agp_free_memory() */
85void drm_free_agp(DRM_AGP_MEM * handle, int pages) 85void drm_free_agp(struct agp_memory * handle, int pages)
86{ 86{
87 agp_free_memory(handle); 87 agp_free_memory(handle);
88} 88}
89 89
90/** Wrapper around agp_bind_memory() */ 90/** Wrapper around agp_bind_memory() */
91int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start) 91int drm_bind_agp(struct agp_memory * handle, unsigned int start)
92{ 92{
93 return agp_bind_memory(handle, start); 93 return agp_bind_memory(handle, start);
94} 94}
95 95
96/** Wrapper around agp_unbind_memory() */ 96/** Wrapper around agp_unbind_memory() */
97int drm_unbind_agp(DRM_AGP_MEM * handle) 97int drm_unbind_agp(struct agp_memory * handle)
98{ 98{
99 return agp_unbind_memory(handle); 99 return agp_unbind_memory(handle);
100} 100}