blob: 5e6abefc32ded02bb0b03b136059f7a18b120cf7 [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 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct mce {
Tao Baod7db5942015-01-28 10:07:51 -080025 __u64 status;
26 __u64 misc;
27 __u64 addr;
Elliott Hughesabd62612013-11-08 11:45:48 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u64 mcgstatus;
30 __u64 ip;
31 __u64 tsc;
32 __u64 time;
Elliott Hughesabd62612013-11-08 11:45:48 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u8 cpuvendor;
35 __u8 inject_flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -080036 __u8 severity;
Christopher Ferris106b3a82016-08-24 12:15:38 -070037 __u8 pad;
Elliott Hughesabd62612013-11-08 11:45:48 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 __u32 cpuid;
Tao Baod7db5942015-01-28 10:07:51 -080040 __u8 cs;
41 __u8 bank;
42 __u8 cpu;
Elliott Hughesabd62612013-11-08 11:45:48 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080044 __u8 finished;
Tao Baod7db5942015-01-28 10:07:51 -080045 __u32 extcpu;
46 __u32 socketid;
47 __u32 apicid;
Elliott Hughesabd62612013-11-08 11:45:48 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049 __u64 mcgcap;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080050 __u64 synd;
51 __u64 ipid;
Elliott Hughesabd62612013-11-08 11:45:48 -080052};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesabd62612013-11-08 11:45:48 -080054#define MCE_GET_RECORD_LEN _IOR('M', 1, int)
55#define MCE_GET_LOG_LEN _IOR('M', 2, int)
Christopher Ferris05d08e92016-02-04 13:16:38 -080056#define MCE_GETCLEAR_FLAGS _IOR('M', 3, int)
Elliott Hughesabd62612013-11-08 11:45:48 -080057#endif
Christopher Ferris6a9755d2017-01-13 14:09:31 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */