spapr: Expose the name of the interrupt controller node
[qemu/ar7.git] / include / hw / riscv / riscv_hart.h
blob0671d88a443906762708d92273b9b93a9cac9d17
1 /*
2 * QEMU RISC-V Hart Array interface
4 * Copyright (c) 2017 SiFive, Inc.
6 * Holds the state of a heterogenous array of RISC-V harts
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License,
10 * version 2 or later, as published by the Free Software Foundation.
12 * This program is distributed in the hope it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef HW_RISCV_HART_H
22 #define HW_RISCV_HART_H
24 #define TYPE_RISCV_HART_ARRAY "riscv.hart_array"
26 #define RISCV_HART_ARRAY(obj) \
27 OBJECT_CHECK(RISCVHartArrayState, (obj), TYPE_RISCV_HART_ARRAY)
29 typedef struct RISCVHartArrayState {
30 /*< private >*/
31 SysBusDevice parent_obj;
33 /*< public >*/
34 uint32_t num_harts;
35 char *cpu_type;
36 RISCVCPU *harts;
37 } RISCVHartArrayState;
39 #endif