10f25065cSBin Meng /* 20f25065cSBin Meng * Microchip PolarFire SoC SYSREG module emulation 30f25065cSBin Meng * 40f25065cSBin Meng * Copyright (c) 2020 Wind River Systems, Inc. 50f25065cSBin Meng * 60f25065cSBin Meng * Author: 70f25065cSBin Meng * Bin Meng <bin.meng@windriver.com> 80f25065cSBin Meng * 90f25065cSBin Meng * This program is free software; you can redistribute it and/or 100f25065cSBin Meng * modify it under the terms of the GNU General Public License as 110f25065cSBin Meng * published by the Free Software Foundation; either version 2 or 120f25065cSBin Meng * (at your option) version 3 of the License. 130f25065cSBin Meng * 140f25065cSBin Meng * This program is distributed in the hope that it will be useful, 150f25065cSBin Meng * but WITHOUT ANY WARRANTY; without even the implied warranty of 160f25065cSBin Meng * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 170f25065cSBin Meng * GNU General Public License for more details. 180f25065cSBin Meng * 190f25065cSBin Meng * You should have received a copy of the GNU General Public License along 200f25065cSBin Meng * with this program; if not, see <http://www.gnu.org/licenses/>. 210f25065cSBin Meng */ 220f25065cSBin Meng 230f25065cSBin Meng #ifndef MCHP_PFSOC_SYSREG_H 240f25065cSBin Meng #define MCHP_PFSOC_SYSREG_H 250f25065cSBin Meng 26*7a5951f6SMarkus Armbruster #include "hw/sysbus.h" 27*7a5951f6SMarkus Armbruster 280f25065cSBin Meng #define MCHP_PFSOC_SYSREG_REG_SIZE 0x2000 290f25065cSBin Meng 300f25065cSBin Meng typedef struct MchpPfSoCSysregState { 310f25065cSBin Meng SysBusDevice parent; 320f25065cSBin Meng MemoryRegion sysreg; 33592f0a94SConor Dooley qemu_irq irq; 340f25065cSBin Meng } MchpPfSoCSysregState; 350f25065cSBin Meng 360f25065cSBin Meng #define TYPE_MCHP_PFSOC_SYSREG "mchp.pfsoc.sysreg" 370f25065cSBin Meng 380f25065cSBin Meng #define MCHP_PFSOC_SYSREG(obj) \ 390f25065cSBin Meng OBJECT_CHECK(MchpPfSoCSysregState, (obj), \ 400f25065cSBin Meng TYPE_MCHP_PFSOC_SYSREG) 410f25065cSBin Meng 420f25065cSBin Meng #endif /* MCHP_PFSOC_SYSREG_H */ 43