ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / sparc / mm / nosrmmu.c
1 /* $Id: nosrmmu.c,v 1.5 1999/11/19 04:11:54 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.
4  *
5  * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
6  */
7
8 #include <linux/kernel.h>
9 #include <linux/mm.h>
10 #include <linux/init.h>
11 #include <asm/mbus.h>
12
13 static char shouldnothappen[] __initdata = "SUN4 kernel can only run on SUN4\n";
14
15 enum mbus_module srmmu_modtype;
16
17 int vac_cache_size = 0;
18
19 static void __init should_not_happen(void)
20 {
21         prom_printf(shouldnothappen);
22         prom_halt();
23 }
24
25 void __init srmmu_frob_mem_map(unsigned long start_mem)
26 {
27         should_not_happen();
28 }
29
30 unsigned long __init srmmu_paging_init(unsigned long start_mem, unsigned long end_mem)
31 {
32         should_not_happen();
33         return 0;
34 }
35
36 void __init ld_mmu_srmmu(void)
37 {
38         should_not_happen();
39 }
40
41 void srmmu_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly)
42 {
43 }
44
45 void srmmu_unmapioaddr(unsigned long virt_addr)
46 {
47 }
48
49 void __init srmmu_end_memory(unsigned long memory_size, unsigned long *mem_end_p)
50 {
51         return 0;
52 }
53
54 __u32 iounit_map_dma_init(struct sbus_bus *sbus, int size)
55 {
56         return 0;
57 }
58
59 __u32 iounit_map_dma_page(__u32 vaddr, void *addr, struct sbus_bus *sbus)
60 {
61         return 0;
62 }