summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-04-06 20:55:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-06 20:55:10 +0200
commit19df8369b1905f36f23c1a21bac264fb5d5d3261 (patch)
tree6034df8df44005d505f50dbec82ab8bec64463d8 /include
parentf19eb2551cbc657e7b57d203083b8c4224a020b5 (diff)
parent098e703b4590d7f54fde60ae0309604947998c6e (diff)
downloadbarebox-19df8369b1905f36f23c1a21bac264fb5d5d3261.tar.gz
barebox-19df8369b1905f36f23c1a21bac264fb5d5d3261.tar.xz
Merge branch 'for-next/watchdog'
Diffstat (limited to 'include')
-rw-r--r--include/watchdog.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/watchdog.h b/include/watchdog.h
index 3e8a487a4d..0db4263a31 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -13,11 +13,18 @@
#ifndef INCLUDE_WATCHDOG_H
# define INCLUDE_WATCHDOG_H
+#include <poller.h>
+
struct watchdog {
int (*set_timeout)(struct watchdog *, unsigned);
const char *name;
- struct device_d *dev;
+ struct device_d *hwdev;
+ struct device_d dev;
unsigned int priority;
+ unsigned int timeout_max;
+ unsigned int timeout_cur;
+ unsigned int poller_enable;
+ struct poller_async poller;
struct list_head list;
};