blob: ea26979fc221d7eed02794af4efbf67d7c735911 [file] [log] [blame]
Gerald Van Baren9f0f3582007-04-06 14:17:14 -04001/*
2 * libfdt - Flat Device Tree manipulation (build/run environment adaptation)
3 * Copyright (C) 2007 Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com
4 * Original version written by David Gibson, IBM Corporation.
5 *
Wolfgang Denke9ea2302013-07-08 11:48:07 +02006 * SPDX-License-Identifier: LGPL-2.1+
Gerald Van Baren9f0f3582007-04-06 14:17:14 -04007 */
8
Gerald Van Barenc0577a62007-03-31 11:59:59 -04009#ifndef _LIBFDT_ENV_H
10#define _LIBFDT_ENV_H
11
Mike Frysinger4ad8e9f2009-07-02 19:23:25 -040012#include "compiler.h"
Kim Phillips2575c722013-01-16 13:59:34 +000013#include "linux/types.h"
Gerald Van Baren6c1da532007-03-31 12:05:39 -040014
Kim Phillips2575c722013-01-16 13:59:34 +000015typedef __be16 fdt16_t;
16typedef __be32 fdt32_t;
17typedef __be64 fdt64_t;
18
Mike Frysinger4ad8e9f2009-07-02 19:23:25 -040019#define fdt32_to_cpu(x) be32_to_cpu(x)
20#define cpu_to_fdt32(x) cpu_to_be32(x)
21#define fdt64_to_cpu(x) be64_to_cpu(x)
22#define cpu_to_fdt64(x) cpu_to_be64(x)
David Gibsonb4141b82008-07-07 10:10:48 +100023
Gerald Van Barenc0577a62007-03-31 11:59:59 -040024#endif /* _LIBFDT_ENV_H */