[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/12] move MemMapEntry
From: |
Gerd Hoffmann |
Subject: |
[PATCH v3 01/12] move MemMapEntry |
Date: |
Mon, 28 Sep 2020 12:42:45 +0200 |
It is defined twice already. Move to a common header file to
remove duplication and make it available to everybody.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
---
include/exec/hwaddr.h | 5 +++++
include/hw/arm/virt.h | 5 -----
hw/arm/sbsa-ref.c | 5 -----
3 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/include/exec/hwaddr.h b/include/exec/hwaddr.h
index a71c93cc810a..8f16d179a885 100644
--- a/include/exec/hwaddr.h
+++ b/include/exec/hwaddr.h
@@ -18,4 +18,9 @@ typedef uint64_t hwaddr;
#define HWADDR_PRIx PRIx64
#define HWADDR_PRIX PRIX64
+typedef struct MemMapEntry {
+ hwaddr base;
+ hwaddr size;
+} MemMapEntry;
+
#endif
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index d018a4f29788..655b895d5eba 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -111,11 +111,6 @@ typedef enum VirtGICType {
VIRT_GIC_VERSION_NOSEL,
} VirtGICType;
-typedef struct MemMapEntry {
- hwaddr base;
- hwaddr size;
-} MemMapEntry;
-
struct VirtMachineClass {
MachineClass parent;
bool disallow_affinity_adjustment;
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index 257ada942550..9c3a893bedfd 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -80,11 +80,6 @@ enum {
SBSA_EHCI,
};
-typedef struct MemMapEntry {
- hwaddr base;
- hwaddr size;
-} MemMapEntry;
-
struct SBSAMachineState {
MachineState parent;
struct arm_boot_info bootinfo;
--
2.27.0
- [PATCH v3 02/12] acpi: add acpi_dsdt_add_gpex, (continued)
- [PATCH v3 02/12] acpi: add acpi_dsdt_add_gpex, Gerd Hoffmann, 2020/09/28
- [PATCH v3 06/12] microvm/pcie: add 64bit mmio window, Gerd Hoffmann, 2020/09/28
- [PATCH v3 11/12] acpi/gpex: no reason to use a method for _CRS, Gerd Hoffmann, 2020/09/28
- [PATCH v3 10/12] tests/acpi: add microvm pcie test, Gerd Hoffmann, 2020/09/28
- [PATCH v3 05/12] microvm: add pcie support, Gerd Hoffmann, 2020/09/28
- [PATCH v3 07/12] tests/acpi: allow updates for expected data files, Gerd Hoffmann, 2020/09/28
- [PATCH v3 04/12] microvm: add irq table, Gerd Hoffmann, 2020/09/28
- [PATCH v3 12/12] tests/acpi: update expected data files, Gerd Hoffmann, 2020/09/28
- [PATCH v3 09/12] tests/acpi: factor out common microvm test setup, Gerd Hoffmann, 2020/09/28
- [PATCH v3 08/12] tests/acpi: add empty tests/data/acpi/microvm/DSDT.pcie file, Gerd Hoffmann, 2020/09/28
- [PATCH v3 01/12] move MemMapEntry,
Gerd Hoffmann <=