mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
87b245db05
commit
88b3be201a
3 changed files with 10 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue