diff options
Diffstat (limited to 'include/watchdog.h')
-rw-r--r-- | include/watchdog.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/watchdog.h b/include/watchdog.h index 7a98ae4434..6fd896734b 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -15,6 +15,10 @@ struct watchdog { int (*set_timeout)(struct watchdog *, unsigned); + const char *name; + struct device_d *dev; + unsigned int priority; + struct list_head list; }; #ifdef CONFIG_WATCHDOG @@ -38,4 +42,8 @@ static inline int watchdog_set_timeout(unsigned t) } #endif +#define WATCHDOG_DEFAULT_PRIORITY 100 + +unsigned int of_get_watchdog_priority(struct device_node *node); + #endif /* INCLUDE_WATCHDOG_H */ |