]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - include/env_callback.h
918ccb3b14f42a578b9ed46c5db7b80b5af53eba
1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Joe Hershberger, National Instruments, joe.hershberger@ni.com
7 #ifndef __ENV_CALLBACK_H__
8 #define __ENV_CALLBACK_H__
11 #include <env_flags.h>
12 #include <linker_lists.h>
15 #define ENV_CALLBACK_VAR ".callbacks"
17 #ifdef CONFIG_SILENT_CONSOLE
18 #define SILENT_CALLBACK "silent:silent,"
20 #define SILENT_CALLBACK
24 #define ENV_DOT_ESCAPE "\\"
26 #define ENV_DOT_ESCAPE
30 #define DNS_CALLBACK "dnsip:dnsip,"
35 #if CONFIG_IS_ENABLED(NET) || CONFIG_IS_ENABLED(NET_LWIP)
36 #define NET_CALLBACKS \
37 "bootfile:bootfile," \
39 "gatewayip:gatewayip," \
41 "serverip:serverip," \
45 "eth" ETHADDR_WILDCARD "addr:ethaddr,"
51 #define NET6_CALLBACKS \
53 "serverip6:serverip6," \
54 "gatewayip6:gatewayip6,"
56 #define NET6_CALLBACKS
59 #ifdef CONFIG_BOOTSTD_FULL
60 #define BOOTSTD_CALLBACK \
61 "bootmeths:bootmeths," \
64 #define BOOTSTD_CALLBACK
68 #define DFU_CALLBACK "dfu_alt_info:dfu_alt_info,"
74 * This list of callback bindings is static, but may be overridden by defining
75 * a new association in the ".callbacks" environment variable.
77 #define ENV_CALLBACK_LIST_STATIC ENV_DOT_ESCAPE ENV_CALLBACK_VAR ":callbacks," \
78 ENV_DOT_ESCAPE ENV_FLAGS_VAR ":flags," \
79 "baudrate:baudrate," \
84 "loadaddr:loadaddr," \
86 "stdin:console,stdout:console,stderr:console," \
88 CONFIG_ENV_CALLBACK_LIST_STATIC
90 #ifndef CONFIG_XPL_BUILD
91 void env_callback_init(struct env_entry
*var_entry
);
93 static inline void env_callback_init(struct env_entry
*var_entry
)
98 #endif /* __ENV_CALLBACK_H__ */