From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xu8Ks-0002LM-To for qemu-devel@nongnu.org; Thu, 27 Nov 2014 18:19:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xu8Km-0006q0-PS for qemu-devel@nongnu.org; Thu, 27 Nov 2014 18:18:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xu8Km-0006ps-Hm for qemu-devel@nongnu.org; Thu, 27 Nov 2014 18:18:48 -0500 From: Laszlo Ersek Date: Fri, 28 Nov 2014 00:18:26 +0100 Message-Id: <1417130307-17714-2-git-send-email-lersek@redhat.com> In-Reply-To: <1417130307-17714-1-git-send-email-lersek@redhat.com> References: <5477B0FD.9040806@redhat.com> <1417130307-17714-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [qemu PATCH 1/2] fw_cfg: make the FW_CFG_SIZE and FW_CFG_DATA_SIZE macros public List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, edk2-devel@lists.sourceforge.net, drjones@redhat.com, ard.biesheuvel@linaro.org, peter.maydell@linaro.org, imammedo@redhat.com, mst@redhat.com We'll use them in board-specific code in the next patch. Signed-off-by: Laszlo Ersek --- 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