hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/of_pci.h
....@@ -2,11 +2,10 @@
22 #ifndef __OF_PCI_H
33 #define __OF_PCI_H
44
5
-#include <linux/pci.h>
6
-#include <linux/msi.h>
5
+#include <linux/types.h>
6
+#include <linux/errno.h>
77
88 struct pci_dev;
9
-struct of_phandle_args;
109 struct device_node;
1110
1211 #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PCI)
....@@ -14,9 +13,6 @@
1413 unsigned int devfn);
1514 int of_pci_get_devfn(struct device_node *np);
1615 void of_pci_check_probe_only(void);
17
-int of_pci_map_rid(struct device_node *np, u32 rid,
18
- const char *map_name, const char *map_mask_name,
19
- struct device_node **target, u32 *id_out);
2016 #else
2117 static inline struct device_node *of_pci_find_child_device(struct device_node *parent,
2218 unsigned int devfn)
....@@ -25,13 +21,6 @@
2521 }
2622
2723 static inline int of_pci_get_devfn(struct device_node *np)
28
-{
29
- return -EINVAL;
30
-}
31
-
32
-static inline int of_pci_map_rid(struct device_node *np, u32 rid,
33
- const char *map_name, const char *map_mask_name,
34
- struct device_node **target, u32 *id_out)
3524 {
3625 return -EINVAL;
3726 }