aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/watchdog.h
blob: e786b9b5ab5da4aab0a0e206d05b2bad341d31ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/******************************************************************************
 * watchdog.h
 *
 * Common watchdog code
 */

#ifndef __XEN_WATCHDOG_H__
#define __XEN_WATCHDOG_H__

#include <xen/types.h>

#ifdef CONFIG_WATCHDOG

/* Try to set up a watchdog. */
int watchdog_setup(void);

/* Enable the watchdog. */
void watchdog_enable(void);

/* Disable the watchdog. */
void watchdog_disable(void);

/* Is the watchdog currently enabled. */
bool_t watchdog_enabled(void);

#else

#define watchdog_setup() ((void)0)
#define watchdog_enable() ((void)0)
#define watchdog_disable() ((void)0)
#define watchdog_enabled() ((void)0)

#endif

#endif /* __XEN_WATCHDOG_H__ */