diff options
author | Robert Noland <rnoland@2hip.net> | 2009-03-09 13:34:26 -0500 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-03-09 13:34:26 -0500 |
commit | a3ba51bd041a448f3bb14678cebb0976e0fda47a (patch) | |
tree | 32727101e239ceba0de0fd92d7b4f62609612dae /bsd-core | |
parent | af1afb3c381797e6bf0fb56abd4505094cb6c11e (diff) |
FreeBSD: Fix up the flags for bus_dmamem here as well.
Diffstat (limited to 'bsd-core')
-rw-r--r-- | bsd-core/drm_pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bsd-core/drm_pci.c b/bsd-core/drm_pci.c index 5a3cb61b..b2d2635c 100644 --- a/bsd-core/drm_pci.c +++ b/bsd-core/drm_pci.c @@ -80,15 +80,15 @@ drm_pci_alloc(struct drm_device *dev, size_t size, maxaddr, BUS_SPACE_MAXADDR, /* lowaddr, highaddr */ NULL, NULL, /* filtfunc, filtfuncargs */ size, 1, size, /* maxsize, nsegs, maxsegsize */ - BUS_DMA_ALLOCNOW, NULL, NULL, /* flags, lockfunc, lockfuncargs */ + 0, NULL, NULL, /* flags, lockfunc, lockfuncargs */ &dmah->tag); if (ret != 0) { free(dmah, DRM_MEM_DMA); return NULL; } - ret = bus_dmamem_alloc(dmah->tag, &dmah->vaddr, BUS_DMA_NOWAIT, - &dmah->map); + ret = bus_dmamem_alloc(dmah->tag, &dmah->vaddr, + BUS_DMA_WAITOK | BUS_DMA_ZERO, &dmah->map); if (ret != 0) { bus_dma_tag_destroy(dmah->tag); free(dmah, DRM_MEM_DMA); @@ -96,7 +96,7 @@ drm_pci_alloc(struct drm_device *dev, size_t size, } ret = bus_dmamap_load(dmah->tag, dmah->map, dmah->vaddr, size, - drm_pci_busdma_callback, dmah, 0); + drm_pci_busdma_callback, dmah, BUS_DMA_NOWAIT | BUS_DMA_NOCACHE); if (ret != 0) { bus_dmamem_free(dmah->tag, dmah->vaddr, dmah->map); bus_dma_tag_destroy(dmah->tag); |