/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
-
+
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
-
+
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 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Copy the first part of user declarations. */
-/* Line 189 of yacc.c */
-#line 1 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
/*
* sconfig, coreboot device tree compiler
}
-/* Line 189 of yacc.c */
-#line 199 "/home/Patrick/work/coreboot/util/sconfig/sconfig.tab.c_shipped"
/* Enabling traces. */
#ifndef YYDEBUG
typedef union YYSTYPE
{
-/* Line 214 of yacc.c */
-#line 125 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
struct device *device;
char *string;
-/* Line 214 of yacc.c */
-#line 265 "/home/Patrick/work/coreboot/util/sconfig/sconfig.tab.c_shipped"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
/* Copy the second part of user declarations. */
-/* Line 264 of yacc.c */
-#line 277 "/home/Patrick/work/coreboot/util/sconfig/sconfig.tab.c_shipped"
#ifdef short
# undef short
{
case 2:
-/* Line 1455 of yacc.c */
-#line 132 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
{
root.next_sibling = root.children;
root.next_sibling->next_sibling = root.next_sibling->children;
case 11:
-/* Line 1455 of yacc.c */
-#line 158 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
{
(yyval.device) = new_dev();
(yyval.device)->chiph_exists = 1;
case 12:
-/* Line 1455 of yacc.c */
-#line 187 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
{
cur_parent = (yyvsp[(3) - (5)].device)->parent;
case 13:
-/* Line 1455 of yacc.c */
-#line 215 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
{
(yyval.device) = new_dev();
(yyval.device)->bustype = (yyvsp[(2) - (4)].number);
case 14:
-/* Line 1455 of yacc.c */
-#line 265 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
{
cur_parent = (yyvsp[(5) - (7)].device)->parent;
cur_bus = (yyvsp[(5) - (7)].device)->bus;
case 15:
-/* Line 1455 of yacc.c */
-#line 295 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
{
struct resource *r = malloc(sizeof(struct resource));
memset (r, 0, sizeof(struct resource));
case 16:
-/* Line 1455 of yacc.c */
-#line 313 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
{
struct reg *r = malloc(sizeof(struct reg));
memset (r, 0, sizeof(struct reg));
-/* Line 1455 of yacc.c */
-#line 1716 "/home/Patrick/work/coreboot/util/sconfig/sconfig.tab.c_shipped"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
-/* Line 1675 of yacc.c */
-#line 340 "/home/Patrick/work/coreboot/util/sconfig/sconfig.y"
void pass0(FILE *fil, struct device *ptr) {
if ((ptr->type == device) && (ptr->id != 0) && (!ptr->used))
walk_device_tree(staticc, &root, pass1, NULL);
fclose(staticc);
+ return 0;
}