linux/drivers/irqchip/irq-mst-intc.c

// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
/*
 * Copyright (c) 2020 MediaTek Inc.
 * Author Mark-PK Tsai <[email protected]>
 */
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/irqchip.h>
#include <linux/irqdomain.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/syscore_ops.h>

#define MST_INTC_MAX_IRQS

#define INTC_MASK
#define INTC_REV_POLARITY
#define INTC_EOI

#ifdef CONFIG_PM_SLEEP
static LIST_HEAD(mst_intc_list);
#endif

struct mst_intc_chip_data {};

static void mst_set_irq(struct irq_data *d, u32 offset)
{}

static void mst_clear_irq(struct irq_data *d, u32 offset)
{}

static void mst_intc_mask_irq(struct irq_data *d)
{}

static void mst_intc_unmask_irq(struct irq_data *d)
{}

static void mst_intc_eoi_irq(struct irq_data *d)
{}

static int mst_irq_chip_set_type(struct irq_data *data, unsigned int type)
{}

static struct irq_chip mst_intc_chip =;

#ifdef CONFIG_PM_SLEEP
static void mst_intc_polarity_save(struct mst_intc_chip_data *cd)
{}

static void mst_intc_polarity_restore(struct mst_intc_chip_data *cd)
{}

static void mst_irq_resume(void)
{}

static int mst_irq_suspend(void)
{}

static struct syscore_ops mst_irq_syscore_ops =;

static int __init mst_irq_pm_init(void)
{}
late_initcall(mst_irq_pm_init);
#endif

static int mst_intc_domain_translate(struct irq_domain *d,
				     struct irq_fwspec *fwspec,
				     unsigned long *hwirq,
				     unsigned int *type)
{}

static int mst_intc_domain_alloc(struct irq_domain *domain, unsigned int virq,
				 unsigned int nr_irqs, void *data)
{}

static const struct irq_domain_ops mst_intc_domain_ops =;

static int __init mst_intc_of_init(struct device_node *dn,
				   struct device_node *parent)
{}

IRQCHIP_DECLARE(mst_intc, "mstar,mst-intc", mst_intc_of_init);