Author: imp
Date: Sun Feb  8 08:13:36 2009
New Revision: 188304
URL: http://svn.freebsd.org/changeset/base/188304

Log:
  Retire NO_DMA completely.

Modified:
  head/sys/mips/mips/busdma_machdep.c

Modified: head/sys/mips/mips/busdma_machdep.c
==============================================================================
--- head/sys/mips/mips/busdma_machdep.c Sun Feb  8 07:05:23 2009        
(r188303)
+++ head/sys/mips/mips/busdma_machdep.c Sun Feb  8 08:13:36 2009        
(r188304)
@@ -187,7 +187,6 @@ busdma_lock_mutex(void *arg, bus_dma_loc
  * 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 o
        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 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,
        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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to