hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/of_irq.h
....@@ -32,10 +32,7 @@
3232 }
3333 #endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */
3434
35
-extern int of_irq_domain_map(const struct irq_fwspec *in, struct irq_fwspec *out);
3635 extern int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq);
37
-extern int of_irq_parse_one(struct device_node *device, int index,
38
- struct of_phandle_args *out_irq);
3936 extern unsigned int irq_create_of_mapping(struct of_phandle_args *irq_data);
4037 extern int of_irq_to_resource(struct device_node *dev, int index,
4138 struct resource *r);
....@@ -43,6 +40,8 @@
4340 extern void of_irq_init(const struct of_device_id *matches);
4441
4542 #ifdef CONFIG_OF_IRQ
43
+extern int of_irq_parse_one(struct device_node *device, int index,
44
+ struct of_phandle_args *out_irq);
4645 extern int of_irq_count(struct device_node *dev);
4746 extern int of_irq_get(struct device_node *dev, int index);
4847 extern int of_irq_get_byname(struct device_node *dev, const char *name);
....@@ -53,10 +52,16 @@
5352 struct device_node *np,
5453 enum irq_domain_bus_token token);
5554 extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
56
- u32 rid);
55
+ u32 id,
56
+ u32 bus_token);
5757 extern void of_msi_configure(struct device *dev, struct device_node *np);
58
-u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in);
58
+u32 of_msi_map_id(struct device *dev, struct device_node *msi_np, u32 id_in);
5959 #else
60
+static inline int of_irq_parse_one(struct device_node *device, int index,
61
+ struct of_phandle_args *out_irq)
62
+{
63
+ return -EINVAL;
64
+}
6065 static inline int of_irq_count(struct device_node *dev)
6166 {
6267 return 0;
....@@ -86,17 +91,17 @@
8691 return NULL;
8792 }
8893 static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
89
- u32 rid)
94
+ u32 id, u32 bus_token)
9095 {
9196 return NULL;
9297 }
9398 static inline void of_msi_configure(struct device *dev, struct device_node *np)
9499 {
95100 }
96
-static inline u32 of_msi_map_rid(struct device *dev,
97
- struct device_node *msi_np, u32 rid_in)
101
+static inline u32 of_msi_map_id(struct device *dev,
102
+ struct device_node *msi_np, u32 id_in)
98103 {
99
- return rid_in;
104
+ return id_in;
100105 }
101106 #endif
102107