[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/10] hw/loongarch: rename macro prefix LS_PCI to LS7A_PCI
From: |
Xiaojuan Yang |
Subject: |
[PATCH 01/10] hw/loongarch: rename macro prefix LS_PCI to LS7A_PCI |
Date: |
Wed, 22 Jun 2022 18:42:52 +0800 |
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(-)
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
--
2.31.1
- [PATCH 00/10] Add functions for LoongArch virt machine, Xiaojuan Yang, 2022/06/22
- [PATCH 02/10] hw/loongarch: Add fw_cfg table support, Xiaojuan Yang, 2022/06/22
- [PATCH 08/10] hw/loongarch: Fix ipi device access of 64bits, Xiaojuan Yang, 2022/06/22
- [PATCH 04/10] hw/loongarch: Add linux kernel booting support, Xiaojuan Yang, 2022/06/22
- [PATCH 03/10] hw/loongarch: Add uefi bios loading support, Xiaojuan Yang, 2022/06/22
- [PATCH 06/10] hw/loongarch: Add acpi ged support, Xiaojuan Yang, 2022/06/22
- [PATCH 10/10] target/loongarch: Add lock when writing timer clear reg, Xiaojuan Yang, 2022/06/22
- [PATCH 07/10] hw/loongarch: Add fdt support, Xiaojuan Yang, 2022/06/22
- [PATCH 05/10] hw/loongarch: Add smbios support, Xiaojuan Yang, 2022/06/22
- [PATCH 09/10] target/loongarch: Fix the meaning of ECFG reg's VS field, Xiaojuan Yang, 2022/06/22
- [PATCH 01/10] hw/loongarch: rename macro prefix LS_PCI to LS7A_PCI,
Xiaojuan Yang <=