diff mbox series

[01/10] hw/loongarch: rename macro prefix LS_PCI to LS7A_PCI

Message ID 20220622104301.804447-2-yangxiaojuan@loongson.cn (mailing list archive)
State New, archived
Headers show
Series Add functions for LoongArch virt machine | expand

Commit Message

Xiaojuan Yang June 22, 2022, 10:42 a.m. UTC
Rename macro LS_PCIECFG_xxx to LS7A_PCI_CFG_xxx to keep consistency
with other macros.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
---
 hw/loongarch/loongson3.c   | 4 ++--
 include/hw/pci-host/ls7a.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Richard Henderson June 22, 2022, 3:05 p.m. UTC | #1
On 6/22/22 03:42, Xiaojuan Yang wrote:
> Rename macro LS_PCIECFG_xxx to LS7A_PCI_CFG_xxx to keep consistency
> with other macros.
> 
> Signed-off-by: Xiaojuan Yang<yangxiaojuan@loongson.cn>
> ---
>   hw/loongarch/loongson3.c   | 4 ++--
>   include/hw/pci-host/ls7a.h | 4 ++--
>   2 files changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
diff mbox series

Patch

diff --git a/hw/loongarch/loongson3.c b/hw/loongarch/loongson3.c
index bd20ebbb78..18cb2f61da 100644
--- a/hw/loongarch/loongson3.c
+++ b/hw/loongarch/loongson3.c
@@ -121,8 +121,8 @@  static void loongarch_devices_init(DeviceState *pch_pic)
     ecam_alias = g_new0(MemoryRegion, 1);
     ecam_reg = sysbus_mmio_get_region(d, 0);
     memory_region_init_alias(ecam_alias, OBJECT(gpex_dev), "pcie-ecam",
-                             ecam_reg, 0, LS_PCIECFG_SIZE);
-    memory_region_add_subregion(get_system_memory(), LS_PCIECFG_BASE,
+                             ecam_reg, 0, LS7A_PCI_CFG_SIZE);
+    memory_region_add_subregion(get_system_memory(), LS7A_PCI_CFG_BASE,
                                 ecam_alias);
 
     /* Map PCI mem space */
diff --git a/include/hw/pci-host/ls7a.h b/include/hw/pci-host/ls7a.h
index 08c5f78be2..53e9b18f3a 100644
--- a/include/hw/pci-host/ls7a.h
+++ b/include/hw/pci-host/ls7a.h
@@ -18,8 +18,8 @@ 
 #define LS7A_PCI_MEM_BASE        0x40000000UL
 #define LS7A_PCI_MEM_SIZE        0x40000000UL
 #define LS7A_PCI_IO_OFFSET      0x4000
-#define LS_PCIECFG_BASE         0x20000000
-#define LS_PCIECFG_SIZE         0x08000000
+#define LS7A_PCI_CFG_BASE         0x20000000
+#define LS7A_PCI_CFG_SIZE         0x08000000
 #define LS7A_PCI_IO_BASE        0x18004000UL
 #define LS7A_PCI_IO_SIZE        0xC000