aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2009-07-23 12:25:49 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-08-03 04:04:47 -0400
commitff663cf8705bea101d5f73cf471855c85242575e (patch)
tree4b338298e69d2401cab848b4b9082bef07e5d9aa /include
parent2a4ceb6d3e6a566cb4a9dc8f974177f031d27cd7 (diff)
agp: Add generic support for graphics dma remapping
New driver hooks for support graphics memory dma remapping are introduced in this patch. It makes generic code can tell if current device needs dma remapping, then call driver provided interfaces for mapping and unmapping. Change has also been made to handle scratch_page in remapping case. Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/agp_backend.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/agp_backend.h b/include/linux/agp_backend.h
index 76fa794fdac0..8a294d65b9b1 100644
--- a/include/linux/agp_backend.h
+++ b/include/linux/agp_backend.h
@@ -79,9 +79,13 @@ struct agp_memory {
79 u32 physical; 79 u32 physical;
80 bool is_bound; 80 bool is_bound;
81 bool is_flushed; 81 bool is_flushed;
82 bool vmalloc_flag; 82 bool vmalloc_flag;
83 bool sg_vmalloc_flag;
83 /* list of agp_memory mapped to the aperture */ 84 /* list of agp_memory mapped to the aperture */
84 struct list_head mapped_list; 85 struct list_head mapped_list;
86 /* DMA-mapped addresses */
87 struct scatterlist *sg_list;
88 int num_sg;
85}; 89};
86 90
87#define AGP_NORMAL_MEMORY 0 91#define AGP_NORMAL_MEMORY 0