#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/log2.h>
#include <linux/module.h>
#include <linux/platform_data/mlxreg.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#define MLXREG_WDT_CLOCK_SCALE …
#define MLXREG_WDT_MAX_TIMEOUT_TYPE1 …
#define MLXREG_WDT_MAX_TIMEOUT_TYPE2 …
#define MLXREG_WDT_MAX_TIMEOUT_TYPE3 …
#define MLXREG_WDT_MIN_TIMEOUT …
#define MLXREG_WDT_OPTIONS_BASE …
struct mlxreg_wdt { … };
static void mlxreg_wdt_check_card_reset(struct mlxreg_wdt *wdt)
{ … }
static int mlxreg_wdt_start(struct watchdog_device *wdd)
{ … }
static int mlxreg_wdt_stop(struct watchdog_device *wdd)
{ … }
static int mlxreg_wdt_ping(struct watchdog_device *wdd)
{ … }
static int mlxreg_wdt_set_timeout(struct watchdog_device *wdd,
unsigned int timeout)
{ … }
static unsigned int mlxreg_wdt_get_timeleft(struct watchdog_device *wdd)
{ … }
static const struct watchdog_ops mlxreg_wdt_ops_type1 = …;
static const struct watchdog_ops mlxreg_wdt_ops_type2 = …;
static const struct watchdog_info mlxreg_wdt_main_info = …;
static const struct watchdog_info mlxreg_wdt_aux_info = …;
static void mlxreg_wdt_config(struct mlxreg_wdt *wdt,
struct mlxreg_core_platform_data *pdata)
{ … }
static int mlxreg_wdt_init_timeout(struct mlxreg_wdt *wdt,
struct mlxreg_core_platform_data *pdata)
{ … }
static int mlxreg_wdt_probe(struct platform_device *pdev)
{ … }
static struct platform_driver mlxreg_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;