aboutsummaryrefslogtreecommitdiff
path: root/include/qfw.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-06 21:42:55 -0700
committerBin Meng <bmeng.cn@gmail.com>2019-12-15 11:44:25 +0800
commitbaaeb92c21370cc4717d4841906677f95ece55a3 (patch)
treeb36dc803e3ef9dc13510d362bcd54548d645098f /include/qfw.h
parent7e589bc19b4e9becd5bf825cd072abf1980fff91 (diff)
downloadu-boot-baaeb92c21370cc4717d4841906677f95ece55a3.zip
u-boot-baaeb92c21370cc4717d4841906677f95ece55a3.tar.gz
u-boot-baaeb92c21370cc4717d4841906677f95ece55a3.tar.bz2
x86: Move qemu CPU fixup function into its own file
This function is specific to qemu so it seems best to keep it separate from the generic code. Move it out to a new file and update the condition to use if() instead of #ifdef Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/qfw.h')
-rw-r--r--include/qfw.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qfw.h b/include/qfw.h
index 2f1a204..cea8e11 100644
--- a/include/qfw.h
+++ b/include/qfw.h
@@ -172,4 +172,12 @@ bool qemu_fwcfg_file_iter_end(struct fw_cfg_file_iter *iter);
bool qemu_fwcfg_present(void);
bool qemu_fwcfg_dma_present(void);
+/**
+ * qemu_cpu_fixup() - Fix up the CPUs for QEMU
+ *
+ * @return 0 if OK, -ENODEV if no CPUs, -ENOMEM if out of memory, other -ve on
+ * on other error
+ */
+int qemu_cpu_fixup(void);
+
#endif