130b2f870SAndrey Smirnov /* 230b2f870SAndrey Smirnov * Copyright (c) 2017, Impinj, Inc. 330b2f870SAndrey Smirnov * 430b2f870SAndrey Smirnov * i.MX7 GPR IP block emulation code 530b2f870SAndrey Smirnov * 630b2f870SAndrey Smirnov * Author: Andrey Smirnov <andrew.smirnov@gmail.com> 730b2f870SAndrey Smirnov * 830b2f870SAndrey Smirnov * This work is licensed under the terms of the GNU GPL, version 2 or later. 930b2f870SAndrey Smirnov * See the COPYING file in the top-level directory. 1030b2f870SAndrey Smirnov */ 1130b2f870SAndrey Smirnov 1230b2f870SAndrey Smirnov #ifndef IMX7_GPR_H 1330b2f870SAndrey Smirnov #define IMX7_GPR_H 1430b2f870SAndrey Smirnov 1530b2f870SAndrey Smirnov #include "qemu/bitops.h" 1630b2f870SAndrey Smirnov #include "hw/sysbus.h" 17db1015e9SEduardo Habkost #include "qom/object.h" 1830b2f870SAndrey Smirnov 1930b2f870SAndrey Smirnov #define TYPE_IMX7_GPR "imx7.gpr" 20*8063396bSEduardo Habkost OBJECT_DECLARE_SIMPLE_TYPE(IMX7GPRState, IMX7_GPR) 2130b2f870SAndrey Smirnov 22db1015e9SEduardo Habkost struct IMX7GPRState { 2330b2f870SAndrey Smirnov /* <private> */ 2430b2f870SAndrey Smirnov SysBusDevice parent_obj; 2530b2f870SAndrey Smirnov 2630b2f870SAndrey Smirnov MemoryRegion mmio; 27db1015e9SEduardo Habkost }; 2830b2f870SAndrey Smirnov 2930b2f870SAndrey Smirnov #endif /* IMX7_GPR_H */ 30