patch-2.1.73 linux/arch/mips/sni/hw-access.c
Next file: linux/arch/mips/sni/int-handler.S
Previous file: linux/arch/mips/sgi/prom/tree.c
Back to the patch index
Back to the overall index
- Lines: 101
- Date:
Wed Dec 10 10:31:10 1997
- Orig file:
v2.1.72/linux/arch/mips/sni/hw-access.c
- Orig date:
Mon Aug 18 18:19:43 1997
diff -u --recursive --new-file v2.1.72/linux/arch/mips/sni/hw-access.c linux/arch/mips/sni/hw-access.c
@@ -7,7 +7,7 @@
*
* Copyright (C) 1996, 1997 by Ralf Baechle
*
- * $Id: hw-access.c,v 1.2 1997/08/08 18:13:27 miguel Exp $
+ * $Id: hw-access.c,v 1.3 1997/07/29 17:46:46 ralf Exp $
*/
#include <linux/delay.h>
#include <linux/kbdcntrlr.h>
@@ -47,69 +47,69 @@
* How to access the floppy DMA functions.
*/
static void
-fd_enable_dma(void)
+fd_enable_dma(int channel)
{
- enable_dma(FLOPPY_DMA);
+ enable_dma(channel);
}
static void
-fd_disable_dma(void)
+fd_disable_dma(int channel)
{
- disable_dma(FLOPPY_DMA);
+ disable_dma(channel);
}
static int
-fd_request_dma(void)
+fd_request_dma(int channel)
{
- return request_dma(FLOPPY_DMA, "floppy");
+ return request_dma(channel, "floppy");
}
static void
-fd_free_dma(void)
+fd_free_dma(int channel)
{
- free_dma(FLOPPY_DMA);
+ free_dma(channel);
}
static void
-fd_clear_dma_ff(void)
+fd_clear_dma_ff(int channel)
{
- clear_dma_ff(FLOPPY_DMA);
+ clear_dma_ff(channel);
}
static void
-fd_set_dma_mode(char mode)
+fd_set_dma_mode(int channel, char mode)
{
- set_dma_mode(FLOPPY_DMA, mode);
+ set_dma_mode(channel, mode);
}
static void
-fd_set_dma_addr(unsigned int addr)
+fd_set_dma_addr(int channel, unsigned int addr)
{
- set_dma_addr(FLOPPY_DMA, addr);
+ set_dma_addr(channel, addr);
}
static void
-fd_set_dma_count(unsigned int count)
+fd_set_dma_count(int channel, unsigned int count)
{
- set_dma_count(FLOPPY_DMA, count);
+ set_dma_count(channel, count);
}
static int
-fd_get_dma_residue(void)
+fd_get_dma_residue(int channel)
{
- return get_dma_residue(FLOPPY_DMA);
+ return get_dma_residue(channel);
}
static void
-fd_enable_irq(void)
+fd_enable_irq(int irq)
{
- enable_irq(FLOPPY_IRQ);
+ enable_irq(irq);
}
static void
-fd_disable_irq(void)
+fd_disable_irq(int irq)
{
- disable_irq(FLOPPY_IRQ);
+ disable_irq(irq);
}
void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov