mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-09 05:05:20 -05:00
libfdt: Export accessors for header fields
This patch adds exported accessor macros for the various flat device tree header fields to libfdt.h. This necessitates moving some of the byte-swapping functions. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
41722c230c
commit
ede25deae6
8 changed files with 42 additions and 50 deletions
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef _LIBFDT_ENV_H
|
||||
#define _LIBFDT_ENV_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
|
@ -16,4 +19,4 @@
|
|||
#define cpu_to_fdt64(x) (bswap_64((x)))
|
||||
#endif
|
||||
|
||||
#include "libfdt.h"
|
||||
#endif /* _LIBFDT_ENV_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue