libfdt: Sequential write support

This patch adds code to libfdt to create flat trees from scratch, writing
sequentially.
This commit is contained in:
David Gibson 2006-11-29 16:45:46 +11:00
parent 3aa4cfd66b
commit 063693a9e4
10 changed files with 386 additions and 11 deletions

View file

@ -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 */