AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070612164653.4bc87383@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<tim.gardner@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Tue, 12 Jun 2007 16:48:16 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: Tim Gardner <tim.gardner@onstor.com>
Subject: replacement reset.c
Message-ID: <20070612164816.1dff3de8@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="MP_s0HUfvZdVUsQ4vZ=X2OsZZ."

--MP_s0HUfvZdVUsQ4vZ=X2OsZZ.
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Tim,

Attached is the replacement reset.c file.

It goes in 

linux-mips-2.6/arch/mips/onstor/bobcat/reset.c


--MP_s0HUfvZdVUsQ4vZ=X2OsZZ.
Content-Type: text/x-csrc; name=reset.c
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=reset.c

/*
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 *
 * Copyright (C) 1997, 2001 Ralf Baechle
 * Copyright 2001 MontaVista Software Inc.
 * Author: jsun@mvista.com or jsun@junsun.net
 *
 * Copyright (C) 2002 Momentum Computer Inc.
 * Author: Matthew Dharm <mdharm@momenco.com>
 *
 * Louis Hamilton, Red Hat, Inc.
 * hamilton@redhat.com  [MIPS64 modifications]
 *
 * Copyright (C) 2007 Onstor Inc.
 * Andrew Sharp (andy.sharp@onstor.com)
 */
#include <linux/sched.h>
#include <linux/mm.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/processor.h>
#include <asm/reboot.h>
#include <asm/system.h>
#include <linux/delay.h>

void onstor_bobcat_restart(char *command)
{
	extern void ds1511_start_wdtimer(int, int);

	ds1511_start_wdtimer(1, 1);
	while (1) {
		cpu_wait();
	}
}

void onstor_bobcat_halt(void)
{
	printk(KERN_NOTICE "\n** You can safely turn off the power\n");
	while (1) {
		cpu_wait();
	}
}

void onstor_bobcat_power_off(void)
{
	onstor_bobcat_halt();
}

--MP_s0HUfvZdVUsQ4vZ=X2OsZZ.--
