of_msi_map_get_device_domain() is PCI specific but it need not be and can be easily changed to be bus agnostic in order to be used by other busses by adding an IRQ domain bus token as an input parameter.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -52,7 +52,8 @@ extern struct irq_domain *of_msi_get_domain(struct device *dev, · 51 unmodified lines | |||
| 52 | struct device_node *np, | 52 | struct device_node *np, |
| 53 | enum irq_domain_bus_token token); | 53 | enum irq_domain_bus_token token); |
| 54 | extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev, | 54 | extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev, |
| 55 | u32 rid); | 55 | u32 id, |
| 56 | u32 bus_token); | ||
| 56 | extern void of_msi_configure(struct device *dev, struct device_node *np); | 57 | extern void of_msi_configure(struct device *dev, struct device_node *np); |
| 57 | u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in); | 58 | u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in); |
| 58 | #else | 59 | #else |
| @@ -85,7 +86,7 @@ static inline struct irq_domain *of_msi_get_domain(struct device *dev, · 26 unmodified lines | |||
| 85 | return NULL; | 86 | return NULL; |
| 86 | } | 87 | } |
| 87 | static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev, | 88 | static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev, |
| 88 | u32 rid) | 89 | u32 id, u32 bus_token) |
| 89 | { | 90 | { |
| 90 | return NULL; | 91 | return NULL; |
| 91 | } | 92 | } |