]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/agp_backend.h
agp: Add generic support for graphics dma remapping
[net-next-2.6.git] / include / linux / agp_backend.h
index 2b8df8b420fd0ebb2dc648d46d4aec3e148967f9..8a294d65b9b1ac5e57a59ad6f695c43fb74cc325 100644 (file)
@@ -70,7 +70,7 @@ struct agp_memory {
        struct agp_memory *next;
        struct agp_memory *prev;
        struct agp_bridge_data *bridge;
-       unsigned long *memory;
+       struct page **pages;
        size_t page_count;
        int key;
        int num_scratch_pages;
@@ -79,9 +79,13 @@ struct agp_memory {
        u32 physical;
        bool is_bound;
        bool is_flushed;
-        bool vmalloc_flag;
+       bool vmalloc_flag;
+       bool sg_vmalloc_flag;
        /* list of agp_memory mapped to the aperture */
        struct list_head mapped_list;
+       /* DMA-mapped addresses */
+       struct scatterlist *sg_list;
+       int num_sg;
 };
 
 #define AGP_NORMAL_MEMORY 0