xref: /qemu/include/hw/loongarch/virt.h (revision a8a506c3907093a064dd2d475564e677fb1bf148)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Definitions for loongarch board emulation.
4  *
5  * Copyright (C) 2021 Loongson Technology Corporation Limited
6  */
7 
8 #ifndef HW_LOONGARCH_H
9 #define HW_LOONGARCH_H
10 
11 #include "target/loongarch/cpu.h"
12 #include "hw/boards.h"
13 #include "qemu/queue.h"
14 
15 #define LOONGARCH_MAX_VCPUS     4
16 
17 #define LOONGARCH_ISA_IO_BASE   0x18000000UL
18 #define LOONGARCH_ISA_IO_SIZE   0x0004000
19 
20 struct LoongArchMachineState {
21     /*< private >*/
22     MachineState parent_obj;
23 
24     MemoryRegion lowmem;
25     MemoryRegion highmem;
26     MemoryRegion isa_io;
27 };
28 
29 #define TYPE_LOONGARCH_MACHINE  MACHINE_TYPE_NAME("virt")
30 OBJECT_DECLARE_SIMPLE_TYPE(LoongArchMachineState, LOONGARCH_MACHINE)
31 #endif
32