xref: /aosp_15_r20/prebuilts/build-tools/sysroots/x86_64-unknown-linux-musl/include/asm/mce.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_ASM_X86_MCE_H
8 #define _UAPI_ASM_X86_MCE_H
9 #include <linux/types.h>
10 #include <linux/ioctl.h>
11 struct mce {
12   __u64 status;
13   __u64 misc;
14   __u64 addr;
15   __u64 mcgstatus;
16   __u64 ip;
17   __u64 tsc;
18   __u64 time;
19   __u8 cpuvendor;
20   __u8 inject_flags;
21   __u8 severity;
22   __u8 pad;
23   __u32 cpuid;
24   __u8 cs;
25   __u8 bank;
26   __u8 cpu;
27   __u8 finished;
28   __u32 extcpu;
29   __u32 socketid;
30   __u32 apicid;
31   __u64 mcgcap;
32   __u64 synd;
33   __u64 ipid;
34   __u64 ppin;
35   __u32 microcode;
36   __u64 kflags;
37 };
38 #define MCE_GET_RECORD_LEN _IOR('M', 1, int)
39 #define MCE_GET_LOG_LEN _IOR('M', 2, int)
40 #define MCE_GETCLEAR_FLAGS _IOR('M', 3, int)
41 #endif
42