1 /*
2  * Copyright (C) 2018-2022 Intel Corporation.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef UCODE_H
8 #define UCODE_H
9 
10 struct ucode_header {
11 	uint32_t	header_ver;
12 	uint32_t	update_ver;
13 	uint32_t	date;
14 	uint32_t	proc_sig;
15 	uint32_t	checksum;
16 	uint32_t	loader_ver;
17 	uint32_t	proc_flags;
18 	uint32_t	data_size;
19 	uint32_t	total_size;
20 	uint32_t	reserved[3];
21 };
22 
23 void acrn_update_ucode(struct acrn_vcpu *vcpu, uint64_t v);
24 uint64_t get_microcode_version(void);
25 
26 #endif /* UCODE_H */
27