Blame view
include/env_callback.h
1.69 KB
83d290c56 SPDX: Convert all... |
1 |
/* SPDX-License-Identifier: GPL-2.0+ */ |
170ab1107 env: Add support ... |
2 3 4 |
/* * (C) Copyright 2012 * Joe Hershberger, National Instruments, joe.hershberger@ni.com |
170ab1107 env: Add support ... |
5 6 7 8 |
*/ #ifndef __ENV_CALLBACK_H__ #define __ENV_CALLBACK_H__ |
2598090b7 env: Add environm... |
9 |
#include <env_flags.h> |
170ab1107 env: Add support ... |
10 11 12 13 14 15 16 17 18 |
#include <linker_lists.h> #include <search.h> #define ENV_CALLBACK_VAR ".callbacks" /* Board configs can define additional static callback bindings */ #ifndef CONFIG_ENV_CALLBACK_LIST_STATIC #define CONFIG_ENV_CALLBACK_LIST_STATIC #endif |
e080d545f env: Add a silent... |
19 20 21 22 23 |
#ifdef CONFIG_SILENT_CONSOLE #define SILENT_CALLBACK "silent:silent," #else #define SILENT_CALLBACK #endif |
c08804853 lcd: implement a ... |
24 25 26 27 28 |
#ifdef CONFIG_SPLASHIMAGE_GUARD #define SPLASHIMAGE_CALLBACK "splashimage:splashimage," #else #define SPLASHIMAGE_CALLBACK #endif |
bdf1fe4e6 env: Add regex su... |
29 30 31 32 33 |
#ifdef CONFIG_REGEX #define ENV_DOT_ESCAPE "\\" #else #define ENV_DOT_ESCAPE #endif |
fd3056337 net: Use env call... |
34 35 36 37 38 |
#ifdef CONFIG_CMD_DNS #define DNS_CALLBACK "dnsip:dnsip," #else #define DNS_CALLBACK #endif |
cccc05ee3 env: net: U_BOOT_... |
39 |
#ifdef CONFIG_NET |
fd3056337 net: Use env call... |
40 41 42 43 44 45 46 47 |
#define NET_CALLBACKS \ "bootfile:bootfile," \ "ipaddr:ipaddr," \ "gatewayip:gatewayip," \ "netmask:netmask," \ "serverip:serverip," \ "nvlan:nvlan," \ "vlan:vlan," \ |
6e0d26c05 net: Handle ethad... |
48 |
DNS_CALLBACK \ |
f7848d90d Allow CONFIG_REGE... |
49 |
"eth" ETHADDR_WILDCARD "addr:ethaddr," |
fd3056337 net: Use env call... |
50 51 52 |
#else #define NET_CALLBACKS #endif |
170ab1107 env: Add support ... |
53 54 55 56 |
/* * This list of callback bindings is static, but may be overridden by defining * a new association in the ".callbacks" environment variable. */ |
bdf1fe4e6 env: Add regex su... |
57 58 |
#define ENV_CALLBACK_LIST_STATIC ENV_DOT_ESCAPE ENV_CALLBACK_VAR ":callbacks," \ ENV_DOT_ESCAPE ENV_FLAGS_VAR ":flags," \ |
32057717e env: Add a baudra... |
59 |
"baudrate:baudrate," \ |
fd3056337 net: Use env call... |
60 |
NET_CALLBACKS \ |
1cf0a8b2f env: Add a loadad... |
61 |
"loadaddr:loadaddr," \ |
e080d545f env: Add a silent... |
62 |
SILENT_CALLBACK \ |
c08804853 lcd: implement a ... |
63 |
SPLASHIMAGE_CALLBACK \ |
849d5d9cd env: Add a consol... |
64 |
"stdin:console,stdout:console,stderr:console," \ |
de4e4edaf usb: gadget: g_dn... |
65 |
"serial#:serialno," \ |
170ab1107 env: Add support ... |
66 |
CONFIG_ENV_CALLBACK_LIST_STATIC |
dd2408cac env: Drop the ENT... |
67 |
void env_callback_init(struct env_entry *var_entry); |
170ab1107 env: Add support ... |
68 |
|
170ab1107 env: Add support ... |
69 |
#endif /* __ENV_CALLBACK_H__ */ |