hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/of_reserved_mem.h
....@@ -3,6 +3,7 @@
33 #define __OF_RESERVED_MEM_H
44
55 #include <linux/device.h>
6
+#include <linux/of.h>
67
78 struct of_phandle_args;
89 struct reserved_mem_ops;
....@@ -33,14 +34,10 @@
3334
3435 int of_reserved_mem_device_init_by_idx(struct device *dev,
3536 struct device_node *np, int idx);
37
+int of_reserved_mem_device_init_by_name(struct device *dev,
38
+ struct device_node *np,
39
+ const char *name);
3640 void of_reserved_mem_device_release(struct device *dev);
37
-
38
-int early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
39
- phys_addr_t align,
40
- phys_addr_t start,
41
- phys_addr_t end,
42
- bool nomap,
43
- phys_addr_t *res_base);
4441
4542 void fdt_init_reserved_mem(void);
4643 void fdt_reserved_mem_save_node(unsigned long node, const char *uname,
....@@ -52,6 +49,14 @@
5249 {
5350 return -ENOSYS;
5451 }
52
+
53
+static inline int of_reserved_mem_device_init_by_name(struct device *dev,
54
+ struct device_node *np,
55
+ const char *name)
56
+{
57
+ return -ENOSYS;
58
+}
59
+
5560 static inline void of_reserved_mem_device_release(struct device *pdev) { }
5661
5762 static inline void fdt_init_reserved_mem(void) { }