Merge tag 'iommu-updates-v4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[cascardo/linux.git] / include / linux / of_pci.h
index b969e94..7fd5cfc 100644 (file)
@@ -17,6 +17,9 @@ int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin);
 int of_pci_parse_bus_range(struct device_node *node, struct resource *res);
 int of_get_pci_domain_nr(struct device_node *node);
 void of_pci_check_probe_only(void);
+int of_pci_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
 static inline int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq)
 {
@@ -52,6 +55,13 @@ of_get_pci_domain_nr(struct device_node *node)
        return -1;
 }
 
+static inline int of_pci_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;
+}
+
 static inline void of_pci_check_probe_only(void) { }
 #endif