diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/irqdomain.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 18f4ab002d2e..f95553fa6872 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h | |||
| @@ -95,10 +95,6 @@ struct irq_domain { | |||
| 95 | 95 | ||
| 96 | /* type of reverse mapping_technique */ | 96 | /* type of reverse mapping_technique */ |
| 97 | unsigned int revmap_type; | 97 | unsigned int revmap_type; |
| 98 | #define IRQ_DOMAIN_MAP_LEGACY 0 /* legacy 8259, gets irqs 1..15 */ | ||
| 99 | #define IRQ_DOMAIN_MAP_NOMAP 1 /* no fast reverse mapping */ | ||
| 100 | #define IRQ_DOMAIN_MAP_LINEAR 2 /* linear map of interrupts */ | ||
| 101 | #define IRQ_DOMAIN_MAP_TREE 3 /* radix tree */ | ||
| 102 | union { | 98 | union { |
| 103 | struct { | 99 | struct { |
| 104 | unsigned int size; | 100 | unsigned int size; |
| @@ -120,11 +116,21 @@ struct irq_domain { | |||
| 120 | 116 | ||
| 121 | #ifdef CONFIG_IRQ_DOMAIN | 117 | #ifdef CONFIG_IRQ_DOMAIN |
| 122 | #ifdef CONFIG_PPC | 118 | #ifdef CONFIG_PPC |
| 123 | extern struct irq_domain *irq_alloc_host(struct device_node *of_node, | 119 | struct irq_domain *irq_domain_add_legacy(struct device_node *of_node, |
| 124 | unsigned int revmap_type, | 120 | struct irq_domain_ops *ops, |
| 125 | unsigned int revmap_arg, | 121 | void *host_data); |
| 126 | struct irq_domain_ops *ops, | 122 | struct irq_domain *irq_domain_add_linear(struct device_node *of_node, |
| 127 | irq_hw_number_t inval_irq); | 123 | unsigned int size, |
| 124 | struct irq_domain_ops *ops, | ||
| 125 | void *host_data); | ||
| 126 | struct irq_domain *irq_domain_add_nomap(struct device_node *of_node, | ||
| 127 | struct irq_domain_ops *ops, | ||
| 128 | void *host_data); | ||
| 129 | struct irq_domain *irq_domain_add_tree(struct device_node *of_node, | ||
| 130 | struct irq_domain_ops *ops, | ||
| 131 | void *host_data); | ||
| 132 | |||
| 133 | |||
| 128 | extern struct irq_domain *irq_find_host(struct device_node *node); | 134 | extern struct irq_domain *irq_find_host(struct device_node *node); |
| 129 | extern void irq_set_default_host(struct irq_domain *host); | 135 | extern void irq_set_default_host(struct irq_domain *host); |
| 130 | extern void irq_set_virq_count(unsigned int count); | 136 | extern void irq_set_virq_count(unsigned int count); |
