summaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-12-05 10:43:50 +1100
committerJon Loeliger <jdl@freescale.com>2007-12-05 08:28:44 -0600
commitefbbef8e4f86f8043760f1e48b25ab2795ba3524 (patch)
tree78ab6f7d4509d31ce0f95da33d357e00e60a6d5e /dtc.h
parent80c72a81cffdfde0965853d1ea834352b3e91f89 (diff)
downloaddtc-efbbef8e4f86f8043760f1e48b25ab2795ba3524.tar.gz
dtc: Implement path references
This patch extends dtc syntax to allow references (&label, or &{/full/path}) directly within property definitions, rather than inside a cell list. Such references are expanded to the full path of the referenced node, as a string, instead of to a phandle as references within cell lists are evaluated. A testcase is also included. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.h')
-rw-r--r--dtc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dtc.h b/dtc.h
index 330e274..6528177 100644
--- a/dtc.h
+++ b/dtc.h
@@ -104,6 +104,7 @@ typedef u32 cell_t;
/* Data blobs */
enum markertype {
REF_PHANDLE,
+ REF_PATH,
LABEL,
};
@@ -139,6 +140,8 @@ struct data data_copy_escape_string(const char *s, int len);
struct data data_copy_file(FILE *f, size_t len);
struct data data_append_data(struct data d, const void *p, int len);
+struct data data_insert_at_marker(struct data d, struct marker *m,
+ const void *p, int len);
struct data data_merge(struct data d1, struct data d2);
struct data data_append_cell(struct data d, cell_t word);
struct data data_append_re(struct data d, const struct fdt_reserve_entry *re);