1655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/**************************************************************************** 2655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng **************************************************************************** 3655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 4655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** This header was automatically generated from a Linux kernel header 5655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** of the same name, to make information necessary for userspace to 6655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** call into the kernel available to libc. It contains only constants, 7655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** structures, and macros generated from the original header, and thus, 8655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** contains no copyrightable information. 9655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 10655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** To edit the content of this header, modify the corresponding 11655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** source file (e.g. under external/kernel-headers/original/) then 12655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** run bionic/libc/kernel/tools/update_all.py 13655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 14655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** Any manual change here will be lost the next time this script will 15655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** be run. You've been warned! 16655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 17655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng **************************************************************************** 18655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************/ 19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef _UAPI_LINUX_WATCHDOG_H 20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _UAPI_LINUX_WATCHDOG_H 21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/ioctl.h> 22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h> 23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WATCHDOG_IOCTL_BASE 'W' 25655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct watchdog_info { 26d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 options; 27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u32 firmware_version; 28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 identity[32]; 30655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 31655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_GETSUPPORT _IOR(WATCHDOG_IOCTL_BASE, 0, struct watchdog_info) 32655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_GETSTATUS _IOR(WATCHDOG_IOCTL_BASE, 1, int) 33655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_GETBOOTSTATUS _IOR(WATCHDOG_IOCTL_BASE, 2, int) 35655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_GETTEMP _IOR(WATCHDOG_IOCTL_BASE, 3, int) 36655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_SETOPTIONS _IOR(WATCHDOG_IOCTL_BASE, 4, int) 37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_KEEPALIVE _IOR(WATCHDOG_IOCTL_BASE, 5, int) 38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_SETTIMEOUT _IOWR(WATCHDOG_IOCTL_BASE, 6, int) 40655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_GETTIMEOUT _IOR(WATCHDOG_IOCTL_BASE, 7, int) 41655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_SETPRETIMEOUT _IOWR(WATCHDOG_IOCTL_BASE, 8, int) 42655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_GETPRETIMEOUT _IOR(WATCHDOG_IOCTL_BASE, 9, int) 43655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOC_GETTIMELEFT _IOR(WATCHDOG_IOCTL_BASE, 10, int) 45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define WDIOF_UNKNOWN - 1 46d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define WDIOS_UNKNOWN - 1 47655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_OVERHEAT 0x0001 48655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_FANFAULT 0x0002 50655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_EXTERN1 0x0004 51655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_EXTERN2 0x0008 52655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_POWERUNDER 0x0010 53655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_CARDRESET 0x0020 55655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_POWEROVER 0x0040 56655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_SETTIMEOUT 0x0080 57655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_MAGICCLOSE 0x0100 58655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_PRETIMEOUT 0x0200 60655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_ALARMONLY 0x0400 61655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOF_KEEPALIVEPING 0x8000 62655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOS_DISABLECARD 0x0001 63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOS_ENABLECARD 0x0002 65655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define WDIOS_TEMPPANIC 0x0004 66655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif 67