diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-17 07:05:46 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-03-17 07:05:46 +1000 |
commit | 1f96e9a98245b18c99cc6a7e66372a076b9abf6b (patch) | |
tree | 2faf45565071d9d7904629eaeb063a1f159dbb97 /linux-core/drmP.h | |
parent | 1a2d8c4bfa96dd176ec084811ad286f95968ee52 (diff) |
drm/pcigart: fix the pci gart to use the drm_pci wrapper.
This is the correct fix for the RS690 and hopefully the dma coherent work.
For now we limit everybody to a 32-bit DMA mask but it is possible for
RS690 to use a 40-bit DMA mask for the GART table itself,
and the PCIE cards can use 40-bits for the table entries.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r-- | linux-core/drmP.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 2f76f3df..69d31e14 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -52,6 +52,7 @@ #include <linux/version.h> #include <linux/sched.h> #include <linux/smp_lock.h> /* For (un)lock_kernel */ +#include <linux/dma-mapping.h> #include <linux/mm.h> #include <linux/pagemap.h> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) @@ -596,6 +597,9 @@ struct drm_ati_pcigart_info { int gart_reg_if; void *addr; dma_addr_t bus_addr; + dma_addr_t table_mask; + dma_addr_t member_mask; + struct drm_dma_handle *table_handle; drm_local_map_t mapping; int table_size; }; |