X-Git-Url: https://git.karo-electronics.de/?p=karo-tx-linux.git;a=blobdiff_plain;f=include%2Flinux%2Fof_irq.h;h=79e1d97bcec3031cd17764645f3aa30eab2fe349;hp=580818d90475a267aa36d1b757e1e1328bf2f0fb;hb=65480703bdaa7b6bd6e397b433f24ef6779b680e;hpb=61dd90224c13ee6eab72822f9f946277a1ddd51f diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index 580818d90475..79e1d97bcec3 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h @@ -47,6 +47,11 @@ extern int of_irq_get_byname(struct device_node *dev, const char *name); extern int of_irq_to_resource_table(struct device_node *dev, struct resource *res, int nr_irqs); extern void of_msi_configure(struct device *dev, struct device_node *np); +extern struct irq_domain *of_msi_get_domain(struct device *dev, + struct device_node *np, + enum irq_domain_bus_token token); +extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev, + u32 rid); #else static inline int of_irq_count(struct device_node *dev) { @@ -68,6 +73,17 @@ static inline int of_irq_to_resource_table(struct device_node *dev, static inline void of_msi_configure(struct device *dev, struct device_node *np) { } +static inline struct irq_domain *of_msi_get_domain(struct device *dev, + struct device_node *np, + enum irq_domain_bus_token token) +{ + return NULL; +} +static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev, + u32 rid) +{ + return NULL; +} #endif #if defined(CONFIG_OF_IRQ) || defined(CONFIG_SPARC) @@ -77,6 +93,7 @@ static inline void of_msi_configure(struct device *dev, struct device_node *np) * so declare it here regardless of the CONFIG_OF_IRQ setting. */ extern unsigned int irq_of_parse_and_map(struct device_node *node, int index); +u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in); #else /* !CONFIG_OF && !CONFIG_SPARC */ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, @@ -84,6 +101,12 @@ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, { return 0; } + +static inline u32 of_msi_map_rid(struct device *dev, + struct device_node *msi_np, u32 rid_in) +{ + return rid_in; +} #endif /* !CONFIG_OF */ #endif /* __OF_IRQ_H */