blob: 08a86343e5a10c37de984eff2ff956862e779583 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Elliott Hughesabd62612013-11-08 11:45:48 -08007#ifndef _UAPI_ASM_X86_MCE_H
8#define _UAPI_ASM_X86_MCE_H
9#include <linux/types.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080010#include <linux/ioctl.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080011struct mce {
Tao Baod7db5942015-01-28 10:07:51 -080012 __u64 status;
13 __u64 misc;
14 __u64 addr;
Tao Baod7db5942015-01-28 10:07:51 -080015 __u64 mcgstatus;
16 __u64 ip;
17 __u64 tsc;
18 __u64 time;
Tao Baod7db5942015-01-28 10:07:51 -080019 __u8 cpuvendor;
20 __u8 inject_flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -080021 __u8 severity;
Christopher Ferris106b3a82016-08-24 12:15:38 -070022 __u8 pad;
Christopher Ferris05d08e92016-02-04 13:16:38 -080023 __u32 cpuid;
Tao Baod7db5942015-01-28 10:07:51 -080024 __u8 cs;
25 __u8 bank;
26 __u8 cpu;
Christopher Ferris05d08e92016-02-04 13:16:38 -080027 __u8 finished;
Tao Baod7db5942015-01-28 10:07:51 -080028 __u32 extcpu;
29 __u32 socketid;
30 __u32 apicid;
Christopher Ferris05d08e92016-02-04 13:16:38 -080031 __u64 mcgcap;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080032 __u64 synd;
33 __u64 ipid;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080034 __u64 ppin;
Christopher Ferris76a1d452018-06-27 14:12:29 -070035 __u32 microcode;
Christopher Ferris8177cdf2020-08-03 11:53:55 -070036 __u64 kflags;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080037};
Elliott Hughesabd62612013-11-08 11:45:48 -080038#define MCE_GET_RECORD_LEN _IOR('M', 1, int)
39#define MCE_GET_LOG_LEN _IOR('M', 2, int)
Christopher Ferris05d08e92016-02-04 13:16:38 -080040#define MCE_GETCLEAR_FLAGS _IOR('M', 3, int)
Christopher Ferris48af7cb2017-02-21 12:35:09 -080041#endif