aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2024-04-26 17:15:47 +0800
committerSong Gao <gaosong@loongson.cn>2024-04-29 10:25:56 +0800
commit572d45e5469eb323a5a8b060ad195b9aac82ecc3 (patch)
treed2a0708c322aa7397aadda8c42785142ff84fda1 /include
parent2904f50a8119a7a3adee68df7baa18c073892061 (diff)
downloadqemu-572d45e5469eb323a5a8b060ad195b9aac82ecc3.zip
qemu-572d45e5469eb323a5a8b060ad195b9aac82ecc3.tar.gz
qemu-572d45e5469eb323a5a8b060ad195b9aac82ecc3.tar.bz2
hw/loongarch: fdt adds pch_msi Controller
fdt adds pch msi controller, we use 'loongson,pch-msi-1.0'. See: https://github.com/torvalds/linux/blob/v6.7/drivers/irqchip/irq-loongson-pch-msi.c https://lore.kernel.org/r/20200528152757.1028711-6-jiaxun.yang@flygoat.com Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Message-Id: <20240426091551.2397867-14-gaosong@loongson.cn>
Diffstat (limited to 'include')
-rw-r--r--include/hw/pci-host/ls7a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci-host/ls7a.h b/include/hw/pci-host/ls7a.h
index fe260f0..cd7c9ec 100644
--- a/include/hw/pci-host/ls7a.h
+++ b/include/hw/pci-host/ls7a.h
@@ -25,6 +25,7 @@
#define VIRT_IOAPIC_REG_BASE (VIRT_PCH_REG_BASE)
#define VIRT_PCH_MSI_ADDR_LOW 0x2FF00000UL
#define VIRT_PCH_REG_SIZE 0x400
+#define VIRT_PCH_MSI_SIZE 0x8
/*
* GSI_BASE is hard-coded with 64 in linux kernel, else kernel fails to boot