blob: 4a3230c4a6c86f32e47f4595d0dfd388f2353777 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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>
Christopher Ferris05d08e92016-02-04 13:16:38 -080022#include <linux/ioctl.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080023struct mce {
Tao Baod7db5942015-01-28 10:07:51 -080024 __u64 status;
25 __u64 misc;
26 __u64 addr;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u64 mcgstatus;
28 __u64 ip;
29 __u64 tsc;
30 __u64 time;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u8 cpuvendor;
32 __u8 inject_flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -080033 __u8 severity;
Christopher Ferris106b3a82016-08-24 12:15:38 -070034 __u8 pad;
Christopher Ferris05d08e92016-02-04 13:16:38 -080035 __u32 cpuid;
Tao Baod7db5942015-01-28 10:07:51 -080036 __u8 cs;
37 __u8 bank;
38 __u8 cpu;
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 __u8 finished;
Tao Baod7db5942015-01-28 10:07:51 -080040 __u32 extcpu;
41 __u32 socketid;
42 __u32 apicid;
Christopher Ferris05d08e92016-02-04 13:16:38 -080043 __u64 mcgcap;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080044 __u64 synd;
45 __u64 ipid;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080046 __u64 ppin;
Christopher Ferris76a1d452018-06-27 14:12:29 -070047 __u32 microcode;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080048};
Elliott Hughesabd62612013-11-08 11:45:48 -080049#define MCE_GET_RECORD_LEN _IOR('M', 1, int)
50#define MCE_GET_LOG_LEN _IOR('M', 2, int)
Christopher Ferris05d08e92016-02-04 13:16:38 -080051#define MCE_GETCLEAR_FLAGS _IOR('M', 3, int)
Christopher Ferris48af7cb2017-02-21 12:35:09 -080052#endif