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_ASM_X86_MCE_H 20 #define _UAPI_ASM_X86_MCE_H 21 #include <linux/types.h> 22 #include <linux/ioctl.h> 23 struct mce { 24 __u64 status; 25 __u64 misc; 26 __u64 addr; 27 __u64 mcgstatus; 28 __u64 ip; 29 __u64 tsc; 30 __u64 time; 31 __u8 cpuvendor; 32 __u8 inject_flags; 33 __u8 severity; 34 __u8 pad; 35 __u32 cpuid; 36 __u8 cs; 37 __u8 bank; 38 __u8 cpu; 39 __u8 finished; 40 __u32 extcpu; 41 __u32 socketid; 42 __u32 apicid; 43 __u64 mcgcap; 44 __u64 synd; 45 __u64 ipid; 46 __u64 ppin; 47 __u32 microcode; 48 }; 49 #define MCE_GET_RECORD_LEN _IOR('M', 1, int) 50 #define MCE_GET_LOG_LEN _IOR('M', 2, int) 51 #define MCE_GETCLEAR_FLAGS _IOR('M', 3, int) 52 #endif 53