blob: 4ca2f1ef859a5acd1dc5fb74578b3f39251616f4 [file]
/*
* Definitions for hexagon virt board.
*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW_HEXAGONVIRT_H
#define HW_HEXAGONVIRT_H
#include "hw/hexagon/hexagon.h"
#include "target/hexagon/cpu.h"
#define VIRTIO_DEV_COUNT 8
struct HexagonVirtMachineState {
HexagonCommonMachineState parent_obj;
int fdt_size;
MemoryRegion *sys;
MemoryRegion tcm;
MemoryRegion bios;
Clock *apb_clk;
DeviceState *virtio_mmio[VIRTIO_DEV_COUNT];
};
void hexagon_load_fdt(const struct HexagonVirtMachineState *vms);
#define TYPE_HEXAGON_VIRT_MACHINE MACHINE_TYPE_NAME("virt")
OBJECT_DECLARE_SIMPLE_TYPE(HexagonVirtMachineState, HEXAGON_VIRT_MACHINE)
#endif /* HW_HEXAGONVIRT_H */