aboutsummaryrefslogtreecommitdiff
path: root/machine/fdt.h
diff options
context:
space:
mode:
authorWesley W. Terpstra <wesley@sifive.com>2017-04-05 14:53:01 -0700
committerWesley W. Terpstra <wesley@sifive.com>2017-04-05 16:11:36 -0700
commitcd558016be4fdc99055814bd1adcfc2962b425c0 (patch)
tree6404740e410c0df2d8bfd5d08289c58a1c1bc441 /machine/fdt.h
parentd1200e3a54e9328d37833a4a155c6549c03a654f (diff)
downloadriscv-pk-cd558016be4fdc99055814bd1adcfc2962b425c0.zip
riscv-pk-cd558016be4fdc99055814bd1adcfc2962b425c0.tar.gz
riscv-pk-cd558016be4fdc99055814bd1adcfc2962b425c0.tar.bz2
fdt: support redaction
Diffstat (limited to 'machine/fdt.h')
-rw-r--r--machine/fdt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/machine/fdt.h b/machine/fdt.h
index 7f44db6..235bb2e 100644
--- a/machine/fdt.h
+++ b/machine/fdt.h
@@ -33,7 +33,7 @@ struct fdt_scan_node {
struct fdt_scan_prop {
const struct fdt_scan_node *node;
const char *name;
- const uint32_t *value;
+ uint32_t *value;
int len; // in bytes of value
};
@@ -41,7 +41,7 @@ struct fdt_cb {
void (*open)(const struct fdt_scan_node *node, void *extra);
void (*prop)(const struct fdt_scan_prop *prop, void *extra);
void (*done)(const struct fdt_scan_node *node, void *extra); // last property was seen
- void (*close)(const struct fdt_scan_node *node, void *extra);
+ int (*close)(const struct fdt_scan_node *node, void *extra); // -1 => delete the node + children
void *extra;
};