Merge with Linux 2.5.73.
[linux-2.6/linux-mips.git] / arch / ia64 / hp / sim / hpsim_setup.c
blob64ff3a9c6e3c88d278899079b332c10f863be8ef
1 /*
2 * Platform dependent support for HP simulator.
4 * Copyright (C) 1998, 1999, 2002 Hewlett-Packard Co
5 * David Mosberger-Tang <davidm@hpl.hp.com>
6 * Copyright (C) 1999 Vijay Chander <vijay@engr.sgi.com>
7 */
8 #include <linux/config.h>
9 #include <linux/console.h>
10 #include <linux/init.h>
11 #include <linux/kdev_t.h>
12 #include <linux/kernel.h>
13 #include <linux/major.h>
14 #include <linux/param.h>
15 #include <linux/root_dev.h>
16 #include <linux/string.h>
17 #include <linux/types.h>
19 #include <asm/delay.h>
20 #include <asm/irq.h>
21 #include <asm/pal.h>
22 #include <asm/machvec.h>
23 #include <asm/pgtable.h>
24 #include <asm/sal.h>
26 #include "hpsim_ssc.h"
29 * Simulator system call.
31 asm (".text\n"
32 ".align 32\n"
33 ".global ia64_ssc\n"
34 ".proc ia64_ssc\n"
35 "ia64_ssc:\n"
36 "mov r15=r36\n"
37 "break 0x80001\n"
38 "br.ret.sptk.many rp\n"
39 ".endp\n");
41 void
42 ia64_ssc_connect_irq (long intr, long irq)
44 ia64_ssc(intr, irq, 0, 0, SSC_CONNECT_INTERRUPT);
47 void
48 ia64_ctl_trace (long on)
50 ia64_ssc(on, 0, 0, 0, SSC_CTL_TRACE);
53 void __init
54 hpsim_setup (char **cmdline_p)
56 ROOT_DEV = Root_SDA1; /* default to first SCSI drive */
58 #ifdef CONFIG_HP_SIMSERIAL_CONSOLE
60 extern struct console hpsim_cons;
61 if (ia64_platform_is("hpsim"))
62 register_console(&hpsim_cons);
64 #endif