patch-2.4.25 linux-2.4.25/include/asm-ppc/floppy.h
Next file: linux-2.4.25/include/asm-ppc/ibm4xx.h
Previous file: linux-2.4.25/include/asm-ppc/cputable.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/include/asm-ppc/floppy.h
- Orig date:
2003-06-13 07:51:38.000000000 -0700
diff -urN linux-2.4.24/include/asm-ppc/floppy.h linux-2.4.25/include/asm-ppc/floppy.h
@@ -12,7 +12,7 @@
#define __ASM_PPC_FLOPPY_H
#define fd_inb(port) inb_p(port)
-#define fd_outb(port,value) outb_p(port,value)
+#define fd_outb(value,port) outb_p(value,port)
#define fd_enable_dma() enable_dma(FLOPPY_DMA)
#define fd_disable_dma() disable_dma(FLOPPY_DMA)
@@ -24,7 +24,11 @@
#define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA,count)
#define fd_enable_irq() enable_irq(FLOPPY_IRQ)
#define fd_disable_irq() disable_irq(FLOPPY_IRQ)
+#if CONFIG_NOT_COHERENT_CACHE
+#define fd_cacheflush(addr,size) dma_cache_wback_inv(addr, size)
+#else
#define fd_cacheflush(addr,size) /* nothing */
+#endif
#define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt, \
SA_INTERRUPT|SA_SAMPLE_RANDOM, \
"floppy", NULL)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)