Nico Huber | c0fc38e | 2022-08-06 19:02:59 +0200 | [diff] [blame] | 1 | /* A Bison parser, made by GNU Bison 3.8.2. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 2 | |
Sven Schnelle | 0fa50a1 | 2012-06-21 22:19:48 +0200 | [diff] [blame] | 3 | /* Bison interface for Yacc-like parsers in C |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 4 | |
Tim Wawrzynczak | 13e240c | 2021-04-28 14:03:07 -0600 | [diff] [blame] | 5 | Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 6 | Inc. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 7 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 8 | This program is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 3 of the License, or |
| 11 | (at your option) any later version. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 12 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 13 | This program is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 17 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 18 | You should have received a copy of the GNU General Public License |
Nico Huber | 859ecdf | 2021-02-28 16:18:18 +0100 | [diff] [blame] | 19 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 20 | |
| 21 | /* As a special exception, you may create a larger work that contains |
| 22 | part or all of the Bison parser skeleton and distribute that work |
| 23 | under terms of your choice, so long as that work isn't itself a |
| 24 | parser generator using the skeleton or a modified version thereof |
| 25 | as a parser skeleton. Alternatively, if you modify or redistribute |
| 26 | the parser skeleton itself, you may (at your option) remove this |
| 27 | special exception, which will cause the skeleton and the resulting |
| 28 | Bison output files to be licensed under the GNU General Public |
| 29 | License without this special exception. |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 30 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 31 | This special exception was added by the Free Software Foundation in |
| 32 | version 2.2 of Bison. */ |
| 33 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 34 | /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, |
| 35 | especially those whose name start with YY_ or yy_. They are |
| 36 | private implementation details that can be changed or removed. */ |
Nico Huber | d9b2f79 | 2020-04-28 16:28:03 +0200 | [diff] [blame] | 37 | |
Arthur Heymans | 15d5183 | 2022-11-08 10:59:22 +0100 | [diff] [blame] | 38 | #ifndef YY_YY_HOME_ARTHUR_SRC_COREBOOT_UTIL_SCONFIG_SCONFIG_TAB_H_SHIPPED_INCLUDED |
| 39 | # define YY_YY_HOME_ARTHUR_SRC_COREBOOT_UTIL_SCONFIG_SCONFIG_TAB_H_SHIPPED_INCLUDED |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 40 | /* Debug traces. */ |
| 41 | #ifndef YYDEBUG |
| 42 | # define YYDEBUG 0 |
| 43 | #endif |
| 44 | #if YYDEBUG |
| 45 | extern int yydebug; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 46 | #endif |
| 47 | |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 48 | /* Token kinds. */ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 49 | #ifndef YYTOKENTYPE |
| 50 | # define YYTOKENTYPE |
| 51 | enum yytokentype |
| 52 | { |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 53 | YYEMPTY = -2, |
| 54 | YYEOF = 0, /* "end of file" */ |
| 55 | YYerror = 256, /* error */ |
| 56 | YYUNDEF = 257, /* "invalid token" */ |
| 57 | CHIP = 258, /* CHIP */ |
| 58 | DEVICE = 259, /* DEVICE */ |
| 59 | REGISTER = 260, /* REGISTER */ |
| 60 | ALIAS = 261, /* ALIAS */ |
| 61 | REFERENCE = 262, /* REFERENCE */ |
| 62 | ASSOCIATION = 263, /* ASSOCIATION */ |
| 63 | BOOL = 264, /* BOOL */ |
| 64 | STATUS = 265, /* STATUS */ |
| 65 | MANDATORY = 266, /* MANDATORY */ |
| 66 | BUS = 267, /* BUS */ |
| 67 | RESOURCE = 268, /* RESOURCE */ |
| 68 | END = 269, /* END */ |
| 69 | EQUALS = 270, /* EQUALS */ |
| 70 | HEX = 271, /* HEX */ |
| 71 | STRING = 272, /* STRING */ |
| 72 | PCI = 273, /* PCI */ |
| 73 | PNP = 274, /* PNP */ |
| 74 | I2C = 275, /* I2C */ |
Arthur Heymans | 15d5183 | 2022-11-08 10:59:22 +0100 | [diff] [blame] | 75 | CPU_CLUSTER = 276, /* CPU_CLUSTER */ |
| 76 | CPU = 277, /* CPU */ |
| 77 | DOMAIN = 278, /* DOMAIN */ |
| 78 | IRQ = 279, /* IRQ */ |
| 79 | DRQ = 280, /* DRQ */ |
| 80 | SLOT_DESC = 281, /* SLOT_DESC */ |
| 81 | SMBIOS_DEV_INFO = 282, /* SMBIOS_DEV_INFO */ |
| 82 | IO = 283, /* IO */ |
| 83 | NUMBER = 284, /* NUMBER */ |
| 84 | SUBSYSTEMID = 285, /* SUBSYSTEMID */ |
| 85 | INHERIT = 286, /* INHERIT */ |
| 86 | IOAPIC_IRQ = 287, /* IOAPIC_IRQ */ |
| 87 | IOAPIC = 288, /* IOAPIC */ |
| 88 | PCIINT = 289, /* PCIINT */ |
| 89 | GENERIC = 290, /* GENERIC */ |
| 90 | SPI = 291, /* SPI */ |
| 91 | USB = 292, /* USB */ |
| 92 | MMIO = 293, /* MMIO */ |
| 93 | GPIO = 294, /* GPIO */ |
| 94 | MDIO = 295, /* MDIO */ |
| 95 | FW_CONFIG_TABLE = 296, /* FW_CONFIG_TABLE */ |
| 96 | FW_CONFIG_FIELD = 297, /* FW_CONFIG_FIELD */ |
| 97 | FW_CONFIG_OPTION = 298, /* FW_CONFIG_OPTION */ |
| 98 | FW_CONFIG_PROBE = 299, /* FW_CONFIG_PROBE */ |
| 99 | PIPE = 300, /* PIPE */ |
| 100 | OPS = 301 /* OPS */ |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 101 | }; |
Duncan Laurie | e335c2e | 2020-07-29 16:28:43 -0700 | [diff] [blame] | 102 | typedef enum yytokentype yytoken_kind_t; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 103 | #endif |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 104 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 105 | /* Value type. */ |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 106 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 107 | union YYSTYPE |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 108 | { |
| 109 | |
Furquan Shaikh | 9319826 | 2018-06-03 04:22:17 -0700 | [diff] [blame] | 110 | struct device *dev; |
Furquan Shaikh | c56ae2f | 2018-05-31 10:33:16 -0700 | [diff] [blame] | 111 | struct chip_instance *chip_instance; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 112 | char *string; |
Michael Niewöhner | dbb667a | 2020-12-11 21:26:02 +0100 | [diff] [blame] | 113 | uint64_t number; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 114 | |
| 115 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 116 | }; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 117 | typedef union YYSTYPE YYSTYPE; |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 118 | # define YYSTYPE_IS_TRIVIAL 1 |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 119 | # define YYSTYPE_IS_DECLARED 1 |
| 120 | #endif |
| 121 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 122 | |
Patrick Georgi | 7e8c9aa | 2010-04-08 11:37:43 +0000 | [diff] [blame] | 123 | extern YYSTYPE yylval; |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 124 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 125 | |
Stefan Reinauer | 2e78aa5 | 2016-05-07 01:11:14 -0700 | [diff] [blame] | 126 | int yyparse (void); |
| 127 | |
Angel Pons | 437da71 | 2021-09-03 16:51:40 +0200 | [diff] [blame] | 128 | |
Arthur Heymans | 15d5183 | 2022-11-08 10:59:22 +0100 | [diff] [blame] | 129 | #endif /* !YY_YY_HOME_ARTHUR_SRC_COREBOOT_UTIL_SCONFIG_SCONFIG_TAB_H_SHIPPED_INCLUDED */ |