blob: b86828376175b67563c5e19a7500c1ed96a1be8b [file] [log] [blame]
Simon Glassf79d5382014-11-12 22:42:21 -07001/*
2 * Copyright (c) 2015 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __ASM_ARCH_MICROCODE_H
8#define __ASM_ARCH_MICROCODE_H
9
Simon Glass9281eb52015-01-01 16:18:14 -070010/* Length of the public header on Intel microcode blobs */
11#define UCODE_HEADER_LEN 0x30
12
13#ifndef __ASSEMBLY__
14
Simon Glassf79d5382014-11-12 22:42:21 -070015/**
16 * microcode_update_intel() - Apply microcode updates
17 *
18 * Applies any microcode updates in the device tree.
19 *
20 * @return 0 if OK, -EEXIST if the updates were already applied, -ENOENT if
21 * not updates were found, -EINVAL if an update was invalid
22 */
23int microcode_update_intel(void);
Simon Glass9281eb52015-01-01 16:18:14 -070024#endif /* __ASSEMBLY__ */
Simon Glassf79d5382014-11-12 22:42:21 -070025
26#endif