linux/scripts/dtc/libfdt/fdt_sw.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"

static int fdt_sw_probe_(void *fdt)
{}

#define FDT_SW_PROBE(fdt)

/* 'memrsv' state:	Initial state after fdt_create()
 *
 * Allowed functions:
 *	fdt_add_reservemap_entry()
 *	fdt_finish_reservemap()		[moves to 'struct' state]
 */
static int fdt_sw_probe_memrsv_(void *fdt)
{}

#define FDT_SW_PROBE_MEMRSV(fdt)

/* 'struct' state:	Enter this state after fdt_finish_reservemap()
 *
 * Allowed functions:
 *	fdt_begin_node()
 *	fdt_end_node()
 *	fdt_property*()
 *	fdt_finish()			[moves to 'complete' state]
 */
static int fdt_sw_probe_struct_(void *fdt)
{}

#define FDT_SW_PROBE_STRUCT(fdt)

static inline uint32_t sw_flags(void *fdt)
{}

/* 'complete' state:	Enter this state after fdt_finish()
 *
 * Allowed functions: none
 */

static void *fdt_grab_space_(void *fdt, size_t len)
{}

int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags)
{}

int fdt_create(void *buf, int bufsize)
{}

int fdt_resize(void *fdt, void *buf, int bufsize)
{}

int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size)
{}

int fdt_finish_reservemap(void *fdt)
{}

int fdt_begin_node(void *fdt, const char *name)
{}

int fdt_end_node(void *fdt)
{}

static int fdt_add_string_(void *fdt, const char *s)
{}

/* Must only be used to roll back in case of error */
static void fdt_del_last_string_(void *fdt, const char *s)
{}

static int fdt_find_add_string_(void *fdt, const char *s, int *allocated)
{}

int fdt_property_placeholder(void *fdt, const char *name, int len, void **valp)
{}

int fdt_property(void *fdt, const char *name, const void *val, int len)
{}

int fdt_finish(void *fdt)
{}