File: arch.c

package info (click to toggle)
kernel-source-2.4.14 2.4.14-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 139,160 kB
  • ctags: 428,423
  • sloc: ansic: 2,435,554; asm: 141,119; makefile: 8,258; sh: 3,099; perl: 2,561; yacc: 1,177; cpp: 755; tcl: 577; lex: 352; awk: 251; lisp: 218; sed: 72
file content (46 lines) | stat: -rw-r--r-- 1,144 bytes parent folder | download | duplicates (9)
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
/*
 *  linux/arch/arm/mach-anakin/arch.c
 *
 *  Copyright (C) 2001 Aleph One Ltd. for Acunia N.V.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 *  Changelog:
 *   09-Apr-2001 W/TTC	Created
 */

#include <linux/config.h>
#include <linux/tty.h>
#include <linux/init.h>

#include <asm/setup.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>

#ifndef CONFIG_BLK_DEV_RAM_SIZE
#define CONFIG_BLK_DEV_RAM_SIZE	4096
#endif

extern void anakin_map_io(void);
extern void genarch_init_irq(void);

static void __init
fixup_anakin(struct machine_desc *desc, struct param_struct *unused,
             char **cmdline, struct meminfo *mi)
{
	ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
	setup_ramdisk(1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE);
	setup_initrd(0xc0800000, 4 * 1024 * 1024);
}


MACHINE_START(ANAKIN, "Anakin")
	MAINTAINER("Wookey/Tak-Shing Chan")
	BOOT_MEM(0x20000000, 0x40000000, 0xe0000000)
	VIDEO(0x80000000, 0x8002db40)
	FIXUP(fixup_anakin)
	MAPIO(anakin_map_io)
	INITIRQ(genarch_init_irq)
MACHINE_END