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