Ard Biesheuvel | 4cfb361 | 2013-07-09 14:18:12 +0100 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm64/include/asm/neon.h |
| 3 | * |
| 4 | * Copyright (C) 2013 Linaro Ltd <ard.biesheuvel@linaro.org> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
Dave Martin | 0fc9179 | 2017-08-03 17:23:20 +0100 | [diff] [blame] | 11 | #ifndef __ASM_NEON_H |
| 12 | #define __ASM_NEON_H |
| 13 | |
Ard Biesheuvel | 190f1ca | 2014-02-24 15:26:29 +0100 | [diff] [blame] | 14 | #include <linux/types.h> |
Suzuki K Poulose | 82e0191 | 2016-11-08 13:56:21 +0000 | [diff] [blame] | 15 | #include <asm/fpsimd.h> |
Ard Biesheuvel | 190f1ca | 2014-02-24 15:26:29 +0100 | [diff] [blame] | 16 | |
Suzuki K Poulose | 82e0191 | 2016-11-08 13:56:21 +0000 | [diff] [blame] | 17 | #define cpu_has_neon() system_supports_fpsimd() |
Ard Biesheuvel | 4cfb361 | 2013-07-09 14:18:12 +0100 | [diff] [blame] | 18 | |
Dave Martin | cb84d11 | 2017-08-03 17:23:23 +0100 | [diff] [blame] | 19 | void kernel_neon_begin(void); |
Ard Biesheuvel | 4cfb361 | 2013-07-09 14:18:12 +0100 | [diff] [blame] | 20 | void kernel_neon_end(void); |
Dave Martin | 0fc9179 | 2017-08-03 17:23:20 +0100 | [diff] [blame] | 21 | |
Catalin Marinas | 174dfb1 | 2017-08-04 15:10:12 +0100 | [diff] [blame] | 22 | /* |
| 23 | * Temporary macro to allow the crypto code to compile. Note that the |
| 24 | * semantics of kernel_neon_begin_partial() are now different from the |
| 25 | * original as it does not allow being called in an interrupt context. |
| 26 | */ |
| 27 | #define kernel_neon_begin_partial(num_regs) kernel_neon_begin() |
| 28 | |
Dave Martin | 0fc9179 | 2017-08-03 17:23:20 +0100 | [diff] [blame] | 29 | #endif /* ! __ASM_NEON_H */ |