#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/watchdog.h>
#include <linux/io.h>
#define TS72XX_WDT_DEFAULT_TIMEOUT …
static int timeout;
module_param(timeout, int, 0);
MODULE_PARM_DESC(…) …;
static bool nowayout = … WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
#define TS72XX_WDT_CTRL_DISABLE …
#define TS72XX_WDT_CTRL_250MS …
#define TS72XX_WDT_CTRL_500MS …
#define TS72XX_WDT_CTRL_1SEC …
#define TS72XX_WDT_CTRL_RESERVED …
#define TS72XX_WDT_CTRL_2SEC …
#define TS72XX_WDT_CTRL_4SEC …
#define TS72XX_WDT_CTRL_8SEC …
#define TS72XX_WDT_FEED_VAL …
struct ts72xx_wdt_priv { … };
static int ts72xx_wdt_start(struct watchdog_device *wdd)
{ … }
static int ts72xx_wdt_stop(struct watchdog_device *wdd)
{ … }
static int ts72xx_wdt_ping(struct watchdog_device *wdd)
{ … }
static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to)
{ … }
static const struct watchdog_info ts72xx_wdt_ident = …;
static const struct watchdog_ops ts72xx_wdt_ops = …;
static int ts72xx_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver ts72xx_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;