libfdt_internal.h (c1144d29f405ce1f4e6ede6482beb3d0d09750c6) libfdt_internal.h (f858927fd6ce394a7f431153d44ad0a09e8f49a1)
1#ifndef LIBFDT_INTERNAL_H
2#define LIBFDT_INTERNAL_H
3/*
4 * libfdt - Flat Device Tree manipulation
5 * Copyright (C) 2006 David Gibson, IBM Corporation.
6 *
7 * libfdt is dual licensed: you can use it either under the terms of
8 * the GPL, or the BSD license, at your option.

--- 41 unchanged lines hidden (view full) ---

50 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
51 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 */
53#include <fdt.h>
54
55#define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
56#define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE))
57
1#ifndef LIBFDT_INTERNAL_H
2#define LIBFDT_INTERNAL_H
3/*
4 * libfdt - Flat Device Tree manipulation
5 * Copyright (C) 2006 David Gibson, IBM Corporation.
6 *
7 * libfdt is dual licensed: you can use it either under the terms of
8 * the GPL, or the BSD license, at your option.

--- 41 unchanged lines hidden (view full) ---

50 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
51 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 */
53#include <fdt.h>
54
55#define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
56#define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE))
57
58#define FDT_CHECK_HEADER(fdt) \
58int fdt_ro_probe_(const void *fdt);
59#define FDT_RO_PROBE(fdt) \
59 { \
60 int err_; \
60 { \
61 int err_; \
61 if ((err_ = fdt_check_header(fdt)) != 0) \
62 if ((err_ = fdt_ro_probe_(fdt)) != 0) \
62 return err_; \
63 }
64
65int fdt_check_node_offset_(const void *fdt, int offset);
66int fdt_check_prop_offset_(const void *fdt, int offset);
67const char *fdt_find_string_(const char *strtab, int tabsize, const char *s);
68int fdt_node_end_offset_(void *fdt, int nodeoffset);
69

--- 26 unchanged lines hidden ---
63 return err_; \
64 }
65
66int fdt_check_node_offset_(const void *fdt, int offset);
67int fdt_check_prop_offset_(const void *fdt, int offset);
68const char *fdt_find_string_(const char *strtab, int tabsize, const char *s);
69int fdt_node_end_offset_(void *fdt, int nodeoffset);
70

--- 26 unchanged lines hidden ---