Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / arm / include / asm / glue-pf.h
bloba033929fad3aa66c2cbccd52033fc98a7f7e37b8
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * arch/arm/include/asm/glue-pf.h
5 * Copyright (C) 1997-1999 Russell King
6 * Copyright (C) 2000-2002 Deep Blue Solutions Ltd.
7 */
8 #ifndef ASM_GLUE_PF_H
9 #define ASM_GLUE_PF_H
11 #include <asm/glue.h>
14 * Prefetch Abort Model
15 * ================
17 * We have the following to choose from:
18 * legacy - no IFSR, no IFAR
19 * v6 - ARMv6: IFSR, no IFAR
20 * v7 - ARMv7: IFSR and IFAR
23 #undef CPU_PABORT_HANDLER
24 #undef MULTI_PABORT
26 #ifdef CONFIG_CPU_PABRT_LEGACY
27 # ifdef CPU_PABORT_HANDLER
28 # define MULTI_PABORT 1
29 # else
30 # define CPU_PABORT_HANDLER legacy_pabort
31 # endif
32 #endif
34 #ifdef CONFIG_CPU_PABRT_V6
35 # ifdef CPU_PABORT_HANDLER
36 # define MULTI_PABORT 1
37 # else
38 # define CPU_PABORT_HANDLER v6_pabort
39 # endif
40 #endif
42 #ifdef CONFIG_CPU_PABRT_V7
43 # ifdef CPU_PABORT_HANDLER
44 # define MULTI_PABORT 1
45 # else
46 # define CPU_PABORT_HANDLER v7_pabort
47 # endif
48 #endif
50 #ifndef CPU_PABORT_HANDLER
51 #error Unknown prefetch abort handler type
52 #endif
54 #endif