patch-2.3.9 linux/arch/mips/jazz/floppy-jazz.c
Next file: linux/arch/mips/jazz/hw-access.c
Previous file: linux/arch/mips/jazz/Makefile
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Fri Jun 25 17:40:12 1999
- Orig file:
v2.3.8/linux/arch/mips/jazz/floppy-jazz.c
- Orig date:
Tue Oct 20 13:52:54 1998
diff -u --recursive --new-file v2.3.8/linux/arch/mips/jazz/floppy-jazz.c linux/arch/mips/jazz/floppy-jazz.c
@@ -14,11 +14,11 @@
#include <linux/types.h>
#include <linux/mm.h>
#include <asm/addrspace.h>
-#include <asm/vector.h>
#include <asm/jazz.h>
#include <asm/jazzdma.h>
#include <asm/keyboard.h>
#include <asm/pgtable.h>
+#include <asm/floppy.h>
static unsigned char jazz_fd_inb(unsigned int port)
{
@@ -108,7 +108,7 @@
return order;
}
-extern inline unsigned long jazz_fd_dma_mem_alloc(unsigned long size)
+static unsigned long jazz_fd_dma_mem_alloc(unsigned long size)
{
int order = __get_order(size);
unsigned long mem;
@@ -121,14 +121,14 @@
return mem;
}
-extern inline void jazz_fd_dma_mem_free(unsigned long addr,
+static void jazz_fd_dma_mem_free(unsigned long addr,
unsigned long size)
{
- vdma_free(PHYSADDR(addr));
+ vdma_free(vdma_phys2log(PHYSADDR(addr)));
free_pages(addr, __get_order(size));
}
-static void std_fd_drive_type(unsigned long n)
+static unsigned long jazz_fd_drive_type(unsigned long n)
{
/* XXX This is wrong for machines with ED 2.88mb disk drives like the
Olivetti M700. Anyway, we should suck this from the ARC
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)