loongson_ipi.h 667 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Loongson ipi interrupt header files
  4. *
  5. * Copyright (C) 2021 Loongson Technology Corporation Limited
  6. */
  7. #ifndef HW_LOONGSON_IPI_H
  8. #define HW_LOONGSON_IPI_H
  9. #include "qom/object.h"
  10. #include "hw/intc/loongson_ipi_common.h"
  11. #include "hw/sysbus.h"
  12. #define TYPE_LOONGSON_IPI "loongson_ipi"
  13. OBJECT_DECLARE_TYPE(LoongsonIPIState, LoongsonIPIClass, LOONGSON_IPI)
  14. struct LoongsonIPIClass {
  15. LoongsonIPICommonClass parent_class;
  16. DeviceRealize parent_realize;
  17. DeviceUnrealize parent_unrealize;
  18. };
  19. struct LoongsonIPIState {
  20. LoongsonIPICommonState parent_obj;
  21. MemoryRegion *ipi_mmio_mem;
  22. };
  23. #endif