linux/drivers/watchdog/ni903x_wdt.c

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

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

#define NIWD_CONTROL
#define NIWD_COUNTER2
#define NIWD_COUNTER1
#define NIWD_COUNTER0
#define NIWD_SEED2
#define NIWD_SEED1
#define NIWD_SEED0

#define NIWD_IO_SIZE

#define NIWD_CONTROL_MODE
#define NIWD_CONTROL_PROC_RESET
#define NIWD_CONTROL_PET
#define NIWD_CONTROL_RUNNING
#define NIWD_CONTROL_CAPTURECOUNTER
#define NIWD_CONTROL_RESET
#define NIWD_CONTROL_ALARM

#define NIWD_PERIOD_NS
#define NIWD_MIN_TIMEOUT
#define NIWD_MAX_TIMEOUT
#define NIWD_DEFAULT_TIMEOUT

#define NIWD_NAME

struct ni903x_wdt {};

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

static int nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, int, S_IRUGO);
MODULE_PARM_DESC();

static void ni903x_start(struct ni903x_wdt *wdt)
{}

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

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

static int ni903x_wdd_ping(struct watchdog_device *wdd)
{}

static int ni903x_wdd_start(struct watchdog_device *wdd)
{}

static int ni903x_wdd_stop(struct watchdog_device *wdd)
{}

static acpi_status ni903x_resources(struct acpi_resource *res, void *data)
{}

static const struct watchdog_info ni903x_wdd_info =;

static const struct watchdog_ops ni903x_wdd_ops =;

static int ni903x_acpi_add(struct acpi_device *device)
{}

static void ni903x_acpi_remove(struct acpi_device *device)
{}

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

static struct acpi_driver ni903x_acpi_driver =;

module_acpi_driver();

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