[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [qemu PATCH 1/2] fw_cfg: make the FW_CFG_SIZE and FW_CFG_DA
From: |
Laszlo Ersek |
Subject: |
[Qemu-devel] [qemu PATCH 1/2] fw_cfg: make the FW_CFG_SIZE and FW_CFG_DATA_SIZE macros public |
Date: |
Fri, 28 Nov 2014 00:18:26 +0100 |
We'll use them in board-specific code in the next patch.
Signed-off-by: Laszlo Ersek <address@hidden>
---
include/hw/nvram/fw_cfg.h | 3 +++
hw/nvram/fw_cfg.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/hw/nvram/fw_cfg.h b/include/hw/nvram/fw_cfg.h
index 56e1ed7..286d94b 100644
--- a/include/hw/nvram/fw_cfg.h
+++ b/include/hw/nvram/fw_cfg.h
@@ -9,6 +9,9 @@
#include "qemu/typedefs.h"
#endif
+#define FW_CFG_SIZE 2
+#define FW_CFG_DATA_SIZE 1
+
#define FW_CFG_SIGNATURE 0x00
#define FW_CFG_ID 0x01
#define FW_CFG_UUID 0x02
diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c
index a7122ee..86d53d7 100644
--- a/hw/nvram/fw_cfg.c
+++ b/hw/nvram/fw_cfg.c
@@ -30,8 +30,6 @@
#include "qemu/error-report.h"
#include "qemu/config-file.h"
-#define FW_CFG_SIZE 2
-#define FW_CFG_DATA_SIZE 1
#define TYPE_FW_CFG "fw_cfg"
#define FW_CFG_NAME "fw_cfg"
#define FW_CFG_PATH "/machine/" FW_CFG_NAME
--
1.8.3.1
- [Qemu-devel] expose QEMU's fw_cfg boot order to ARM guest firmware (Intel BDS), Laszlo Ersek, 2014/11/27
- [Qemu-devel] [qemu PATCH 0/2] DTB- and MMIO-based fw_cfg for hw/arm/virt, Laszlo Ersek, 2014/11/27
- Re: [Qemu-devel] [qemu PATCH 2/2] arm: add fw_cfg to "virt" board, Andrew Jones, 2014/11/28
- Re: [Qemu-devel] [qemu PATCH 2/2] arm: add fw_cfg to "virt" board, Laszlo Ersek, 2014/11/28
- Re: [Qemu-devel] [qemu PATCH 2/2] arm: add fw_cfg to "virt" board, Laszlo Ersek, 2014/11/28
- Re: [Qemu-devel] [qemu PATCH 2/2] arm: add fw_cfg to "virt" board, Andrew Jones, 2014/11/28
- Re: [Qemu-devel] [qemu PATCH 2/2] arm: add fw_cfg to "virt" board, Andrew Jones, 2014/11/28
[Qemu-devel] [edk2 PATCH 00/12] consume fw_cfg boot order in ArmVirtualizationQemu, Laszlo Ersek, 2014/11/27