hw/riscv: Move sifive_u_prci model to hw/misc
[qemu/ar7.git] / include / hw / misc / imx7_gpr.h
blobe19373d2745fc8d68f73b9164d98fa70e90a0b88
1 /*
2 * Copyright (c) 2017, Impinj, Inc.
4 * i.MX7 GPR IP block emulation code
6 * Author: Andrey Smirnov <andrew.smirnov@gmail.com>
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.
9 * See the COPYING file in the top-level directory.
12 #ifndef IMX7_GPR_H
13 #define IMX7_GPR_H
15 #include "qemu/bitops.h"
16 #include "hw/sysbus.h"
18 #define TYPE_IMX7_GPR "imx7.gpr"
19 #define IMX7_GPR(obj) OBJECT_CHECK(IMX7GPRState, (obj), TYPE_IMX7_GPR)
21 typedef struct IMX7GPRState {
22 /* <private> */
23 SysBusDevice parent_obj;
25 MemoryRegion mmio;
26 } IMX7GPRState;
28 #endif /* IMX7_GPR_H */