xref: /openbmc/qemu/include/hw/misc/mchp_pfsoc_sysreg.h (revision 0f25065cb616f74729383fbf30369c374305ebb1)
1*0f25065cSBin Meng /*
2*0f25065cSBin Meng  * Microchip PolarFire SoC SYSREG module emulation
3*0f25065cSBin Meng  *
4*0f25065cSBin Meng  * Copyright (c) 2020 Wind River Systems, Inc.
5*0f25065cSBin Meng  *
6*0f25065cSBin Meng  * Author:
7*0f25065cSBin Meng  *   Bin Meng <bin.meng@windriver.com>
8*0f25065cSBin Meng  *
9*0f25065cSBin Meng  * This program is free software; you can redistribute it and/or
10*0f25065cSBin Meng  * modify it under the terms of the GNU General Public License as
11*0f25065cSBin Meng  * published by the Free Software Foundation; either version 2 or
12*0f25065cSBin Meng  * (at your option) version 3 of the License.
13*0f25065cSBin Meng  *
14*0f25065cSBin Meng  * This program is distributed in the hope that it will be useful,
15*0f25065cSBin Meng  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16*0f25065cSBin Meng  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*0f25065cSBin Meng  * GNU General Public License for more details.
18*0f25065cSBin Meng  *
19*0f25065cSBin Meng  * You should have received a copy of the GNU General Public License along
20*0f25065cSBin Meng  * with this program; if not, see <http://www.gnu.org/licenses/>.
21*0f25065cSBin Meng  */
22*0f25065cSBin Meng 
23*0f25065cSBin Meng #ifndef MCHP_PFSOC_SYSREG_H
24*0f25065cSBin Meng #define MCHP_PFSOC_SYSREG_H
25*0f25065cSBin Meng 
26*0f25065cSBin Meng #define MCHP_PFSOC_SYSREG_REG_SIZE  0x2000
27*0f25065cSBin Meng 
28*0f25065cSBin Meng typedef struct MchpPfSoCSysregState {
29*0f25065cSBin Meng     SysBusDevice parent;
30*0f25065cSBin Meng     MemoryRegion sysreg;
31*0f25065cSBin Meng } MchpPfSoCSysregState;
32*0f25065cSBin Meng 
33*0f25065cSBin Meng #define TYPE_MCHP_PFSOC_SYSREG "mchp.pfsoc.sysreg"
34*0f25065cSBin Meng 
35*0f25065cSBin Meng #define MCHP_PFSOC_SYSREG(obj) \
36*0f25065cSBin Meng     OBJECT_CHECK(MchpPfSoCSysregState, (obj), \
37*0f25065cSBin Meng                  TYPE_MCHP_PFSOC_SYSREG)
38*0f25065cSBin Meng 
39*0f25065cSBin Meng #endif /* MCHP_PFSOC_SYSREG_H */
40