fdt_irqchip.h 513 B

1234567891011121314151617181920212223242526
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2020 Western Digital Corporation or its affiliates.
  5. *
  6. * Authors:
  7. * Anup Patel <anup.patel@wdc.com>
  8. */
  9. #ifndef __FDT_IRQCHIP_H__
  10. #define __FDT_IRQCHIP_H__
  11. #include <sbi/sbi_types.h>
  12. struct fdt_irqchip {
  13. const struct fdt_match *match_table;
  14. int (*cold_init)(void *fdt, int nodeoff, const struct fdt_match *match);
  15. int (*warm_init)(void);
  16. void (*exit)(void);
  17. };
  18. void fdt_irqchip_exit(void);
  19. int fdt_irqchip_init(bool cold_boot);
  20. #endif