Merge tag 'iommu-updates-v4.20' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / include / linux / of.h
index 99b0ebf496329f347cf723ad5da07ad5c23bcf9d..bf577ca3c8e77105d6c55be3febc699a0b716b69 100644 (file)
@@ -550,6 +550,10 @@ bool of_console_check(struct device_node *dn, char *name, int index);
 
 extern int of_cpu_node_to_id(struct device_node *np);
 
+int of_map_rid(struct device_node *np, u32 rid,
+              const char *map_name, const char *map_mask_name,
+              struct device_node **target, u32 *id_out);
+
 #else /* CONFIG_OF */
 
 static inline void of_core_init(void)
@@ -952,6 +956,13 @@ static inline int of_cpu_node_to_id(struct device_node *np)
        return -ENODEV;
 }
 
+static inline int of_map_rid(struct device_node *np, u32 rid,
+                            const char *map_name, const char *map_mask_name,
+                            struct device_node **target, u32 *id_out)
+{
+       return -EINVAL;
+}
+
 #define of_match_ptr(_ptr)     NULL
 #define of_match_node(_matches, _node) NULL
 #endif /* CONFIG_OF */