linux/drivers/watchdog/geodewdt.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* Watchdog timer for machines with the CS5535/CS5536 companion chip
 *
 * Copyright (C) 2006-2007, Advanced Micro Devices, Inc.
 * Copyright (C) 2009  Andres Salomon <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <linux/uaccess.h>

#include <linux/cs5535.h>

#define GEODEWDT_HZ
#define GEODEWDT_SCALE
#define GEODEWDT_MAX_SECONDS

#define WDT_FLAGS_OPEN
#define WDT_FLAGS_ORPHAN

#define DRV_NAME
#define WATCHDOG_NAME
#define WATCHDOG_TIMEOUT

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

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

static struct platform_device *geodewdt_platform_device;
static unsigned long wdt_flags;
static struct cs5535_mfgpt_timer *wdt_timer;
static int safe_close;

static void geodewdt_ping(void)
{}

static void geodewdt_disable(void)
{}

static int geodewdt_set_heartbeat(int val)
{}

static int geodewdt_open(struct inode *inode, struct file *file)
{}

static int geodewdt_release(struct inode *inode, struct file *file)
{}

static ssize_t geodewdt_write(struct file *file, const char __user *data,
				size_t len, loff_t *ppos)
{}

static long geodewdt_ioctl(struct file *file, unsigned int cmd,
				unsigned long arg)
{}

static const struct file_operations geodewdt_fops =;

static struct miscdevice geodewdt_miscdev =;

static int __init geodewdt_probe(struct platform_device *dev)
{}

static void geodewdt_remove(struct platform_device *dev)
{}

static void geodewdt_shutdown(struct platform_device *dev)
{}

static struct platform_driver geodewdt_driver =;

static int __init geodewdt_init(void)
{}

static void __exit geodewdt_exit(void)
{}

module_init();
module_exit(geodewdt_exit);

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