linux/scripts/dtc/libfdt/fdt.c

// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
/*
 * libfdt - Flat Device Tree manipulation
 * Copyright (C) 2006 David Gibson, IBM Corporation.
 */
#include "libfdt_env.h"

#include <fdt.h>
#include <libfdt.h>

#include "libfdt_internal.h"

/*
 * Minimal sanity check for a read-only tree. fdt_ro_probe_() checks
 * that the given buffer contains what appears to be a flattened
 * device tree with sane information in its header.
 */
int32_t fdt_ro_probe_(const void *fdt)
{}

static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off)
{}

static int check_block_(uint32_t hdrsize, uint32_t totalsize,
			uint32_t base, uint32_t size)
{}

size_t fdt_header_size_(uint32_t version)
{}

size_t fdt_header_size(const void *fdt)
{}

int fdt_check_header(const void *fdt)
{}

const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len)
{}

uint32_t fdt_next_tag(const void *fdt, int startoffset, int *nextoffset)
{}

int fdt_check_node_offset_(const void *fdt, int offset)
{}

int fdt_check_prop_offset_(const void *fdt, int offset)
{}

int fdt_next_node(const void *fdt, int offset, int *depth)
{}

int fdt_first_subnode(const void *fdt, int offset)
{}

int fdt_next_subnode(const void *fdt, int offset)
{}

const char *fdt_find_string_(const char *strtab, int tabsize, const char *s)
{}

int fdt_move(const void *fdt, void *buf, int bufsize)
{}