* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / arch / sparc / mm / nosrmmu.c
blobbae3bd140c609d5637b8c5c3fd4067a0ea4d58da
1 /* $Id: nosrmmu.c,v 1.3 1999/08/31 06:54:35 davem Exp $
2 * nosrmmu.c: This file is a bunch of dummies for sun4 compiles,
3 * so that it does not need srmmu and avoid ifdefs.
5 * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
6 */
8 #include <linux/kernel.h>
9 #include <linux/mm.h>
10 #include <linux/init.h>
11 #include <asm/mbus.h>
13 static char shouldnothappen[] __initdata = "SUN4 kernel can only run on SUN4\n";
15 enum mbus_module srmmu_modtype;
17 static void __init should_not_happen(void)
19 prom_printf(shouldnothappen);
20 prom_halt();
23 void __init srmmu_frob_mem_map(unsigned long start_mem)
25 should_not_happen();
28 unsigned long __init srmmu_paging_init(unsigned long start_mem, unsigned long end_mem)
30 should_not_happen();
31 return 0;
34 void __init ld_mmu_srmmu(void)
36 should_not_happen();
39 void srmmu_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly)
43 void srmmu_unmapioaddr(unsigned long virt_addr)
47 void __init srmmu_end_memory(unsigned long memory_size, unsigned long *mem_end_p)
49 return 0;
52 __u32 iounit_map_dma_init(struct linux_sbus *sbus, int size)
54 return 0;
57 __u32 iounit_map_dma_page(__u32 vaddr, void *addr, struct linux_sbus *sbus)
59 return 0;