summaryrefslogtreecommitdiff
path: root/bsd/radeon_drv.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-04-26 22:52:39 +0000
committerEric Anholt <anholt@freebsd.org>2003-04-26 22:52:39 +0000
commitce514e08aa8fdbdf52da2ac2cbdace68e0b25210 (patch)
tree4c7101a5f73d5fcface6aeee9b4f599d6a3be9ce /bsd/radeon_drv.c
parentf2a0c5438dc83171de1007a68e4f98e35b5a8fbe (diff)
Add PCI DMA memory functions and make addbufs_pci and associated code use
it. To do this we need to save the bus address along with the virtual address in the seglist. Also fix some error handling and a few bits of whitespace.
Diffstat (limited to 'bsd/radeon_drv.c')
-rw-r--r--bsd/radeon_drv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bsd/radeon_drv.c b/bsd/radeon_drv.c
index badd7081..5ad5d4b0 100644
--- a/bsd/radeon_drv.c
+++ b/bsd/radeon_drv.c
@@ -88,11 +88,10 @@ drm_chipinfo_t DRM(devicelist)[] = {
#include "drm_ioctl.h"
#include "drm_lock.h"
#include "drm_memory.h"
+#include "drm_pci.h"
#include "drm_vm.h"
#include "drm_sysctl.h"
-#if __HAVE_SG
#include "drm_scatter.h"
-#endif
#ifdef __FreeBSD__
DRIVER_MODULE(DRIVER_NAME, pci, DRM(driver), DRM(devclass), 0, 0);