| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
 | 2 |  **************************************************************************** | 
 | 3 |  *** | 
 | 4 |  ***   This header was automatically generated from a Linux kernel header | 
 | 5 |  ***   of the same name, to make information necessary for userspace to | 
 | 6 |  ***   call into the kernel available to libc.  It contains only constants, | 
 | 7 |  ***   structures, and macros generated from the original header, and thus, | 
 | 8 |  ***   contains no copyrightable information. | 
 | 9 |  *** | 
 | 10 |  ***   To edit the content of this header, modify the corresponding | 
 | 11 |  ***   source file (e.g. under external/kernel-headers/original/) then | 
 | 12 |  ***   run bionic/libc/kernel/tools/update_all.py | 
 | 13 |  *** | 
 | 14 |  ***   Any manual change here will be lost the next time this script will | 
 | 15 |  ***   be run. You've been warned! | 
 | 16 |  *** | 
 | 17 |  **************************************************************************** | 
 | 18 |  ****************************************************************************/ | 
 | 19 | #ifndef _UAPI_LINUX_WATCHDOG_H | 
 | 20 | #define _UAPI_LINUX_WATCHDOG_H | 
 | 21 | #include <linux/ioctl.h> | 
 | 22 | #include <linux/types.h> | 
 | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 24 | #define WATCHDOG_IOCTL_BASE 'W' | 
 | 25 | struct watchdog_info { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 |   __u32 options; | 
 | 27 |   __u32 firmware_version; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 |   __u8 identity[32]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | }; | 
 | 31 | #define WDIOC_GETSUPPORT _IOR(WATCHDOG_IOCTL_BASE, 0, struct watchdog_info) | 
 | 32 | #define WDIOC_GETSTATUS _IOR(WATCHDOG_IOCTL_BASE, 1, int) | 
 | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 34 | #define WDIOC_GETBOOTSTATUS _IOR(WATCHDOG_IOCTL_BASE, 2, int) | 
 | 35 | #define WDIOC_GETTEMP _IOR(WATCHDOG_IOCTL_BASE, 3, int) | 
 | 36 | #define WDIOC_SETOPTIONS _IOR(WATCHDOG_IOCTL_BASE, 4, int) | 
 | 37 | #define WDIOC_KEEPALIVE _IOR(WATCHDOG_IOCTL_BASE, 5, int) | 
 | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 39 | #define WDIOC_SETTIMEOUT _IOWR(WATCHDOG_IOCTL_BASE, 6, int) | 
 | 40 | #define WDIOC_GETTIMEOUT _IOR(WATCHDOG_IOCTL_BASE, 7, int) | 
 | 41 | #define WDIOC_SETPRETIMEOUT _IOWR(WATCHDOG_IOCTL_BASE, 8, int) | 
 | 42 | #define WDIOC_GETPRETIMEOUT _IOR(WATCHDOG_IOCTL_BASE, 9, int) | 
 | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 44 | #define WDIOC_GETTIMELEFT _IOR(WATCHDOG_IOCTL_BASE, 10, int) | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 45 | #define WDIOF_UNKNOWN - 1 | 
 | 46 | #define WDIOS_UNKNOWN - 1 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define WDIOF_OVERHEAT 0x0001 | 
 | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 49 | #define WDIOF_FANFAULT 0x0002 | 
 | 50 | #define WDIOF_EXTERN1 0x0004 | 
 | 51 | #define WDIOF_EXTERN2 0x0008 | 
 | 52 | #define WDIOF_POWERUNDER 0x0010 | 
 | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 54 | #define WDIOF_CARDRESET 0x0020 | 
 | 55 | #define WDIOF_POWEROVER 0x0040 | 
 | 56 | #define WDIOF_SETTIMEOUT 0x0080 | 
 | 57 | #define WDIOF_MAGICCLOSE 0x0100 | 
 | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 59 | #define WDIOF_PRETIMEOUT 0x0200 | 
 | 60 | #define WDIOF_ALARMONLY 0x0400 | 
 | 61 | #define WDIOF_KEEPALIVEPING 0x8000 | 
 | 62 | #define WDIOS_DISABLECARD 0x0001 | 
 | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
 | 64 | #define WDIOS_ENABLECARD 0x0002 | 
 | 65 | #define WDIOS_TEMPPANIC 0x0004 | 
 | 66 | #endif |