mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
789 B
26 lines
789 B
/* SPDX-License-Identifier: GPL-2.0+ */ |
|
/* |
|
* Copyright (C) 2017-2018 Bartosz Golaszewski <[email protected]> |
|
* Copyright (C) 2020 Bartosz Golaszewski <[email protected]> |
|
*/ |
|
|
|
#ifndef _LINUX_IRQ_SIM_H |
|
#define _LINUX_IRQ_SIM_H |
|
|
|
#include <linux/device.h> |
|
#include <linux/fwnode.h> |
|
#include <linux/irqdomain.h> |
|
|
|
/* |
|
* Provides a framework for allocating simulated interrupts which can be |
|
* requested like normal irqs and enqueued from process context. |
|
*/ |
|
|
|
struct irq_domain *irq_domain_create_sim(struct fwnode_handle *fwnode, |
|
unsigned int num_irqs); |
|
struct irq_domain *devm_irq_domain_create_sim(struct device *dev, |
|
struct fwnode_handle *fwnode, |
|
unsigned int num_irqs); |
|
void irq_domain_remove_sim(struct irq_domain *domain); |
|
|
|
#endif /* _LINUX_IRQ_SIM_H */
|
|
|