diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-09-30 15:57:14 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-19 07:01:09 +0200 |
commit | 2679534b03a5e1c89652f470906e428b8c971afc (patch) | |
tree | 0810ee530570b22a73eb6b8cef88e0874efebc2d /cpukit/include/libfdt.h | |
parent | Fix some typing errors in libfdt.h and livetree.c (diff) | |
download | rtems-2679534b03a5e1c89652f470906e428b8c971afc.tar.bz2 |
libfdt: Add new errors for the overlay code
Add a few new error codes to report the failure conditions we might
encounter in the overlay application code:
- FDT_ERR_BADOVERLAY, when an overlay cannot be parsed, even though its
structure is correct
- FDT_ERR_NOPHANDLES, when we ran out of available phandles and we
cannot use a new phandle without either using an invalid one (-1 or
0), or one already used.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/libfdt.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/include/libfdt.h b/cpukit/include/libfdt.h index ecb11fc9e9..361cc6c719 100644 --- a/cpukit/include/libfdt.h +++ b/cpukit/include/libfdt.h @@ -126,7 +126,16 @@ * value. For example: a property expected to contain a string list * is not NUL-terminated within the length of its value. */ -#define FDT_ERR_MAX 15 +#define FDT_ERR_BADOVERLAY 16 + /* FDT_ERR_BADOVERLAY: The device tree overlay, while + * correctly structured, cannot be applied due to some + * unexpected or missing value, property or node. */ + +#define FDT_ERR_NOPHANDLES 17 + /* FDT_ERR_NOPHANDLES: The device tree doesn't have any + * phandle available anymore without causing an overflow */ + +#define FDT_ERR_MAX 17 /**********************************************************************/ /* Low-level functions (you probably don't need these) */ |