122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _UAPI_ASM_X86_MCE_H
2022851890Sopenharmony_ci#define _UAPI_ASM_X86_MCE_H
2122851890Sopenharmony_ci#include <linux/types.h>
2222851890Sopenharmony_ci#include <linux/ioctl.h>
2322851890Sopenharmony_cistruct mce {
2422851890Sopenharmony_ci  __u64 status;
2522851890Sopenharmony_ci  __u64 misc;
2622851890Sopenharmony_ci  __u64 addr;
2722851890Sopenharmony_ci  __u64 mcgstatus;
2822851890Sopenharmony_ci  __u64 ip;
2922851890Sopenharmony_ci  __u64 tsc;
3022851890Sopenharmony_ci  __u64 time;
3122851890Sopenharmony_ci  __u8 cpuvendor;
3222851890Sopenharmony_ci  __u8 inject_flags;
3322851890Sopenharmony_ci  __u8 severity;
3422851890Sopenharmony_ci  __u8 pad;
3522851890Sopenharmony_ci  __u32 cpuid;
3622851890Sopenharmony_ci  __u8 cs;
3722851890Sopenharmony_ci  __u8 bank;
3822851890Sopenharmony_ci  __u8 cpu;
3922851890Sopenharmony_ci  __u8 finished;
4022851890Sopenharmony_ci  __u32 extcpu;
4122851890Sopenharmony_ci  __u32 socketid;
4222851890Sopenharmony_ci  __u32 apicid;
4322851890Sopenharmony_ci  __u64 mcgcap;
4422851890Sopenharmony_ci  __u64 synd;
4522851890Sopenharmony_ci  __u64 ipid;
4622851890Sopenharmony_ci  __u64 ppin;
4722851890Sopenharmony_ci  __u32 microcode;
4822851890Sopenharmony_ci  __u64 kflags;
4922851890Sopenharmony_ci};
5022851890Sopenharmony_ci#define MCE_GET_RECORD_LEN _IOR('M', 1, int)
5122851890Sopenharmony_ci#define MCE_GET_LOG_LEN _IOR('M', 2, int)
5222851890Sopenharmony_ci#define MCE_GETCLEAR_FLAGS _IOR('M', 3, int)
5322851890Sopenharmony_ci#endif
54