#include <linux/bitfield.h>
#include <linux/irq.h>
#include <linux/irqchip.h>
#include <linux/irqchip/chained_irq.h>
#include <linux/irqdomain.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#define AL_FIC_CAUSE …
#define AL_FIC_SET_CAUSE …
#define AL_FIC_MASK …
#define AL_FIC_CONTROL …
#define CONTROL_TRIGGER_RISING …
#define CONTROL_MASK_MSI_X …
#define NR_FIC_IRQS …
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
enum al_fic_state { … };
struct al_fic { … };
static void al_fic_set_trigger(struct al_fic *fic,
struct irq_chip_generic *gc,
enum al_fic_state new_state)
{ … }
static int al_fic_irq_set_type(struct irq_data *data, unsigned int flow_type)
{ … }
static void al_fic_irq_handler(struct irq_desc *desc)
{ … }
static int al_fic_irq_retrigger(struct irq_data *data)
{ … }
static int al_fic_register(struct device_node *node,
struct al_fic *fic)
{ … }
static struct al_fic *al_fic_wire_init(struct device_node *node,
void __iomem *base,
const char *name,
unsigned int parent_irq)
{ … }
static int __init al_fic_init_dt(struct device_node *node,
struct device_node *parent)
{ … }
IRQCHIP_DECLARE(al_fic, "amazon,al-fic", al_fic_init_dt);