OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [ia64/] [hp/] [sim/] [hpsim_setup.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * Platform dependent support for HP simulator.
3
 *
4
 * Copyright (C) 1998, 1999 Hewlett-Packard Co
5
 * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com>
6
 * Copyright (C) 1999 Vijay Chander <vijay@engr.sgi.com>
7
 */
8
#include <linux/init.h>
9
#include <linux/kernel.h>
10
#include <linux/param.h>
11
#include <linux/string.h>
12
#include <linux/types.h>
13
#include <linux/kdev_t.h>
14
#include <linux/console.h>
15
 
16
#include <asm/delay.h>
17
#include <asm/irq.h>
18
#include <asm/pal.h>
19
#include <asm/machvec.h>
20
#include <asm/pgtable.h>
21
#include <asm/sal.h>
22
 
23
#include "hpsim_ssc.h"
24
 
25
extern struct console hpsim_cons;
26
 
27
/*
28
 * Simulator system call.
29
 */
30
asm (".text\n"
31
     ".align 32\n"
32
     ".global ia64_ssc\n"
33
     ".proc ia64_ssc\n"
34
     "ia64_ssc:\n"
35
     "mov r15=r36\n"
36
     "break 0x80001\n"
37
     "br.ret.sptk.many rp\n"
38
     ".endp\n");
39
 
40
void
41
ia64_ssc_connect_irq (long intr, long irq)
42
{
43
        ia64_ssc(intr, irq, 0, 0, SSC_CONNECT_INTERRUPT);
44
}
45
 
46
void
47
ia64_ctl_trace (long on)
48
{
49
        ia64_ssc(on, 0, 0, 0, SSC_CTL_TRACE);
50
}
51
 
52
void __init
53
hpsim_setup (char **cmdline_p)
54
{
55
        ROOT_DEV = to_kdev_t(0x0801);           /* default to first SCSI drive */
56
 
57
        register_console (&hpsim_cons);
58
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.