#include <linux/clk.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/platform_data/bcm7038_wdt.h>
#include <linux/pm.h>
#include <linux/watchdog.h>
#define WDT_START_1 …
#define WDT_START_2 …
#define WDT_STOP_1 …
#define WDT_STOP_2 …
#define WDT_TIMEOUT_REG …
#define WDT_CMD_REG …
#define WDT_MIN_TIMEOUT …
#define WDT_DEFAULT_TIMEOUT …
#define WDT_DEFAULT_RATE …
struct bcm7038_watchdog { … };
static bool nowayout = … WATCHDOG_NOWAYOUT;
static inline void bcm7038_wdt_write(u32 value, void __iomem *addr)
{ … }
static inline u32 bcm7038_wdt_read(void __iomem *addr)
{ … }
static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog)
{ … }
static int bcm7038_wdt_ping(struct watchdog_device *wdog)
{ … }
static int bcm7038_wdt_start(struct watchdog_device *wdog)
{ … }
static int bcm7038_wdt_stop(struct watchdog_device *wdog)
{ … }
static int bcm7038_wdt_set_timeout(struct watchdog_device *wdog,
unsigned int t)
{ … }
static unsigned int bcm7038_wdt_get_timeleft(struct watchdog_device *wdog)
{ … }
static const struct watchdog_info bcm7038_wdt_info = …;
static const struct watchdog_ops bcm7038_wdt_ops = …;
static int bcm7038_wdt_probe(struct platform_device *pdev)
{ … }
static int bcm7038_wdt_suspend(struct device *dev)
{ … }
static int bcm7038_wdt_resume(struct device *dev)
{ … }
static DEFINE_SIMPLE_DEV_PM_OPS(bcm7038_wdt_pm_ops,
bcm7038_wdt_suspend, bcm7038_wdt_resume);
static const struct of_device_id bcm7038_wdt_match[] = …;
MODULE_DEVICE_TABLE(of, bcm7038_wdt_match);
static const struct platform_device_id bcm7038_wdt_devtype[] = …;
MODULE_DEVICE_TABLE(platform, bcm7038_wdt_devtype);
static struct platform_driver bcm7038_wdt_driver = …;
module_platform_driver(…) …;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;