mchp_pfsoc_sysreg.h 1.2 KB

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