]> git.sur5r.net Git - u-boot/blobdiff - include/env_flags.h
sunxi: Enable eMMC on Libre Computer Board ALL-H3-CC boards
[u-boot] / include / env_flags.h
index 2d2de88fc04fdd187caf5dd32799a56b6ac3ede0..cc2c34f939f152b6cf2f6dd70d02d1931eba9746 100644 (file)
@@ -1,8 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2012
  * Joe Hershberger, National Instruments, joe.hershberger@ni.com
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __ENV_FLAGS_H__
@@ -57,8 +56,8 @@ enum env_flags_varaccess {
        "gatewayip:i," \
        "netmask:i," \
        "serverip:i," \
-       "nvlan:i," \
-       "vlan:i," \
+       "nvlan:d," \
+       "vlan:d," \
        "dnsip:i,"
 #else
 #define ETHADDR_FLAGS
@@ -109,6 +108,13 @@ enum env_flags_varaccess env_flags_parse_varaccess(const char *flags);
  */
 enum env_flags_varaccess env_flags_parse_varaccess_from_binflags(int binflags);
 
+#ifdef CONFIG_CMD_NET
+/*
+ * Check if a string has the format of an Ethernet MAC address
+ */
+int eth_validate_ethaddr_str(const char *addr);
+#endif
+
 #ifdef USE_HOSTCC
 /*
  * Look up the type of a variable directly from the .flags var.
@@ -136,7 +142,7 @@ int env_flags_validate_varaccess(const char *name, int check_mask);
 /*
  * Validate the parameters passed to "env set" for type compliance
  */
-int env_flags_validate_env_set_params(int argc, char * const argv[]);
+int env_flags_validate_env_set_params(char *name, char *const val[], int count);
 
 #else /* !USE_HOSTCC */