mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/arm/virt-acpi-build.c: Migrate virtio creation to common location
RISC-V also needs to create the virtio in DSDT in the same way as ARM. So, instead of duplicating the code, move this function to the device specific file which is common across architectures. Suggested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20231218150247.466427-3-sunilvl@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
4c7f4f4f05
commit
57ba843628
4 changed files with 54 additions and 28 deletions
16
include/hw/virtio/virtio-acpi.h
Normal file
16
include/hw/virtio/virtio-acpi.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* ACPI support for virtio
|
||||
*/
|
||||
|
||||
#ifndef VIRTIO_ACPI_H
|
||||
#define VIRTIO_ACPI_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "exec/hwaddr.h"
|
||||
|
||||
void virtio_acpi_dsdt_add(Aml *scope, const hwaddr virtio_mmio_base,
|
||||
const hwaddr virtio_mmio_size, uint32_t mmio_irq,
|
||||
long int start_index, int num);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue