linux/drivers/watchdog/nic7018_wdt.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2016 National Instruments Corp.
 */

#include <linux/acpi.h>
#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>

#define LOCK
#define UNLOCK

#define WDT_CTRL_RESET_EN
#define WDT_RELOAD_PORT_EN

#define WDT_CTRL
#define WDT_RELOAD_CTRL
#define WDT_PRESET_PRESCALE
#define WDT_REG_LOCK
#define WDT_COUNT
#define WDT_RELOAD_PORT

#define WDT_MIN_TIMEOUT
#define WDT_MAX_TIMEOUT
#define WDT_DEFAULT_TIMEOUT

#define WDT_MAX_COUNTER

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();

struct nic7018_wdt {};

struct nic7018_config {};

static const struct nic7018_config nic7018_configs[] =;

static inline u32 nic7018_timeout(u32 period, u8 counter)
{}

static const struct nic7018_config *nic7018_get_config(u32 timeout,
						       u8 *counter)
{}

static int nic7018_set_timeout(struct watchdog_device *wdd,
			       unsigned int timeout)
{}

static int nic7018_start(struct watchdog_device *wdd)
{}

static int nic7018_stop(struct watchdog_device *wdd)
{}

static int nic7018_ping(struct watchdog_device *wdd)
{}

static unsigned int nic7018_get_timeleft(struct watchdog_device *wdd)
{}

static const struct watchdog_info nic7018_wdd_info =;

static const struct watchdog_ops nic7018_wdd_ops =;

static int nic7018_probe(struct platform_device *pdev)
{}

static void nic7018_remove(struct platform_device *pdev)
{}

static const struct acpi_device_id nic7018_device_ids[] =;
MODULE_DEVICE_TABLE(acpi, nic7018_device_ids);

static struct platform_driver watchdog_driver =;

module_platform_driver();

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