2 * Copyright (C) 2012 Thomas Petazzoni
4 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
11 #ifndef _LINUX_IRQCHIP_H
12 #define _LINUX_IRQCHIP_H
14 #include <linux/acpi.h>
18 * This macro must be used by the different irqchip drivers to declare
19 * the association between their DT compatible string and their
20 * initialization function.
22 * @name: name that must be unique across all IRQCHIP_DECLARE of the
24 * @compstr: compatible string of the irqchip driver
25 * @fn: initialization function
27 #define IRQCHIP_DECLARE(name, compat, fn) OF_DECLARE_2(irqchip, name, compat, fn)
30 * This macro must be used by the different irqchip drivers to declare
31 * the association between their version and their initialization function.
33 * @name: name that must be unique across all IRQCHIP_ACPI_DECLARE of the
35 * @subtable: Subtable to be identified in MADT
36 * @validate: Function to be called on that subtable to check its validity.
38 * @data: data to be checked by the validate function.
39 * @fn: initialization function
41 #define IRQCHIP_ACPI_DECLARE(name, subtable, validate, data, fn) \
42 ACPI_DECLARE_PROBE_ENTRY(irqchip, name, ACPI_SIG_MADT, \
43 subtable, validate, data, fn)
46 void irqchip_init(void);
48 static inline void irqchip_init(void) {}