18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  arch/arm/include/asm/glue-df.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 1997-1999 Russell King
68c2ecf20Sopenharmony_ci *  Copyright (C) 2000-2002 Deep Blue Solutions Ltd.
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci#ifndef ASM_GLUE_DF_H
98c2ecf20Sopenharmony_ci#define ASM_GLUE_DF_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <asm/glue.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/*
148c2ecf20Sopenharmony_ci *	Data Abort Model
158c2ecf20Sopenharmony_ci *	================
168c2ecf20Sopenharmony_ci *
178c2ecf20Sopenharmony_ci *	We have the following to choose from:
188c2ecf20Sopenharmony_ci *	  arm7		- ARM7 style
198c2ecf20Sopenharmony_ci *	  v4_early	- ARMv4 without Thumb early abort handler
208c2ecf20Sopenharmony_ci *	  v4t_late	- ARMv4 with Thumb late abort handler
218c2ecf20Sopenharmony_ci *	  v4t_early	- ARMv4 with Thumb early abort handler
228c2ecf20Sopenharmony_ci *	  v5t_early	- ARMv5 with Thumb early abort handler
238c2ecf20Sopenharmony_ci *	  v5tj_early	- ARMv5 with Thumb and Java early abort handler
248c2ecf20Sopenharmony_ci *	  xscale	- ARMv5 with Thumb with Xscale extensions
258c2ecf20Sopenharmony_ci *	  v6_early	- ARMv6 generic early abort handler
268c2ecf20Sopenharmony_ci *	  v7_early	- ARMv7 generic early abort handler
278c2ecf20Sopenharmony_ci */
288c2ecf20Sopenharmony_ci#undef CPU_DABORT_HANDLER
298c2ecf20Sopenharmony_ci#undef MULTI_DABORT
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_EV4
328c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
338c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
348c2ecf20Sopenharmony_ci# else
358c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER v4_early_abort
368c2ecf20Sopenharmony_ci# endif
378c2ecf20Sopenharmony_ci#endif
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_LV4T
408c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
418c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
428c2ecf20Sopenharmony_ci# else
438c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER v4t_late_abort
448c2ecf20Sopenharmony_ci# endif
458c2ecf20Sopenharmony_ci#endif
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_EV4T
488c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
498c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
508c2ecf20Sopenharmony_ci# else
518c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER v4t_early_abort
528c2ecf20Sopenharmony_ci# endif
538c2ecf20Sopenharmony_ci#endif
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_EV5T
568c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
578c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
588c2ecf20Sopenharmony_ci# else
598c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER v5t_early_abort
608c2ecf20Sopenharmony_ci# endif
618c2ecf20Sopenharmony_ci#endif
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_EV5TJ
648c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
658c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
668c2ecf20Sopenharmony_ci# else
678c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER v5tj_early_abort
688c2ecf20Sopenharmony_ci# endif
698c2ecf20Sopenharmony_ci#endif
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_EV6
728c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
738c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
748c2ecf20Sopenharmony_ci# else
758c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER v6_early_abort
768c2ecf20Sopenharmony_ci# endif
778c2ecf20Sopenharmony_ci#endif
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_EV7
808c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
818c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
828c2ecf20Sopenharmony_ci# else
838c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER v7_early_abort
848c2ecf20Sopenharmony_ci# endif
858c2ecf20Sopenharmony_ci#endif
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_ABRT_NOMMU
888c2ecf20Sopenharmony_ci# ifdef CPU_DABORT_HANDLER
898c2ecf20Sopenharmony_ci#  define MULTI_DABORT 1
908c2ecf20Sopenharmony_ci# else
918c2ecf20Sopenharmony_ci#  define CPU_DABORT_HANDLER nommu_early_abort
928c2ecf20Sopenharmony_ci# endif
938c2ecf20Sopenharmony_ci#endif
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci#ifndef CPU_DABORT_HANDLER
968c2ecf20Sopenharmony_ci#error Unknown data abort handler type
978c2ecf20Sopenharmony_ci#endif
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci#endif
100