.. | .. |
---|
24 | 24 | const char *alias; |
---|
25 | 25 | struct device_node *np; |
---|
26 | 26 | int id; |
---|
27 | | - char stem[0]; |
---|
| 27 | + char stem[]; |
---|
28 | 28 | }; |
---|
| 29 | + |
---|
| 30 | +#if defined(CONFIG_SPARC) |
---|
| 31 | +#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2 |
---|
| 32 | +#else |
---|
| 33 | +#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 |
---|
| 34 | +#endif |
---|
| 35 | + |
---|
| 36 | +#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 |
---|
29 | 37 | |
---|
30 | 38 | extern struct mutex of_mutex; |
---|
31 | 39 | extern struct list_head aliases_lookup; |
---|
.. | .. |
---|
76 | 84 | int of_resolve_phandles(struct device_node *tree); |
---|
77 | 85 | #endif |
---|
78 | 86 | |
---|
79 | | -#if defined(CONFIG_OF_DYNAMIC) |
---|
80 | | -void __of_free_phandle_cache_entry(phandle handle); |
---|
81 | | -#endif |
---|
| 87 | +void __of_phandle_cache_inv_entry(phandle handle); |
---|
82 | 88 | |
---|
83 | 89 | #if defined(CONFIG_OF_OVERLAY) |
---|
84 | 90 | void of_overlay_mutex_lock(void); |
---|
85 | 91 | void of_overlay_mutex_unlock(void); |
---|
86 | | -int of_free_phandle_cache(void); |
---|
87 | | -void of_populate_phandle_cache(void); |
---|
88 | 92 | #else |
---|
89 | 93 | static inline void of_overlay_mutex_lock(void) {}; |
---|
90 | 94 | static inline void of_overlay_mutex_unlock(void) {}; |
---|
.. | .. |
---|
150 | 154 | #define for_each_transaction_entry_reverse(_oft, _te) \ |
---|
151 | 155 | list_for_each_entry_reverse(_te, &(_oft)->te_list, node) |
---|
152 | 156 | |
---|
| 157 | +extern int of_bus_n_addr_cells(struct device_node *np); |
---|
| 158 | +extern int of_bus_n_size_cells(struct device_node *np); |
---|
| 159 | + |
---|
| 160 | +struct bus_dma_region; |
---|
| 161 | +#if defined(CONFIG_OF_ADDRESS) && defined(CONFIG_HAS_DMA) |
---|
| 162 | +int of_dma_get_range(struct device_node *np, |
---|
| 163 | + const struct bus_dma_region **map); |
---|
| 164 | +#else |
---|
| 165 | +static inline int of_dma_get_range(struct device_node *np, |
---|
| 166 | + const struct bus_dma_region **map) |
---|
| 167 | +{ |
---|
| 168 | + return -ENODEV; |
---|
| 169 | +} |
---|
| 170 | +#endif |
---|
| 171 | + |
---|
153 | 172 | #endif /* _LINUX_OF_PRIVATE_H */ |
---|