linux-old/arch/ia64/hp/sim/hpsim_setup.c
<<
>>
Prefs
   1/*
   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
  25extern struct console hpsim_cons;
  26
  27/*
  28 * Simulator system call.
  29 */
  30asm (".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
  40void
  41ia64_ssc_connect_irq (long intr, long irq)
  42{
  43        ia64_ssc(intr, irq, 0, 0, SSC_CONNECT_INTERRUPT);
  44}
  45
  46void
  47ia64_ctl_trace (long on)
  48{
  49        ia64_ssc(on, 0, 0, 0, SSC_CTL_TRACE);
  50}
  51
  52void __init
  53hpsim_setup (char **cmdline_p)
  54{
  55        ROOT_DEV = to_kdev_t(0x0801);           /* default to first SCSI drive */
  56
  57        register_console (&hpsim_cons);
  58}
  59
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.