1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2024 Loongson Technology Corporation Limited
4  */
5 
6 #ifndef _DRIVERS_IRQCHIP_IRQ_LOONGSON_H
7 #define _DRIVERS_IRQCHIP_IRQ_LOONGSON_H
8 
9 int find_pch_pic(u32 gsi);
10 
11 int liointc_acpi_init(struct irq_domain *parent,
12 					struct acpi_madt_lio_pic *acpi_liointc);
13 int eiointc_acpi_init(struct irq_domain *parent,
14 					struct acpi_madt_eio_pic *acpi_eiointc);
15 int avecintc_acpi_init(struct irq_domain *parent);
16 
17 int htvec_acpi_init(struct irq_domain *parent,
18 					struct acpi_madt_ht_pic *acpi_htvec);
19 int pch_lpc_acpi_init(struct irq_domain *parent,
20 					struct acpi_madt_lpc_pic *acpi_pchlpc);
21 int pch_pic_acpi_init(struct irq_domain *parent,
22 					struct acpi_madt_bio_pic *acpi_pchpic);
23 int pch_msi_acpi_init(struct irq_domain *parent,
24 					struct acpi_madt_msi_pic *acpi_pchmsi);
25 int pch_msi_acpi_init_avec(struct irq_domain *parent);
26 
27 #endif /* _DRIVERS_IRQCHIP_IRQ_LOONGSON_H */
28