BUS_DMA_ISA unused, planning on removing
M. Warner Losh
imp at bsdimp.com
Fri Mar 14 16:22:42 UTC 2008
Greetings,
It appears that BUS_DMA_ISA is unused:
find . -name \*.c -o -name \*.h | xargs egrep BUS_DMA_ISA
./ia64/isa/isa_dma.c: /*flags*/BUS_DMA_ISA,
./sys/bus_dma.h:#define BUS_DMA_ISA 0x400 /* map memory for AXP ISA dma */
I talked to Marcel, and he's cool with removing it. Can anybody see a
reason not to GC this?
Warner
-------------- next part --------------
Index: ia64/isa/isa_dma.c
===================================================================
RCS file: /pe/ncvs/src/sys/ia64/isa/isa_dma.c,v
retrieving revision 1.10
diff -u -r1.10 isa_dma.c
--- ia64/isa/isa_dma.c 9 Jul 2007 04:58:16 -0000 1.10
+++ ia64/isa/isa_dma.c 14 Mar 2008 16:17:39 -0000
@@ -106,7 +106,7 @@
/*filter*/NULL, /*filterarg*/NULL,
/*maxsize*/bouncebufsize,
/*nsegments*/1, /*maxsegz*/0x3ffff,
- /*flags*/BUS_DMA_ISA,
+ /*flags*/0,
/*lockfunc*/busdma_lock_mutex,
/*lockarg*/&Giant,
&dma_tag[chan]) != 0) {
Index: sys/bus_dma.h
===================================================================
RCS file: /pe/ncvs/src/sys/sys/bus_dma.h,v
retrieving revision 1.30
diff -u -r1.30 bus_dma.h
--- sys/bus_dma.h 3 Sep 2006 00:26:17 -0000 1.30
+++ sys/bus_dma.h 14 Mar 2008 16:17:17 -0000
@@ -101,7 +101,6 @@
*/
#define BUS_DMA_NOWRITE 0x100
#define BUS_DMA_NOCACHE 0x200
-#define BUS_DMA_ISA 0x400 /* map memory for AXP ISA dma */
/* Forwards needed by prototypes below. */
struct mbuf;
More information about the freebsd-arch
mailing list