aclint_mswi.h 631 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2021 Western Digital Corporation or its affiliates.
  5. *
  6. * Authors:
  7. * Anup Patel <anup.patel@wdc.com>
  8. */
  9. #ifndef __IPI_ACLINT_MSWI_H__
  10. #define __IPI_ACLINT_MSWI_H__
  11. #include <sbi/sbi_types.h>
  12. #define ACLINT_MSWI_ALIGN 0x1000
  13. #define ACLINT_MSWI_SIZE 0x4000
  14. #define ACLINT_MSWI_MAX_HARTS 4095
  15. #define CLINT_MSWI_OFFSET 0x0000
  16. struct aclint_mswi_data {
  17. /* Public details */
  18. unsigned long addr;
  19. unsigned long size;
  20. u32 first_hartid;
  21. u32 hart_count;
  22. };
  23. int aclint_mswi_warm_init(void);
  24. int aclint_mswi_cold_init(struct aclint_mswi_data *mswi);
  25. #endif