57ba843628
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>
17 lines
381 B
C
17 lines
381 B
C
/* 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
|