xref: /openbmc/qemu/include/hw/misc/iotkit-sysinfo.h (revision 438c78da)
1 /*
2  * ARM IoTKit system information block
3  *
4  * Copyright (c) 2018 Linaro Limited
5  * Written by Peter Maydell
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License version 2 or
9  *  (at your option) any later version.
10  */
11 
12 /*
13  * This is a model of the "system information block" which is part of the
14  * Arm IoTKit and documented in
15  * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ecm0601256/index.html
16  * QEMU interface:
17  *  + sysbus MMIO region 0: the system information register bank
18  */
19 
20 #ifndef HW_MISC_IOTKIT_SYSINFO_H
21 #define HW_MISC_IOTKIT_SYSINFO_H
22 
23 #include "hw/sysbus.h"
24 
25 #define TYPE_IOTKIT_SYSINFO "iotkit-sysinfo"
26 #define IOTKIT_SYSINFO(obj) OBJECT_CHECK(IoTKitSysInfo, (obj), \
27                                         TYPE_IOTKIT_SYSINFO)
28 
29 typedef struct IoTKitSysInfo {
30     /*< private >*/
31     SysBusDevice parent_obj;
32 
33     /*< public >*/
34     MemoryRegion iomem;
35 } IoTKitSysInfo;
36 
37 #endif
38