From ce514e08aa8fdbdf52da2ac2cbdace68e0b25210 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 26 Apr 2003 22:52:39 +0000 Subject: 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. --- bsd/r128_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bsd/r128_drv.c') diff --git a/bsd/r128_drv.c b/bsd/r128_drv.c index e7d18959..0aae76e8 100644 --- a/bsd/r128_drv.c +++ b/bsd/r128_drv.c @@ -75,11 +75,10 @@ drm_chipinfo_t DRM(devicelist)[] = { #include "drm_ioctl.h" #include "drm_lock.h" #include "drm_memory.h" +#include "drm_pci.h" #include "drm_sysctl.h" #include "drm_vm.h" -#if __HAVE_SG #include "drm_scatter.h" -#endif #ifdef __FreeBSD__ DRIVER_MODULE(r128, pci, r128_driver, r128_devclass, 0, 0); -- cgit v1.2.3