mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen: move declarations of device_tree_get_{reg,u32}() to xen/device_tree.h
The definitions of device_tree_get_reg() and device_tree_get_u32() are already in common code, so move their prototypes there as well. Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com> Reviewed-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
1 parent
4ce671963e
commit
fc24430d97
2 files changed
+6
-6
No files matched your search
@@ -53,12 +53,6 @@ void setup_mm(void);
|
||||
extern uint32_t hyp_traps_vector[];
|
||||
void init_traps(void);
|
||||
|
||||
void device_tree_get_reg(const __be32 **cell, uint32_t address_cells,
|
||||
uint32_t size_cells, paddr_t *start, paddr_t *size);
|
||||
|
||||
u32 device_tree_get_u32(const void *fdt, int node,
|
||||
const char *prop_name, u32 dflt);
|
||||
|
||||
int handle_device(struct domain *d, struct dt_device_node *dev, p2m_type_t p2mt,
|
||||
struct rangeset *iomem_ranges, struct rangeset *irq_ranges);
|
||||
|
||||
|
||||
@@ -949,6 +949,12 @@ int dt_get_pci_domain_nr(struct dt_device_node *node);
|
||||
|
||||
struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle);
|
||||
|
||||
void device_tree_get_reg(const __be32 **cell, uint32_t address_cells,
|
||||
uint32_t size_cells, paddr_t *start, paddr_t *size);
|
||||
|
||||
u32 device_tree_get_u32(const void *fdt, int node,
|
||||
const char *prop_name, u32 dflt);
|
||||
|
||||
#ifdef CONFIG_DEVICE_TREE_DEBUG
|
||||
#define dt_dprintk(fmt, args...) \
|
||||
printk(XENLOG_DEBUG fmt, ## args)
|
||||
|
||||