History

of/irq: make of_msi_map_get_device_domain() bus agnostic

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.

Diana Craciun committed 6 years ago

Commit 6f881ab1 parent 5bda70c3 files · +9 −6Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/of_irq.h+3−2
@@ -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);
54extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev,54extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
55 u32 rid);55 u32 id,
56 u32 bus_token);
56extern void of_msi_configure(struct device *dev, struct device_node *np);57extern void of_msi_configure(struct device *dev, struct device_node *np);
57u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in);58u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in);
58#else59#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}
87static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,88static 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}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t