#include <linux/types.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/watchdog.h>
#include <linux/platform_device.h>
#include <linux/of_address.h>
#define TIMER_A_CONTROL …
#define TIMER_A_COUNT …
#define TIMER_A_ENABLE_COUNT …
#define TIMER_A_ENABLE_WATCHDOG …
struct dc_wdt { … };
static unsigned timeout;
module_param(timeout, uint, 0);
MODULE_PARM_DESC(…) …;
static void dc_wdt_set(struct dc_wdt *wdt, u32 ticks)
{ … }
static int dc_wdt_restart(struct watchdog_device *wdog, unsigned long action,
void *data)
{ … }
static int dc_wdt_start(struct watchdog_device *wdog)
{ … }
static int dc_wdt_stop(struct watchdog_device *wdog)
{ … }
static int dc_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t)
{ … }
static unsigned int dc_wdt_get_timeleft(struct watchdog_device *wdog)
{ … }
static const struct watchdog_ops dc_wdt_ops = …;
static const struct watchdog_info dc_wdt_info = …;
static struct watchdog_device dc_wdt_wdd = …;
static int dc_wdt_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id dc_wdt_of_match[] = …;
MODULE_DEVICE_TABLE(of, dc_wdt_of_match);
static struct platform_driver dc_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;