patch-2.2.11 linux/include/asm-mips/floppy.h
Next file: linux/include/asm-mips/fp.h
Previous file: linux/include/asm-mips/fcntl.h
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Mon Aug 9 12:04:41 1999
- Orig file:
v2.2.10/linux/include/asm-mips/floppy.h
- Orig date:
Mon Oct 26 09:57:56 1998
diff -u --recursive --new-file v2.2.10/linux/include/asm-mips/floppy.h linux/include/asm-mips/floppy.h
@@ -1,4 +1,4 @@
-/* $Id: floppy.h,v 1.4 1998/05/07 18:38:41 ralf Exp $
+/* $Id: floppy.h,v 1.6.2.1 1999/06/23 22:28:38 ralf Exp $
*
* Architecture specific parts of the Floppy driver
*
@@ -42,30 +42,30 @@
extern struct fd_ops *fd_ops;
-#define fd_inb(port) fd_ops->fd_inb(port)
-#define fd_outb(value,port) fd_ops->fd_outb(value,port)
+#define fd_inb(port) fd_ops->fd_inb(port)
+#define fd_outb(value,port) fd_ops->fd_outb(value,port)
-#define fd_enable_dma(channel) fd_ops->fd_enable_dma(channel)
-#define fd_disable_dma(channel) fd_ops->fd_disable_dma(channel)
-#define fd_request_dma(channel) fd_ops->fd_request_dma(channel)
-#define fd_free_dma(channel) fd_ops->fd_free_dma(channel)
-#define fd_clear_dma_ff(channel) fd_ops->fd_clear_dma_ff(channel)
-#define fd_set_dma_mode(channel, mode) fd_ops->fd_set_dma_mode(channel, mode)
-#define fd_set_dma_addr(channel, addr) fd_ops->fd_set_dma_addr(channel, \
- virt_to_bus(addr))
-#define fd_set_dma_count(channel,count) fd_ops->fd_set_dma_count(channel,count)
-#define fd_get_dma_residue(channel) fd_ops->fd_get_dma_residue(channel)
-
-#define fd_enable_irq(irq) fd_ops->fd_enable_irq(irq)
-#define fd_disable_irq(irq) fd_ops->fd_disable_irq(irq)
-#define fd_request_irq(irq) request_irq(irq, floppy_interrupt, \
- SA_INTERRUPT \
- | SA_SAMPLE_RANDOM, \
- "floppy", NULL)
-#define fd_free_irq(irq) free_irq(irq, NULL);
-#define fd_dma_mem_alloc(size) fd_ops->fd_dma_mem_alloc(size)
+#define fd_enable_dma() fd_ops->fd_enable_dma(FLOPPY_DMA)
+#define fd_disable_dma() fd_ops->fd_disable_dma(FLOPPY_DMA)
+#define fd_request_dma() fd_ops->fd_request_dma(FLOPPY_DMA)
+#define fd_free_dma() fd_ops->fd_free_dma(FLOPPY_DMA)
+#define fd_clear_dma_ff() fd_ops->fd_clear_dma_ff(FLOPPY_DMA)
+#define fd_set_dma_mode(mode) fd_ops->fd_set_dma_mode(FLOPPY_DMA, mode)
+#define fd_set_dma_addr(addr) fd_ops->fd_set_dma_addr(FLOPPY_DMA, \
+ virt_to_bus(addr))
+#define fd_set_dma_count(count) fd_ops->fd_set_dma_count(FLOPPY_DMA,count)
+#define fd_get_dma_residue() fd_ops->fd_get_dma_residue(FLOPPY_DMA)
+
+#define fd_enable_irq() fd_ops->fd_enable_irq(FLOPPY_IRQ)
+#define fd_disable_irq() fd_ops->fd_disable_irq(FLOPPY_IRQ)
+#define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt, \
+ SA_INTERRUPT | SA_SAMPLE_RANDOM, \
+ "floppy", NULL)
+#define fd_free_irq() free_irq(FLOPPY_IRQ, NULL);
+#define fd_dma_mem_alloc(size) fd_ops->fd_dma_mem_alloc(size)
#define fd_dma_mem_free(mem,size) fd_ops->fd_dma_mem_free(mem,size)
-#define fd_drive_type(n) fd_ops->fd_drive_type(n)
+#define fd_drive_type(n) fd_ops->fd_drive_type(n)
+#define fd_cacheflush(addr,size) dma_cache_wback_inv(addr,size)
#define MAX_BUFFER_SECTORS 24
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)