Merge tag 'rproc-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc...
[linux.git] / arch / parisc / math-emu / fpu.h
blobdec951d40286fda29c799ce104aedc0aee96c20d
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
7 */
9 #ifndef _MACHINE_FPU_INCLUDED /* allows multiple inclusion */
10 #define _MACHINE_FPU_INCLUDED
12 #define PA83_FPU_FLAG 0x00000001
13 #define PA89_FPU_FLAG 0x00000002
14 #define PA2_0_FPU_FLAG 0x00000010
16 #define TIMEX_EXTEN_FLAG 0x00000004
18 #define ROLEX_EXTEN_FLAG 0x00000008
19 #define COPR_FP 0x00000080 /* Floating point -- Coprocessor 0 */
20 #define SFU_MPY_DIVIDE 0x00008000 /* Multiply/Divide __ SFU 0 */
22 #define EM_FPU_TYPE_OFFSET 272
24 /* version of EMULATION software for COPR,0,0 instruction */
25 #define EMULATION_VERSION 4
28 * The only way to differentiate between TIMEX and ROLEX (or PCX-S and PCX-T)
29 * is through the potential type field from the PDC_MODEL call.
30 * The following flags are used to assist this differentiation.
33 #define ROLEX_POTENTIAL_KEY_FLAGS PDC_MODEL_CPU_KEY_WORD_TO_IO
34 #define TIMEX_POTENTIAL_KEY_FLAGS (PDC_MODEL_CPU_KEY_QUAD_STORE | \
35 PDC_MODEL_CPU_KEY_RECIP_SQRT)
37 #endif /* ! _MACHINE_FPU_INCLUDED */