Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | #include <asm/sbus.h> |
| 13 | |
| 14 | static char shouldnothappen[] __initdata = "SUN4 kernel can only run on SUN4\n"; |
| 15 | |
| 16 | enum mbus_module srmmu_modtype; |
| 17 | void *srmmu_nocache_pool; |
| 18 | |
| 19 | int vac_cache_size = 0; |
| 20 | |
| 21 | static void __init should_not_happen(void) |
| 22 | { |
| 23 | prom_printf(shouldnothappen); |
| 24 | prom_halt(); |
| 25 | } |
| 26 | |
| 27 | void __init srmmu_frob_mem_map(unsigned long start_mem) |
| 28 | { |
| 29 | should_not_happen(); |
| 30 | } |
| 31 | |
| 32 | unsigned long __init srmmu_paging_init(unsigned long start_mem, unsigned long end_mem) |
| 33 | { |
| 34 | should_not_happen(); |
| 35 | return 0; |
| 36 | } |
| 37 | |
| 38 | void __init ld_mmu_srmmu(void) |
| 39 | { |
| 40 | should_not_happen(); |
| 41 | } |
| 42 | |
| 43 | void srmmu_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | void srmmu_unmapioaddr(unsigned long virt_addr) |
| 48 | { |
| 49 | } |
| 50 | |
| 51 | __u32 iounit_map_dma_init(struct sbus_bus *sbus, int size) |
| 52 | { |
| 53 | return 0; |
| 54 | } |
| 55 | |
| 56 | __u32 iounit_map_dma_page(__u32 vaddr, void *addr, struct sbus_bus *sbus) |
| 57 | { |
| 58 | return 0; |
| 59 | } |