summaryrefslogtreecommitdiff
path: root/include/watchdog.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-09-01 09:43:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-09-01 09:43:55 +0200
commit67e0a30e77c0dadfb225eef7e9bdcccdcae4d679 (patch)
treeaa1887ec66dc1e48eaeacca93ac38b55a49a3f99 /include/watchdog.h
parentb7ab2081b1f1f13f0823bb6e8e33884510e105d7 (diff)
parentce36b4a05e275dcc12e74e96ddae99c21faad466 (diff)
downloadbarebox-67e0a30e77c0dadfb225eef7e9bdcccdcae4d679.tar.gz
Merge branch 'for-next/restart'
Diffstat (limited to 'include/watchdog.h')
-rw-r--r--include/watchdog.h8
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 */