mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 23:53:45 +07:00
6f52b16c5b
Many user space API headers are missing licensing information, which makes it hard for compliance tools to determine the correct license. By default are files without license information under the default license of the kernel, which is GPLV2. Marking them GPLV2 would exclude them from being included in non GPLV2 code, which is obviously not intended. The user space API headers fall under the syscall exception which is in the kernels COPYING file: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work". otherwise syscall usage would not be possible. Update the files which contain no license information with an SPDX license identifier. The chosen identifier is 'GPL-2.0 WITH Linux-syscall-note' which is the officially assigned identifier for the Linux syscall exception. SPDX license identifiers are a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. See the previous patch in this series for the methodology of how this patch was researched. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
59 lines
2.3 KiB
C
59 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* Generic watchdog defines. Derived from..
|
|
*
|
|
* Berkshire PC Watchdog Defines
|
|
* by Ken Hollis <khollis@bitgate.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef _UAPI_LINUX_WATCHDOG_H
|
|
#define _UAPI_LINUX_WATCHDOG_H
|
|
|
|
#include <linux/ioctl.h>
|
|
#include <linux/types.h>
|
|
|
|
#define WATCHDOG_IOCTL_BASE 'W'
|
|
|
|
struct watchdog_info {
|
|
__u32 options; /* Options the card/driver supports */
|
|
__u32 firmware_version; /* Firmware version of the card */
|
|
__u8 identity[32]; /* Identity of the board */
|
|
};
|
|
|
|
#define WDIOC_GETSUPPORT _IOR(WATCHDOG_IOCTL_BASE, 0, struct watchdog_info)
|
|
#define WDIOC_GETSTATUS _IOR(WATCHDOG_IOCTL_BASE, 1, int)
|
|
#define WDIOC_GETBOOTSTATUS _IOR(WATCHDOG_IOCTL_BASE, 2, int)
|
|
#define WDIOC_GETTEMP _IOR(WATCHDOG_IOCTL_BASE, 3, int)
|
|
#define WDIOC_SETOPTIONS _IOR(WATCHDOG_IOCTL_BASE, 4, int)
|
|
#define WDIOC_KEEPALIVE _IOR(WATCHDOG_IOCTL_BASE, 5, int)
|
|
#define WDIOC_SETTIMEOUT _IOWR(WATCHDOG_IOCTL_BASE, 6, int)
|
|
#define WDIOC_GETTIMEOUT _IOR(WATCHDOG_IOCTL_BASE, 7, int)
|
|
#define WDIOC_SETPRETIMEOUT _IOWR(WATCHDOG_IOCTL_BASE, 8, int)
|
|
#define WDIOC_GETPRETIMEOUT _IOR(WATCHDOG_IOCTL_BASE, 9, int)
|
|
#define WDIOC_GETTIMELEFT _IOR(WATCHDOG_IOCTL_BASE, 10, int)
|
|
|
|
#define WDIOF_UNKNOWN -1 /* Unknown flag error */
|
|
#define WDIOS_UNKNOWN -1 /* Unknown status error */
|
|
|
|
#define WDIOF_OVERHEAT 0x0001 /* Reset due to CPU overheat */
|
|
#define WDIOF_FANFAULT 0x0002 /* Fan failed */
|
|
#define WDIOF_EXTERN1 0x0004 /* External relay 1 */
|
|
#define WDIOF_EXTERN2 0x0008 /* External relay 2 */
|
|
#define WDIOF_POWERUNDER 0x0010 /* Power bad/power fault */
|
|
#define WDIOF_CARDRESET 0x0020 /* Card previously reset the CPU */
|
|
#define WDIOF_POWEROVER 0x0040 /* Power over voltage */
|
|
#define WDIOF_SETTIMEOUT 0x0080 /* Set timeout (in seconds) */
|
|
#define WDIOF_MAGICCLOSE 0x0100 /* Supports magic close char */
|
|
#define WDIOF_PRETIMEOUT 0x0200 /* Pretimeout (in seconds), get/set */
|
|
#define WDIOF_ALARMONLY 0x0400 /* Watchdog triggers a management or
|
|
other external alarm not a reboot */
|
|
#define WDIOF_KEEPALIVEPING 0x8000 /* Keep alive ping reply */
|
|
|
|
#define WDIOS_DISABLECARD 0x0001 /* Turn off the watchdog timer */
|
|
#define WDIOS_ENABLECARD 0x0002 /* Turn on the watchdog timer */
|
|
#define WDIOS_TEMPPANIC 0x0004 /* Kernel panic on temperature trip */
|
|
|
|
|
|
#endif /* _UAPI_LINUX_WATCHDOG_H */
|