]> Git Repo - J-u-boot.git/blame - include/dt-structs.h
lmb: Rename _lmb_alloc_addr() to lmb_alloc_addr_flags()
[J-u-boot.git] / include / dt-structs.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
f24770d8
SG
2/*
3 * Copyright (c) 2016 Google, Inc
f24770d8
SG
4 */
5
00b26f7c
PT
6#ifndef __DT_STRUCTS
7#define __DT_STRUCTS
f24770d8
SG
8
9/* These structures may only be used in SPL */
10#if CONFIG_IS_ENABLED(OF_PLATDATA)
08c3b88d
SG
11struct driver_info;
12
4ee0cc89
SG
13/**
14 * struct phandle_0_arg - hold a phandle record with no arguments
15 *
16 * This holds a phandle pointing to another device. See 'Indexes' in the
17 * of-plat-rst documentation.
18 *
19 * @idx: udevice index (or driver_info index if !OF_PLATDATA_INST)
20 * @arg: arguments
21 */
0d15463c 22struct phandle_0_arg {
8a38abfc 23 uint idx;
bc79617f 24 int arg[0];
0d15463c
SG
25};
26
4ee0cc89
SG
27/**
28 * struct phandle_2_arg - hold a phandle record with up to one argument
29 *
30 * This holds a phandle pointing to another device. See 'Indexes' in the
31 * of-plat-rst documentation.
32 *
33 * @idx: udevice index (or driver_info index if !OF_PLATDATA_INST)
34 * @arg: arguments
35 */
0d15463c 36struct phandle_1_arg {
8a38abfc 37 uint idx;
bc79617f 38 int arg[1];
f24770d8 39};
634eba4b 40
4ee0cc89
SG
41/**
42 * struct phandle_2_arg - hold a phandle record with up to two arguments
43 *
44 * This holds a phandle pointing to another device. See 'Indexes' in the
45 * of-plat-rst documentation.
46 *
47 * @idx: udevice index (or driver_info index if !OF_PLATDATA_INST)
48 * @arg: arguments
49 */
634eba4b 50struct phandle_2_arg {
8a38abfc 51 uint idx;
634eba4b
SG
52 int arg[2];
53};
910de109 54
b145b45b 55#include <generated/dt-structs-gen.h>
910de109 56#include <generated/dt-decl.h>
f24770d8
SG
57#endif
58
59#endif
This page took 0.342741 seconds and 4 git commands to generate.