mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/intc/loongarch_ipi: Rename as loongson_ipi
This device will be shared among LoongArch and MIPS based Loongson machine, rename it as loongson_ipi to reflect this nature. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240508-loongson3-ipi-v1-2-1a7b67704664@flygoat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
39b3ae11b0
commit
b4a12dfc21
9 changed files with 366 additions and 15 deletions
|
@ -1,12 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/*
|
||||
* LoongArch ipi interrupt header files
|
||||
* Loongson ipi interrupt header files
|
||||
*
|
||||
* Copyright (C) 2021 Loongson Technology Corporation Limited
|
||||
*/
|
||||
|
||||
#ifndef HW_LOONGARCH_IPI_H
|
||||
#define HW_LOONGARCH_IPI_H
|
||||
#ifndef HW_LOONGSON_IPI_H
|
||||
#define HW_LOONGSON_IPI_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
|
@ -30,8 +30,8 @@
|
|||
|
||||
#define IPI_MBX_NUM 4
|
||||
|
||||
#define TYPE_LOONGARCH_IPI "loongarch_ipi"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(LoongArchIPI, LOONGARCH_IPI)
|
||||
#define TYPE_LOONGSON_IPI "loongson_ipi"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(LoongsonIPI, LOONGSON_IPI)
|
||||
|
||||
typedef struct IPICore {
|
||||
uint32_t status;
|
||||
|
@ -43,7 +43,7 @@ typedef struct IPICore {
|
|||
qemu_irq irq;
|
||||
} IPICore;
|
||||
|
||||
struct LoongArchIPI {
|
||||
struct LoongsonIPI {
|
||||
SysBusDevice parent_obj;
|
||||
MemoryRegion ipi_iocsr_mem;
|
||||
MemoryRegion ipi64_iocsr_mem;
|
|
@ -11,7 +11,7 @@
|
|||
#include "target/loongarch/cpu.h"
|
||||
#include "hw/boards.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "hw/intc/loongarch_ipi.h"
|
||||
#include "hw/intc/loongson_ipi.h"
|
||||
#include "hw/block/flash.h"
|
||||
#include "hw/loongarch/boot.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue