linux/drivers/irqchip/irq-al-fic.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 */

#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>

/* FIC Registers */
#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)
{}

/*
 * al_fic_wire_init() - initialize and configure fic in wire mode
 * @of_node: optional pointer to interrupt controller's device tree node.
 * @base: mmio to fic register
 * @name: name of the fic
 * @parent_irq: interrupt of parent
 *
 * This API will configure the fic hardware to to work in wire mode.
 * In wire mode, fic hardware is generating a wire ("wired") interrupt.
 * Interrupt can be generated based on positive edge or level - configuration is
 * to be determined based on connected hardware to this 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);