summaryrefslogtreecommitdiffstats
path: root/include/hwconfig.h
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-03-26 20:55:28 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2012-03-26 20:55:28 +0200
commit92988a21ad4c4c9504295ccb580c9f806134471b (patch)
tree5effc9f14170112450de05c67dafbe8d5034d595 /include/hwconfig.h
parentca2b506783b676c95762c54ea24dcfdaae1947c9 (diff)
downloadbootable_bootloader_goldelico_gta04-92988a21ad4c4c9504295ccb580c9f806134471b.zip
bootable_bootloader_goldelico_gta04-92988a21ad4c4c9504295ccb580c9f806134471b.tar.gz
bootable_bootloader_goldelico_gta04-92988a21ad4c4c9504295ccb580c9f806134471b.tar.bz2
added boot script files to repository
Diffstat (limited to 'include/hwconfig.h')
-rw-r--r--include/hwconfig.h103
1 files changed, 0 insertions, 103 deletions
diff --git a/include/hwconfig.h b/include/hwconfig.h
deleted file mode 100644
index a037ed8..0000000
--- a/include/hwconfig.h
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * An inteface for configuring a hardware via u-boot environment.
- *
- * Copyright (c) 2009 MontaVista Software, Inc.
- * Copyright 2011 Freescale Semiconductor, Inc.
- *
- * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- */
-
-#ifndef _HWCONFIG_H
-#define _HWCONFIG_H
-
-#include <linux/types.h>
-#include <asm/errno.h>
-
-#ifdef CONFIG_HWCONFIG
-
-extern int hwconfig_f(const char *opt, char *buf);
-extern const char *hwconfig_arg_f(const char *opt, size_t *arglen, char *buf);
-extern int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf);
-extern int hwconfig_sub_f(const char *opt, const char *subopt, char *buf);
-extern const char *hwconfig_subarg_f(const char *opt, const char *subopt,
- size_t *subarglen, char *buf);
-extern int hwconfig_subarg_cmp_f(const char *opt, const char *subopt,
- const char *subarg, char *buf);
-#else
-
-static inline int hwconfig_f(const char *opt, char *buf)
-{
- return -ENOSYS;
-}
-
-static inline const char *hwconfig_arg_f(const char *opt, size_t *arglen,
- char *buf)
-{
- *arglen = 0;
- return "";
-}
-
-static inline int hwconfig_arg_cmp_f(const char *opt, const char *arg,
- char *buf)
-{
- return -ENOSYS;
-}
-
-static inline int hwconfig_sub_f(const char *opt, const char *subopt, char *buf)
-{
- return -ENOSYS;
-}
-
-static inline const char *hwconfig_subarg_f(const char *opt, const char *subopt,
- size_t *subarglen, char *buf)
-{
- *subarglen = 0;
- return "";
-}
-
-static inline int hwconfig_subarg_cmp_f(const char *opt, const char *subopt,
- const char *subarg, char *buf)
-{
- return -ENOSYS;
-}
-
-#endif /* CONFIG_HWCONFIG */
-
-static inline int hwconfig(const char *opt)
-{
- return hwconfig_f(opt, NULL);
-}
-
-static inline const char *hwconfig_arg(const char *opt, size_t *arglen)
-{
- return hwconfig_arg_f(opt, arglen, NULL);
-}
-
-static inline int hwconfig_arg_cmp(const char *opt, const char *arg)
-{
- return hwconfig_arg_cmp_f(opt, arg, NULL);
-}
-
-static inline int hwconfig_sub(const char *opt, const char *subopt)
-{
- return hwconfig_sub_f(opt, subopt, NULL);
-}
-
-static inline const char *hwconfig_subarg(const char *opt, const char *subopt,
- size_t *subarglen)
-{
- return hwconfig_subarg_f(opt, subopt, subarglen, NULL);
-}
-
-static inline int hwconfig_subarg_cmp(const char *opt, const char *subopt,
- const char *subarg)
-{
- return hwconfig_subarg_cmp_f(opt, subopt, subarg, NULL);
-}
-
-#endif /* _HWCONFIG_H */