162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * watchdog - Driver interface for the hardware watchdog timers
562306a36Sopenharmony_ci * present on Sun Microsystems boardsets
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Copyright (c) 2000 Eric Brower <ebrower@usa.net>
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#ifndef _SPARC64_WATCHDOG_H
1262306a36Sopenharmony_ci#define _SPARC64_WATCHDOG_H
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#include <linux/watchdog.h>
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci/* Solaris compatibility ioctls--
1762306a36Sopenharmony_ci * Ref. <linux/watchdog.h> for standard linux watchdog ioctls
1862306a36Sopenharmony_ci */
1962306a36Sopenharmony_ci#define WIOCSTART _IO (WATCHDOG_IOCTL_BASE, 10)		/* Start Timer		*/
2062306a36Sopenharmony_ci#define WIOCSTOP  _IO (WATCHDOG_IOCTL_BASE, 11)		/* Stop Timer		*/
2162306a36Sopenharmony_ci#define WIOCGSTAT _IOR(WATCHDOG_IOCTL_BASE, 12, int)/* Get Timer Status	*/
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci/* Status flags from WIOCGSTAT ioctl
2462306a36Sopenharmony_ci */
2562306a36Sopenharmony_ci#define WD_FREERUN	0x01	/* timer is running, interrupts disabled	*/
2662306a36Sopenharmony_ci#define WD_EXPIRED	0x02	/* timer has expired						*/
2762306a36Sopenharmony_ci#define WD_RUNNING	0x04	/* timer is running, interrupts enabled		*/
2862306a36Sopenharmony_ci#define WD_STOPPED	0x08	/* timer has not been started				*/
2962306a36Sopenharmony_ci#define WD_SERVICED 0x10	/* timer interrupt was serviced				*/
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#endif /* ifndef _SPARC64_WATCHDOG_H */
3262306a36Sopenharmony_ci
33