summaryrefslogtreecommitdiffstats
path: root/hw/watchdog.c
diff options
context:
space:
mode:
authorMarkus Armbruster2009-08-21 10:31:32 +0200
committerAnthony Liguori2009-08-28 03:30:23 +0200
commit88b3be201acf64e0bd19782bebd533901c951c87 (patch)
tree84d657a76abe808b29afa4d4579243bba5a091da /hw/watchdog.c
parentvirtio-blk: handle NULL returns from bdrv_aio_{read, write} (diff)
downloadqemu-88b3be201acf64e0bd19782bebd533901c951c87.tar.gz
qemu-88b3be201acf64e0bd19782bebd533901c951c87.tar.xz
qemu-88b3be201acf64e0bd19782bebd533901c951c87.zip
Move watchdog, watchdog_action, give them internal linkage
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/watchdog.c')
-rw-r--r--hw/watchdog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/watchdog.c b/hw/watchdog.c
index fde2f1b3d4..359c3185e3 100644
--- a/hw/watchdog.c
+++ b/hw/watchdog.c
@@ -24,6 +24,16 @@
#include "sysemu.h"
#include "hw/watchdog.h"
+/* Possible values for action parameter. */
+#define WDT_RESET 1 /* Hard reset. */
+#define WDT_SHUTDOWN 2 /* Shutdown. */
+#define WDT_POWEROFF 3 /* Quit. */
+#define WDT_PAUSE 4 /* Pause. */
+#define WDT_DEBUG 5 /* Prints a message and continues running. */
+#define WDT_NONE 6 /* Do nothing. */
+
+static WatchdogTimerModel *watchdog;
+static int watchdog_action = WDT_RESET;
static LIST_HEAD(watchdog_list, WatchdogTimerModel) watchdog_list;
void watchdog_add_model(WatchdogTimerModel *model)