From fd5959df47a24b0bbdb7ab8bf6dbf5bb3ae35309 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 8 Feb 2009 08:13:36 +0000 Subject: [PATCH] Retire NO_DMA completely. --- sys/mips/mips/busdma_machdep.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/mips/mips/busdma_machdep.c b/sys/mips/mips/busdma_machdep.c index ee3e17039162..e62cadcde700 100644 --- a/sys/mips/mips/busdma_machdep.c +++ b/sys/mips/mips/busdma_machdep.c @@ -187,7 +187,6 @@ busdma_lock_mutex(void *arg, bus_dma_lock_op_t op) * with the tag are meant to never be defered. * XXX Should have a way to identify which driver is responsible here. */ -#ifndef NO_DMA static void dflt_lock(void *arg, bus_dma_lock_op_t op) { @@ -197,7 +196,6 @@ dflt_lock(void *arg, bus_dma_lock_op_t op) printf("DRIVER_ERROR: busdma dflt_lock called\n"); #endif } -#endif static __inline bus_dmamap_t _busdma_alloc_dmamap(void) @@ -238,7 +236,6 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment, bus_size_t maxsegsz, int flags, bus_dma_lock_t *lockfunc, void *lockfuncarg, bus_dma_tag_t *dmat) { -#ifndef NO_DMA bus_dma_tag_t newtag; int error = 0; @@ -313,10 +310,6 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment, CTR4(KTR_BUSDMA, "%s returned tag %p tag flags 0x%x error %d", __func__, newtag, (newtag != NULL ? newtag->flags : 0), error); return (error); -#else - return ENOSYS; -#endif - } int