add crime_reboot()
This commit is contained in:
parent
2d476100ad
commit
c65071e69f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crime.c,v 1.25 2007/05/17 14:51:28 yamt Exp $ */
|
||||
/* $NetBSD: crime.c,v 1.26 2007/09/26 05:48:37 macallan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Christopher SEKIYA
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: crime.c,v 1.25 2007/05/17 14:51:28 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: crime.c,v 1.26 2007/09/26 05:48:37 macallan Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -300,3 +300,12 @@ crime_watchdog_disable(void)
|
||||
& ~CRIME_CONTROL_DOG_ENABLE;
|
||||
bus_space_write_8(crm_iot, crm_ioh, CRIME_CONTROL, reg);
|
||||
}
|
||||
|
||||
void
|
||||
crime_reboot()
|
||||
{
|
||||
|
||||
bus_space_write_8(crm_iot, crm_ioh, CRIME_CONTROL,
|
||||
CRIME_CONTROL_HARD_RESET);
|
||||
while(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crimevar.h,v 1.5 2005/12/11 12:18:52 christos Exp $ */
|
||||
/* $NetBSD: crimevar.h,v 1.6 2007/09/26 05:48:37 macallan Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003 Christopher SEKIYA
|
||||
@ -40,3 +40,4 @@ struct crime_softc {
|
||||
|
||||
void crime_intr_mask(unsigned int);
|
||||
void crime_intr_unmask(unsigned int);
|
||||
void crime_reboot(void);
|
||||
|
Loading…
Reference in New Issue
Block a user