Revision 88b3be20

b/hw/watchdog.c
24 24
#include "sysemu.h"
25 25
#include "hw/watchdog.h"
26 26

  
27
/* Possible values for action parameter. */
28
#define WDT_RESET        1	/* Hard reset. */
29
#define WDT_SHUTDOWN     2	/* Shutdown. */
30
#define WDT_POWEROFF     3	/* Quit. */
31
#define WDT_PAUSE        4	/* Pause. */
32
#define WDT_DEBUG        5	/* Prints a message and continues running. */
33
#define WDT_NONE         6	/* Do nothing. */
34

  
35
static WatchdogTimerModel *watchdog;
36
static int watchdog_action = WDT_RESET;
27 37
static LIST_HEAD(watchdog_list, WatchdogTimerModel) watchdog_list;
28 38

  
29 39
void watchdog_add_model(WatchdogTimerModel *model)
b/hw/watchdog.h
25 25
extern void wdt_i6300esb_init(void);
26 26
extern void wdt_ib700_init(void);
27 27

  
28
/* Possible values for action parameter. */
29
#define WDT_RESET        1	/* Hard reset. */
30
#define WDT_SHUTDOWN     2	/* Shutdown. */
31
#define WDT_POWEROFF     3	/* Quit. */
32
#define WDT_PAUSE        4	/* Pause. */
33
#define WDT_DEBUG        5	/* Prints a message and continues running. */
34
#define WDT_NONE         6	/* Do nothing. */
35 28

  
36 29
struct WatchdogTimerModel {
37 30
    LIST_ENTRY(WatchdogTimerModel) entry;
......
48 41
};
49 42
typedef struct WatchdogTimerModel WatchdogTimerModel;
50 43

  
51
/* in vl.c */
52
extern WatchdogTimerModel *watchdog;
53
extern int watchdog_action;
54

  
55 44
/* in hw/watchdog.c */
56 45
extern int select_watchdog(const char *p);
57 46
extern int select_watchdog_action(const char *action);
b/vl.c
233 233
#ifndef _WIN32
234 234
int daemonize = 0;
235 235
#endif
236
WatchdogTimerModel *watchdog = NULL;
237
int watchdog_action = WDT_RESET;
238 236
const char *option_rom[MAX_OPTION_ROMS];
239 237
int nb_option_roms;
240 238
int semihosting_enabled = 0;

Also available in: Unified diff