• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <asm/ioctls.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 struct mce {
25  __u64 status;
26  __u64 misc;
27  __u64 addr;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  __u64 mcgstatus;
30  __u64 ip;
31  __u64 tsc;
32  __u64 time;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __u8 cpuvendor;
35  __u8 inject_flags;
36  __u16 pad;
37  __u32 cpuid;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  __u8 cs;
40  __u8 bank;
41  __u8 cpu;
42  __u8 finished;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __u32 extcpu;
45  __u32 socketid;
46  __u32 apicid;
47  __u64 mcgcap;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 };
50 #define MCE_GET_RECORD_LEN _IOR('M', 1, int)
51 #define MCE_GET_LOG_LEN _IOR('M', 2, int)
52 #define MCE_GETCLEAR_FLAGS _IOR('M', 3, int)
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #endif
55