mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-08 12:45:29 -05:00
libfdt: Sequential write support
This patch adds code to libfdt to create flat trees from scratch, writing sequentially.
This commit is contained in:
parent
3aa4cfd66b
commit
063693a9e4
10 changed files with 386 additions and 11 deletions
|
|
@ -34,6 +34,7 @@ struct fdt_property *_fdt_getprop(const struct fdt_header *fdt, int nodeoffset,
|
|||
#define OFFSET_ERROR(code) -(code)
|
||||
#define PTR_ERROR(code) (void *)(-(code))
|
||||
|
||||
#define SW_OFFSET(fdt) ((fdt)->version)
|
||||
#define SW_MAGIC (~FDT_MAGIC)
|
||||
#define SW_SIZE_DT_STRUCT(fdt) ((fdt)->version)
|
||||
|
||||
#endif /* _LIBFDT_INTERNAL_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue