sifive: Move QOM typedefs and add missing includes
[qemu.git] / include / hw / misc / a9scu.h
1 /*
2 * Cortex-A9MPCore Snoop Control Unit (SCU) emulation.
3 *
4 * Copyright (c) 2009 CodeSourcery.
5 * Copyright (c) 2011 Linaro Limited.
6 * Written by Paul Brook, Peter Maydell.
7 *
8 * This code is licensed under the GPL.
9 */
10 #ifndef HW_MISC_A9SCU_H
11 #define HW_MISC_A9SCU_H
12
13 #include "hw/sysbus.h"
14 #include "qom/object.h"
15
16 /* A9MP private memory region. */
17
18 struct A9SCUState {
19 /*< private >*/
20 SysBusDevice parent_obj;
21 /*< public >*/
22
23 MemoryRegion iomem;
24 uint32_t control;
25 uint32_t status;
26 uint32_t num_cpu;
27 };
28 typedef struct A9SCUState A9SCUState;
29
30 #define TYPE_A9_SCU "a9-scu"
31 DECLARE_INSTANCE_CHECKER(A9SCUState, A9_SCU,
32 TYPE_A9_SCU)
33
34 #endif