blob: b87b2bdeb07f3e5b242169e3894d4261ab4890de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* $Id: nosrmmu.c,v 1.2 1999/03/30 10:17:39 jj Exp $
* nosrmmu.c: This file is a bunch of dummies for sun4 compiles,
* so that it does not need srmmu and avoid ifdefs.
*
* Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <asm/mbus.h>
static char shouldnothappen[] __initdata = "SUN4 kernel can only run on SUN4\n";
enum mbus_module srmmu_modtype;
__initfunc(static void should_not_happen(void))
{
prom_printf(shouldnothappen);
prom_halt();
}
__initfunc(void srmmu_frob_mem_map(unsigned long start_mem))
{
should_not_happen();
}
__initfunc(unsigned long srmmu_paging_init(unsigned long start_mem, unsigned long end_mem))
{
should_not_happen();
return 0;
}
__initfunc(void ld_mmu_srmmu(void))
{
should_not_happen();
}
void srmmu_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly)
{
}
void srmmu_unmapioaddr(unsigned long virt_addr)
{
}
__initfunc(void srmmu_end_memory(unsigned long memory_size, unsigned long *mem_end_p))
{
return 0;
}
__u32 iounit_map_dma_init(struct linux_sbus *sbus, int size)
{
return 0;
}
__u32 iounit_map_dma_page(__u32 vaddr, void *addr, struct linux_sbus *sbus)
{
return 0;
}
|