#include <linux/acpi.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/watchdog.h>
#define MAX_WDAT_ACTIONS …
struct wdat_instruction { … };
struct wdat_wdt { … };
#define to_wdat_wdt(wdd) …
static bool nowayout = … WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(…) …;
#define WDAT_DEFAULT_TIMEOUT …
static int timeout = …;
module_param(timeout, int, 0);
MODULE_PARM_DESC(…) …;
static int wdat_wdt_read(struct wdat_wdt *wdat,
const struct wdat_instruction *instr, u32 *value)
{ … }
static int wdat_wdt_write(struct wdat_wdt *wdat,
const struct wdat_instruction *instr, u32 value)
{ … }
static int wdat_wdt_run_action(struct wdat_wdt *wdat, unsigned int action,
u32 param, u32 *retval)
{ … }
static int wdat_wdt_enable_reboot(struct wdat_wdt *wdat)
{ … }
static void wdat_wdt_boot_status(struct wdat_wdt *wdat)
{ … }
static void wdat_wdt_set_running(struct wdat_wdt *wdat)
{ … }
static int wdat_wdt_start(struct watchdog_device *wdd)
{ … }
static int wdat_wdt_stop(struct watchdog_device *wdd)
{ … }
static int wdat_wdt_ping(struct watchdog_device *wdd)
{ … }
static int wdat_wdt_set_timeout(struct watchdog_device *wdd,
unsigned int timeout)
{ … }
static unsigned int wdat_wdt_get_timeleft(struct watchdog_device *wdd)
{ … }
static const struct watchdog_info wdat_wdt_info = …;
static struct watchdog_ops wdat_wdt_ops = …;
static int wdat_wdt_probe(struct platform_device *pdev)
{ … }
static int wdat_wdt_suspend_noirq(struct device *dev)
{ … }
static int wdat_wdt_resume_noirq(struct device *dev)
{ … }
static const struct dev_pm_ops wdat_wdt_pm_ops = …;
static struct platform_driver wdat_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;