#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#define WDT_MAX_TIMEOUT …
#define WDT_MIN_TIMEOUT …
#define WDT_TIMEOUT_MASK …
#define WDT_CTRL_RELOAD …
#define WDT_MODE_EN …
#define DRV_NAME …
#define DRV_VERSION …
static bool nowayout = … WATCHDOG_NOWAYOUT;
static unsigned int timeout;
struct sunxi_wdt_reg { … };
struct sunxi_wdt_dev { … };
static const int wdt_timeout_map[] = …;
static int sunxi_wdt_restart(struct watchdog_device *wdt_dev,
unsigned long action, void *data)
{ … }
static int sunxi_wdt_ping(struct watchdog_device *wdt_dev)
{ … }
static int sunxi_wdt_set_timeout(struct watchdog_device *wdt_dev,
unsigned int timeout)
{ … }
static int sunxi_wdt_stop(struct watchdog_device *wdt_dev)
{ … }
static int sunxi_wdt_start(struct watchdog_device *wdt_dev)
{ … }
static const struct watchdog_info sunxi_wdt_info = …;
static const struct watchdog_ops sunxi_wdt_ops = …;
static const struct sunxi_wdt_reg sun4i_wdt_reg = …;
static const struct sunxi_wdt_reg sun6i_wdt_reg = …;
static const struct sunxi_wdt_reg sun20i_wdt_reg = …;
static const struct of_device_id sunxi_wdt_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids);
static int sunxi_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver sunxi_wdt_driver = …;
module_platform_driver(…) …;
module_param(timeout, uint, 0);
MODULE_PARM_DESC(…) …;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_VERSION(…);