2014-11-13 05:42:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Google, Inc
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_MICROCODE_H
|
|
|
|
#define __ASM_ARCH_MICROCODE_H
|
|
|
|
|
2015-01-01 23:18:14 +00:00
|
|
|
/* Length of the public header on Intel microcode blobs */
|
|
|
|
#define UCODE_HEADER_LEN 0x30
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
2014-11-13 05:42:21 +00:00
|
|
|
/**
|
|
|
|
* microcode_update_intel() - Apply microcode updates
|
|
|
|
*
|
|
|
|
* Applies any microcode updates in the device tree.
|
|
|
|
*
|
|
|
|
* @return 0 if OK, -EEXIST if the updates were already applied, -ENOENT if
|
|
|
|
* not updates were found, -EINVAL if an update was invalid
|
|
|
|
*/
|
|
|
|
int microcode_update_intel(void);
|
2015-01-01 23:18:14 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
2014-11-13 05:42:21 +00:00
|
|
|
|
|
|
|
#endif
|