linux/drivers/watchdog/ie6xx_wdt.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *      Intel Atom E6xx Watchdog driver
 *
 *      Copyright (C) 2011 Alexander Stein
 *                <[email protected]>
 */

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#include <linux/seq_file.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/spinlock.h>

#define DRIVER_NAME

#define PV1
#define PV2

#define RR0
#define RR1
#define WDT_RELOAD
#define WDT_TOUT

#define WDTCR
#define WDT_PRE_SEL
#define WDT_RESET_SEL
#define WDT_RESET_EN
#define WDT_TOUT_EN

#define DCR

#define WDTLR
#define WDT_LOCK
#define WDT_ENABLE
#define WDT_TOUT_CNF

#define MIN_TIME
#define MAX_TIME
#define DEFAULT_TIME

static unsigned int timeout =;
module_param(timeout, uint, 0);
MODULE_PARM_DESC();

static bool nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC();

static u8 resetmode =;
module_param(resetmode, byte, 0);
MODULE_PARM_DESC();

static struct {} ie6xx_wdt_data;

/*
 * This is needed to write to preload and reload registers
 * struct ie6xx_wdt_data.unlock_sequence must be used
 * to prevent sequence interrupts
 */
static void ie6xx_wdt_unlock_registers(void)
{}

static int ie6xx_wdt_ping(struct watchdog_device *wdd)
{}

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

static int ie6xx_wdt_start(struct watchdog_device *wdd)
{}

static int ie6xx_wdt_stop(struct watchdog_device *wdd)
{}

static const struct watchdog_info ie6xx_wdt_info =;

static const struct watchdog_ops ie6xx_wdt_ops =;

static struct watchdog_device ie6xx_wdt_dev =;

#ifdef CONFIG_DEBUG_FS

static int ie6xx_wdt_show(struct seq_file *s, void *unused)
{}

DEFINE_SHOW_ATTRIBUTE();

static void ie6xx_wdt_debugfs_init(void)
{}

static void ie6xx_wdt_debugfs_exit(void)
{}

#else
static void ie6xx_wdt_debugfs_init(void)
{
}

static void ie6xx_wdt_debugfs_exit(void)
{
}
#endif

static int ie6xx_wdt_probe(struct platform_device *pdev)
{}

static void ie6xx_wdt_remove(struct platform_device *pdev)
{}

static struct platform_driver ie6xx_wdt_driver =;

static int __init ie6xx_wdt_init(void)
{}

static void __exit ie6xx_wdt_exit(void)
{}

late_initcall(ie6xx_wdt_init);
module_exit(ie6xx_wdt_exit);

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