linux/drivers/watchdog/tqmx86_wdt.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Watchdog driver for TQMx86 PLD.
 *
 * The watchdog supports power of 2 timeouts from 1 to 4096sec.
 * Once started, it cannot be stopped.
 *
 * Based on the vendor code written by Vadim V.Vlasov
 * <[email protected]>
 */

#include <linux/io.h>
#include <linux/log2.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/timer.h>
#include <linux/watchdog.h>

/* default timeout (secs) */
#define WDT_TIMEOUT

static unsigned int timeout;
module_param(timeout, uint, 0);
MODULE_PARM_DESC();
struct tqmx86_wdt {};

#define TQMX86_WDCFG
#define TQMX86_WDCS

static int tqmx86_wdt_start(struct watchdog_device *wdd)
{}

static int tqmx86_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t)
{}

static const struct watchdog_info tqmx86_wdt_info =;

static const struct watchdog_ops tqmx86_wdt_ops =;

static int tqmx86_wdt_probe(struct platform_device *pdev)
{}

static struct platform_driver tqmx86_wdt_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_ALIAS();
MODULE_LICENSE();