]> git.sur5r.net Git - u-boot/blob - arch/x86/include/asm/microcode.h
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / x86 / include / asm / microcode.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2015 Google, Inc
4  */
5
6 #ifndef __ASM_ARCH_MICROCODE_H
7 #define __ASM_ARCH_MICROCODE_H
8
9 #ifndef __ASSEMBLY__
10
11 /* This is a declaration for ucode_base in start.S */
12 extern u32 ucode_base;
13
14 /**
15  * microcode_update_intel() - Apply microcode updates
16  *
17  * Applies any microcode updates in the device tree.
18  *
19  * @return 0 if OK, -EEXIST if the updates were already applied, -ENOENT if
20  * not updates were found, -EINVAL if an update was invalid
21  */
22 int microcode_update_intel(void);
23
24 /**
25  * microcode_read_rev() - Read the microcode version
26  *
27  * This reads the microcode version of the currently running CPU
28  *
29  * @return microcode version number
30  */
31 int microcode_read_rev(void);
32 #endif /* __ASSEMBLY__ */
33
34 #endif