aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/watchdog.h
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2011-07-22 15:00:16 -0400
committerWim Van Sebroeck <wim@iguana.be>2011-07-28 04:01:18 -0400
commit3f43f68e29f1dcb853d70280c7412fc0ef9a0da6 (patch)
tree7954a552341a37163d0ebe2c975bfe002e2abbd3 /include/linux/watchdog.h
parent78d88fc01202b088573c962e2885556a5e99bf74 (diff)
watchdog: WatchDog Timer Driver Core - Add minimum and max timeout
Add min_timeout (minimum timeout) and max_timeout values so that the framework can check if the new timeout value is between the minimum and maximum timeout values. If both values are 0, then the framework will leave the check for the watchdog device driver itself. Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'include/linux/watchdog.h')
-rw-r--r--include/linux/watchdog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h
index 325d90b6641b..111843f88b2a 100644
--- a/include/linux/watchdog.h
+++ b/include/linux/watchdog.h
@@ -95,6 +95,8 @@ struct watchdog_ops {
95 * @ops: Pointer to the list of watchdog operations. 95 * @ops: Pointer to the list of watchdog operations.
96 * @bootstatus: Status of the watchdog device at boot. 96 * @bootstatus: Status of the watchdog device at boot.
97 * @timeout: The watchdog devices timeout value. 97 * @timeout: The watchdog devices timeout value.
98 * @min_timeout:The watchdog devices minimum timeout value.
99 * @max_timeout:The watchdog devices maximum timeout value.
98 * @driver-data:Pointer to the drivers private data. 100 * @driver-data:Pointer to the drivers private data.
99 * @status: Field that contains the devices internal status bits. 101 * @status: Field that contains the devices internal status bits.
100 * 102 *
@@ -109,6 +111,8 @@ struct watchdog_device {
109 const struct watchdog_ops *ops; 111 const struct watchdog_ops *ops;
110 unsigned int bootstatus; 112 unsigned int bootstatus;
111 unsigned int timeout; 113 unsigned int timeout;
114 unsigned int min_timeout;
115 unsigned int max_timeout;
112 void *driver_data; 116 void *driver_data;
113 unsigned long status; 117 unsigned long status;
114/* Bit numbers for status flags */ 118/* Bit numbers for status flags */