.. | .. |
---|
3 | 3 | #define __OF_RESERVED_MEM_H |
---|
4 | 4 | |
---|
5 | 5 | #include <linux/device.h> |
---|
| 6 | +#include <linux/of.h> |
---|
6 | 7 | |
---|
7 | 8 | struct of_phandle_args; |
---|
8 | 9 | struct reserved_mem_ops; |
---|
.. | .. |
---|
33 | 34 | |
---|
34 | 35 | int of_reserved_mem_device_init_by_idx(struct device *dev, |
---|
35 | 36 | 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); |
---|
36 | 40 | 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); |
---|
44 | 41 | |
---|
45 | 42 | void fdt_init_reserved_mem(void); |
---|
46 | 43 | void fdt_reserved_mem_save_node(unsigned long node, const char *uname, |
---|
.. | .. |
---|
52 | 49 | { |
---|
53 | 50 | return -ENOSYS; |
---|
54 | 51 | } |
---|
| 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 | + |
---|
55 | 60 | static inline void of_reserved_mem_device_release(struct device *pdev) { } |
---|
56 | 61 | |
---|
57 | 62 | static inline void fdt_init_reserved_mem(void) { } |
---|