Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2017-2018 Bartosz Golaszewski <brgl@bgdev.pl> |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame] | 4 | * Copyright (C) 2020 Bartosz Golaszewski <bgolaszewski@baylibre.com> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _LINUX_IRQ_SIM_H |
| 8 | #define _LINUX_IRQ_SIM_H |
| 9 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 10 | #include <linux/device.h> |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame] | 11 | #include <linux/fwnode.h> |
| 12 | #include <linux/irqdomain.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 13 | |
| 14 | /* |
| 15 | * Provides a framework for allocating simulated interrupts which can be |
| 16 | * requested like normal irqs and enqueued from process context. |
| 17 | */ |
| 18 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame] | 19 | struct irq_domain *irq_domain_create_sim(struct fwnode_handle *fwnode, |
| 20 | unsigned int num_irqs); |
| 21 | struct irq_domain *devm_irq_domain_create_sim(struct device *dev, |
| 22 | struct fwnode_handle *fwnode, |
| 23 | unsigned int num_irqs); |
| 24 | void irq_domain_remove_sim(struct irq_domain *domain); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 25 | |
| 26 | #endif /* _LINUX_IRQ_SIM_H */ |