2 * An inteface for configuring a hardware via u-boot environment.
4 * Copyright (c) 2009 MontaVista Software, Inc.
6 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
17 #include <linux/types.h>
18 #include <asm/errno.h>
20 #ifdef CONFIG_HWCONFIG
22 extern int hwconfig(const char *opt);
23 extern const char *hwconfig_arg(const char *opt, size_t *arglen);
24 extern int hwconfig_arg_cmp(const char *opt, const char *arg);
25 extern int hwconfig_sub(const char *opt, const char *subopt);
26 extern const char *hwconfig_subarg(const char *opt, const char *subopt,
28 extern int hwconfig_subarg_cmp(const char *opt, const char *subopt,
33 static inline int hwconfig(const char *opt)
38 static inline const char *hwconfig_arg(const char *opt, size_t *arglen)
44 static inline int hwconfig_arg_cmp(const char *opt, const char *arg)
49 static inline int hwconfig_sub(const char *opt, const char *subopt)
54 static inline const char *hwconfig_subarg(const char *opt, const char *subopt,
61 static inline int hwconfig_subarg_cmp(const char *opt, const char *subopt,
67 #endif /* CONFIG_HWCONFIG */
69 #endif /* _HWCONFIG_H */