aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/via/via_drv.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-26 16:21:13 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-12-21 18:33:22 -0500
commit977b4f6edd7a960dd80c1a614a7644068f866c5b (patch)
treefd88f3a302ccfd38f521548db97b36135c96d602 /drivers/gpu/drm/via/via_drv.h
parent94e895321bade1bafbcb2af1ef1e79b01e018012 (diff)
drm/via: use drm_mm instead of drm_sman
To make the transition in a piece-wise and bisectable way possible, I've hijacked the ->owner_list from drm_sman. While transitioning, the list_add was done by the driver, while the list_del was still done by the dying sman code. Now that we are in full control of ->owner_list, do the list_del ourselves. v2: Better explain the list_del trickery as suggested by Chris Wilson. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/via/via_drv.h')
-rw-r--r--drivers/gpu/drm/via/via_drv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/via/via_drv.h b/drivers/gpu/drm/via/via_drv.h
index 108ea71f399d..88edacc93006 100644
--- a/drivers/gpu/drm/via/via_drv.h
+++ b/drivers/gpu/drm/via/via_drv.h
@@ -24,7 +24,7 @@
24#ifndef _VIA_DRV_H_ 24#ifndef _VIA_DRV_H_
25#define _VIA_DRV_H_ 25#define _VIA_DRV_H_
26 26
27#include "drm_sman.h" 27#include "drm_mm.h"
28#define DRIVER_AUTHOR "Various" 28#define DRIVER_AUTHOR "Various"
29 29
30#define DRIVER_NAME "via" 30#define DRIVER_NAME "via"
@@ -88,9 +88,10 @@ typedef struct drm_via_private {
88 uint32_t irq_pending_mask; 88 uint32_t irq_pending_mask;
89 int *irq_map; 89 int *irq_map;
90 unsigned int idle_fault; 90 unsigned int idle_fault;
91 struct drm_sman sman;
92 int vram_initialized; 91 int vram_initialized;
92 struct drm_mm vram_mm;
93 int agp_initialized; 93 int agp_initialized;
94 struct drm_mm agp_mm;
94 /** Mapping of userspace keys to mm objects */ 95 /** Mapping of userspace keys to mm objects */
95 struct idr object_idr; 96 struct idr object_idr;
96 unsigned long vram_offset; 97 unsigned long vram_offset;