linux/arch/x86/include/asm/trapnr.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_TRAPNR_H
#define _ASM_X86_TRAPNR_H

/*
 * Event type codes used by FRED, Intel VT-x and AMD SVM
 */
#define EVENT_TYPE_EXTINT
#define EVENT_TYPE_RESERVED
#define EVENT_TYPE_NMI
#define EVENT_TYPE_HWEXC
#define EVENT_TYPE_SWINT
#define EVENT_TYPE_PRIV_SWEXC
#define EVENT_TYPE_SWEXC
#define EVENT_TYPE_OTHER

/* Interrupts/Exceptions */

#define X86_TRAP_DE
#define X86_TRAP_DB
#define X86_TRAP_NMI
#define X86_TRAP_BP
#define X86_TRAP_OF
#define X86_TRAP_BR
#define X86_TRAP_UD
#define X86_TRAP_NM
#define X86_TRAP_DF
#define X86_TRAP_OLD_MF
#define X86_TRAP_TS
#define X86_TRAP_NP
#define X86_TRAP_SS
#define X86_TRAP_GP
#define X86_TRAP_PF
#define X86_TRAP_SPURIOUS
#define X86_TRAP_MF
#define X86_TRAP_AC
#define X86_TRAP_MC
#define X86_TRAP_XF
#define X86_TRAP_VE
#define X86_TRAP_CP
#define X86_TRAP_VC
#define X86_TRAP_IRET

#endif