diff options
author | rnoland <rnoland@FreeBSD.org> | 2008-12-18 21:04:50 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2008-12-18 21:04:50 +0000 |
commit | 3e6eb1349aa2d4042cfe04de322859f7083018f9 (patch) | |
tree | 8b14932395c8a75dbe8269767f51712644da9892 /sys/dev/drm/drmP.h | |
parent | 0010656ee9ee024f4582605e0e9a29eff6b747b2 (diff) | |
download | FreeBSD-src-3e6eb1349aa2d4042cfe04de322859f7083018f9.zip FreeBSD-src-3e6eb1349aa2d4042cfe04de322859f7083018f9.tar.gz |
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). It is
also likely that this is the correct fix for PR# 119324, though that
is not confirmed yet.
Reviewed by: jhb@ (mentor, prior version)
Approved by: kib@
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/drm/drmP.h')
-rw-r--r-- | sys/dev/drm/drmP.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/drm/drmP.h b/sys/dev/drm/drmP.h index eb91214..9fb29f9 100644 --- a/sys/dev/drm/drmP.h +++ b/sys/dev/drm/drmP.h @@ -473,11 +473,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; |