#define pr_fmt(fmt) …
#include <linux/bcm47xx_wdt.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#define DRV_NAME …
#define WDT_DEFAULT_TIME …
#define WDT_SOFTTIMER_MAX …
#define WDT_SOFTTIMER_THRESHOLD …
static int timeout = …;
static bool nowayout = … WATCHDOG_NOWAYOUT;
module_param(timeout, int, 0);
MODULE_PARM_DESC(…) …;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd)
{ … }
static int bcm47xx_wdt_hard_keepalive(struct watchdog_device *wdd)
{ … }
static int bcm47xx_wdt_hard_start(struct watchdog_device *wdd)
{ … }
static int bcm47xx_wdt_hard_stop(struct watchdog_device *wdd)
{ … }
static int bcm47xx_wdt_hard_set_timeout(struct watchdog_device *wdd,
unsigned int new_time)
{ … }
static int bcm47xx_wdt_restart(struct watchdog_device *wdd,
unsigned long action, void *data)
{ … }
static const struct watchdog_ops bcm47xx_wdt_hard_ops = …;
static void bcm47xx_wdt_soft_timer_tick(struct timer_list *t)
{ … }
static int bcm47xx_wdt_soft_keepalive(struct watchdog_device *wdd)
{ … }
static int bcm47xx_wdt_soft_start(struct watchdog_device *wdd)
{ … }
static int bcm47xx_wdt_soft_stop(struct watchdog_device *wdd)
{ … }
static int bcm47xx_wdt_soft_set_timeout(struct watchdog_device *wdd,
unsigned int new_time)
{ … }
static const struct watchdog_info bcm47xx_wdt_info = …;
static const struct watchdog_ops bcm47xx_wdt_soft_ops = …;
static int bcm47xx_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver bcm47xx_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;