#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/mod_devicetable.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#define DRV_NAME …
#define MESON_WDT_TC …
#define MESON_WDT_DC_RESET …
#define MESON_WDT_RESET …
#define MESON_WDT_TIMEOUT …
#define MESON_WDT_MIN_TIMEOUT …
#define MESON_SEC_TO_TC(s, c) …
static bool nowayout = … WATCHDOG_NOWAYOUT;
static unsigned int timeout;
struct meson_wdt_data { … };
static struct meson_wdt_data meson6_wdt_data = …;
static struct meson_wdt_data meson8b_wdt_data = …;
struct meson_wdt_dev { … };
static int meson_wdt_restart(struct watchdog_device *wdt_dev,
unsigned long action, void *data)
{ … }
static int meson_wdt_ping(struct watchdog_device *wdt_dev)
{ … }
static void meson_wdt_change_timeout(struct watchdog_device *wdt_dev,
unsigned int timeout)
{ … }
static int meson_wdt_set_timeout(struct watchdog_device *wdt_dev,
unsigned int timeout)
{ … }
static int meson_wdt_stop(struct watchdog_device *wdt_dev)
{ … }
static int meson_wdt_start(struct watchdog_device *wdt_dev)
{ … }
static const struct watchdog_info meson_wdt_info = …;
static const struct watchdog_ops meson_wdt_ops = …;
static const struct of_device_id meson_wdt_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, meson_wdt_dt_ids);
static int meson_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver meson_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_DESCRIPTION(…) …;