From 4a27f1c6384c3987dc25e0d2b65e4cf56af7769a Mon Sep 17 00:00:00 2001 From: Robert Noland Date: Thu, 5 Mar 2009 00:42:52 -0600 Subject: 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). --- bsd-core/drmP.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bsd-core/drmP.h') 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; -- cgit v1.2.3