/* SPDX-License-Identifier: GPL-2.0-or-later */1/*2* Fault Injection Test harness (FI)3* Copyright (C) Intel Crop.4*/56#ifndef __PF_H_7#define __PF_H_89enum reason_type {10NOT_ME, /* page fault is not in regions */11NOTHING, /* access others point in regions */12REG_READ, /* read from addr to reg */13REG_WRITE, /* write from reg to addr */14IMM_WRITE, /* write from imm to addr */15OTHERS /* Other instructions can not intercept */16};1718enum reason_type get_ins_type(unsigned long ins_addr);19unsigned int get_ins_mem_width(unsigned long ins_addr);20unsigned long get_ins_reg_val(unsigned long ins_addr, struct pt_regs *regs);21unsigned long get_ins_imm_val(unsigned long ins_addr);2223#endif /* __PF_H_ */242526