aboutsummaryrefslogtreecommitdiff
path: root/bsd-core/drmP.h
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2009-03-05 00:42:52 -0600
committerRobert Noland <rnoland@2hip.net>2009-03-05 00:42:52 -0600
commit4a27f1c6384c3987dc25e0d2b65e4cf56af7769a (patch)
tree36d66a85b1aef92523f1afd4821fb10428d5ecea /bsd-core/drmP.h
parente4b065ad9a0834fb646baf5a6051902d15716e5e (diff)
FreeBSD: rework drm_scatter.c which allocates scatter / gather pages for use by
ati pci gart to use bus_dma to handle the allocations. This fixes a garbled screen issue on at least some radeons (X1400 tested).
Diffstat (limited to 'bsd-core/drmP.h')
-rw-r--r--bsd-core/drmP.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index 69147b33..79998e84 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -475,11 +475,13 @@ typedef struct drm_agp_head {
} drm_agp_head_t;
typedef struct drm_sg_mem {
- unsigned long handle;
- void *virtual;
- int pages;
- dma_addr_t *busaddr;
- drm_dma_handle_t *dmah; /* Handle to PCI memory for ATI PCIGART table */
+ unsigned long handle;
+ void *virtual;
+ int pages;
+ dma_addr_t *busaddr;
+ struct drm_dma_handle *sg_dmah; /* Handle for sg_pages */
+ struct drm_dma_handle *dmah; /* Handle to PCI memory */
+ /* for ATI PCIGART table */
} drm_sg_mem_t;
typedef TAILQ_HEAD(drm_map_list, drm_local_map) drm_map_list_t;