summaryrefslogtreecommitdiff
path: root/util/sconfig/sconfig.h
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-05-05 12:05:25 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-05-05 12:05:25 +0000
commit68befd5d34ce22b03ea78028dc362eec0440f83c (patch)
treec5b67ed5900c396cb0d9a57a7ed6ce994bd56b3f /util/sconfig/sconfig.h
parent114e7b2990cd2b64956ddb271638646ef5108d54 (diff)
downloadcoreboot-68befd5d34ce22b03ea78028dc362eec0440f83c.tar.xz
sconfig: Make cur_bus and cur_parent local to the parser.
Instead of accessing them globally, pass them as arguments where necessary. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5524 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/sconfig/sconfig.h')
-rwxr-xr-xutil/sconfig/sconfig.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h
index 78305464ba..139ac86ae9 100755
--- a/util/sconfig/sconfig.h
+++ b/util/sconfig/sconfig.h
@@ -74,7 +74,7 @@ struct device {
struct reg *reg;
};
-extern struct device *cur_parent, *cur_bus;
+struct device *head;
struct header;
struct header {
@@ -85,9 +85,9 @@ struct header {
void fold_in(struct device *parent);
void postprocess_devtree(void);
-struct device *new_chip(char *path);
+struct device *new_chip(struct device *parent, struct device *bus, char *path);
void add_header(struct device *dev);
-struct device *new_device(const int bus, const char *devnum, int enabled);
+struct device *new_device(struct device *parent, struct device *busdev, const int bus, const char *devnum, int enabled);
void alias_siblings(struct device *d);
-void add_resource(int type, int index, int base);
-void add_register(char *name, char *val);
+void add_resource(struct device *dev, int type, int index, int base);
+void add_register(struct device *dev, char *name, char *val);