]> git.proxmox.com Git - qemu.git/blame - device_tree.h
Version 1.0.1
[qemu.git] / device_tree.h
CommitLineData
f652e6af
AJ
1/*
2 * Header with function prototypes to help device tree manipulation using
3 * libfdt. It also provides functions to read entries from device tree proc
4 * interface.
5 *
6 * Copyright 2008 IBM Corporation.
7 * Authors: Jerone Young <jyoung5@us.ibm.com>
8 * Hollis Blanchard <hollisb@us.ibm.com>
9 *
10 * This work is licensed under the GNU GPL license version 2 or later.
11 *
12 */
13
14#ifndef __DEVICE_TREE_H__
15#define __DEVICE_TREE_H__
16
7ec632b4 17void *load_device_tree(const char *filename_path, int *sizep);
f652e6af
AJ
18
19int qemu_devtree_setprop(void *fdt, const char *node_path,
c4897490 20 const char *property, void *val_array, int size);
f652e6af
AJ
21int qemu_devtree_setprop_cell(void *fdt, const char *node_path,
22 const char *property, uint32_t val);
23int qemu_devtree_setprop_string(void *fdt, const char *node_path,
24 const char *property, const char *string);
d69a8e63 25int qemu_devtree_nop_node(void *fdt, const char *node_path);
80ad7816 26int qemu_devtree_add_subnode(void *fdt, const char *name);
f652e6af
AJ
27
28#endif /* __DEVICE_TREE_H__ */