patch-1.3.48 linux/arch/mips/kernel/tynedma.c
Next file: linux/arch/mips/ld.script
Previous file: linux/arch/mips/kernel/tyne.S
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Jan 1 02:00:00 1970
- Orig file:
v1.3.47/linux/arch/mips/kernel/tynedma.c
- Orig date:
Wed Jan 25 08:54:22 1995
diff -u --recursive --new-file v1.3.47/linux/arch/mips/kernel/tynedma.c linux/arch/mips/kernel/tynedma.c
@@ -1,35 +0,0 @@
-/*
- * Tiny Tyne DMA buffer allocator
- *
- * Copyright (C) 1995 Ralf Baechle
- */
-#include <linux/autoconf.h>
-#include <linux/types.h>
-#include <asm/bootinfo.h>
-
-#ifdef CONFIG_DESKSTATION_TYNE
-
-static unsigned long allocated;
-
-/*
- * Not very sophisticated, but should suffice for now...
- */
-unsigned long deskstation_tyne_dma_alloc(size_t size)
-{
- unsigned long ret = allocated;
- allocated += size;
- if (allocated > boot_info.dma_cache_size)
- ret = -1;
- return ret;
-}
-
-void deskstation_tyne_dma_init(void)
-{
- if (boot_info.machtype != MACH_DESKSTATION_TYNE)
- return;
- allocated = 0;
- printk ("Deskstation Tyne DMA (%luk) buffer initialized.\n",
- boot_info.dma_cache_size >> 10);
-}
-
-#endif /* CONFIG_DESKSTATION_TYNE */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this