1 /* SPDX-License-Identifier: GPL-2.0-or-later */
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>
12 * @(#) pa/fp/fpu.h $Revision: 1.1 $
15 * <<please update with a synopis of the functionality provided by this file>>
22 PA header file
-- do not include
this header file
for non
-PA builds
.
26 #ifndef _MACHINE_FPU_INCLUDED /* allows multiple inclusion */
27 #define _MACHINE_FPU_INCLUDED
30 #ifndef _SYS_STDSYMS_INCLUDED
31 # include <sys/stdsyms.h>
32 #endif /* _SYS_STDSYMS_INCLUDED */
33 #include <machine/pdc/pdc_rqsts.h>
36 #define PA83_FPU_FLAG 0x00000001
37 #define PA89_FPU_FLAG 0x00000002
38 #define PA2_0_FPU_FLAG 0x00000010
40 #define TIMEX_EXTEN_FLAG 0x00000004
42 #define ROLEX_EXTEN_FLAG 0x00000008
43 #define COPR_FP 0x00000080 /* Floating point -- Coprocessor 0 */
44 #define SFU_MPY_DIVIDE 0x00008000 /* Multiply/Divide __ SFU 0 */
47 #define EM_FPU_TYPE_OFFSET 272
49 /* version of EMULATION software for COPR,0,0 instruction */
50 #define EMULATION_VERSION 4
53 * The only was to differeniate between TIMEX and ROLEX (or PCX-S and PCX-T)
54 * is thorough the potential type field from the PDC_MODEL call. The
55 * following flags are used at assist this differeniation.
58 #define ROLEX_POTENTIAL_KEY_FLAGS PDC_MODEL_CPU_KEY_WORD_TO_IO
59 #define TIMEX_POTENTIAL_KEY_FLAGS (PDC_MODEL_CPU_KEY_QUAD_STORE | \
60 PDC_MODEL_CPU_KEY_RECIP_SQRT)
63 #endif /* ! _MACHINE_FPU_INCLUDED */