xref: /openbmc/linux/arch/m68k/include/asm/fpu.h (revision 413d6ed3)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __M68K_FPU_H
3 #define __M68K_FPU_H
4 
5 
6 /*
7  * MAX floating point unit state size (FSAVE/FRESTORE)
8  */
9 
10 #if defined(CONFIG_M68020) || defined(CONFIG_M68030)
11 #define FPSTATESIZE (216)
12 #elif defined(CONFIG_M68040)
13 #define FPSTATESIZE (96)
14 #elif defined(CONFIG_M68KFPU_EMU)
15 #define FPSTATESIZE (28)
16 #elif defined(CONFIG_COLDFIRE) && defined(CONFIG_MMU)
17 #define FPSTATESIZE (16)
18 #elif defined(CONFIG_M68060)
19 #define FPSTATESIZE (12)
20 #else
21 #define FPSTATESIZE (0)
22 #endif
23 
24 #endif /* __M68K_FPU_H */
25