-#line 2 "/home/Patrick/work/coreboot/util/sconfig/lex.yy.c_shipped"
-#line 4 "/home/Patrick/work/coreboot/util/sconfig/lex.yy.c_shipped"
+#line 3 "/home/svens/coreboot/coreboot-svn/util/sconfig/lex.yy.c_shipped"
#define YY_INT_ALIGNED short int
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
-#endif /* ! C99 */
/* Limits of integral types. */
#ifndef INT8_MIN
#define UINT32_MAX (4294967295U)
#endif
+#endif /* ! C99 */
+
#endif /* ! FLEXINT_H */
#ifdef __cplusplus
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
-#define YY_NUM_RULES 25
-#define YY_END_OF_BUFFER 26
+#define YY_NUM_RULES 27
+#define YY_END_OF_BUFFER 28
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
-static yyconst flex_int16_t yy_accept[86] =
+static yyconst flex_int16_t yy_accept[104] =
{ 0,
- 0, 0, 26, 24, 1, 3, 24, 24, 24, 21,
- 21, 19, 22, 22, 22, 22, 22, 24, 24, 24,
- 24, 24, 1, 3, 24, 0, 24, 0, 2, 21,
- 22, 24, 24, 24, 22, 24, 24, 24, 17, 24,
- 24, 7, 24, 24, 24, 23, 23, 20, 24, 24,
- 24, 16, 18, 11, 15, 8, 9, 10, 24, 12,
- 4, 24, 24, 24, 24, 24, 24, 24, 24, 5,
- 24, 24, 24, 24, 24, 24, 24, 6, 24, 24,
- 24, 14, 24, 13, 0
+ 0, 0, 28, 26, 1, 3, 26, 26, 26, 23,
+ 23, 21, 24, 24, 24, 24, 26, 26, 26, 26,
+ 26, 26, 26, 1, 3, 26, 0, 26, 0, 2,
+ 23, 24, 26, 26, 24, 26, 26, 26, 26, 17,
+ 26, 26, 26, 7, 26, 26, 26, 26, 25, 25,
+ 22, 26, 26, 16, 20, 11, 26, 15, 26, 8,
+ 9, 10, 26, 26, 4, 26, 26, 26, 26, 26,
+ 26, 26, 26, 12, 26, 26, 26, 5, 26, 26,
+ 26, 26, 26, 18, 26, 26, 26, 26, 26, 26,
+ 6, 26, 26, 26, 26, 26, 14, 26, 26, 19,
+
+ 26, 13, 0
} ;
static yyconst flex_int32_t yy_ec[256] =
10, 1, 1, 1, 11, 11, 11, 11, 11, 11,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 12, 1, 13, 11, 14, 15,
+ 1, 1, 1, 1, 12, 1, 13, 14, 15, 16,
- 16, 17, 18, 19, 20, 1, 1, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 1, 32,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 17, 18, 19, 20, 21, 1, 1, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 1, 33,
+ 34, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
-static yyconst flex_int32_t yy_meta[33] =
+static yyconst flex_int32_t yy_meta[35] =
{ 0,
1, 2, 2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1
+ 1, 1, 1, 1
} ;
-static yyconst flex_int16_t yy_base[91] =
+static yyconst flex_int16_t yy_base[109] =
{ 0,
- 0, 0, 146, 0, 143, 147, 141, 31, 35, 32,
- 111, 0, 43, 46, 49, 65, 52, 53, 46, 21,
- 126, 0, 139, 147, 62, 135, 76, 136, 147, 0,
- 75, 86, 118, 117, 78, 110, 120, 120, 0, 107,
- 115, 0, 111, 105, 111, 0, 147, 0, 114, 102,
- 106, 0, 0, 0, 0, 0, 113, 0, 104, 111,
- 0, 108, 106, 92, 105, 102, 84, 78, 85, 0,
- 83, 88, 68, 83, 64, 62, 69, 0, 59, 53,
- 54, 0, 39, 0, 147, 41, 109, 111, 113, 115
+ 0, 0, 164, 0, 161, 165, 159, 33, 37, 34,
+ 128, 0, 46, 49, 53, 56, 50, 147, 48, 22,
+ 142, 127, 0, 155, 165, 74, 151, 65, 152, 165,
+ 0, 75, 78, 133, 90, 126, 136, 136, 130, 0,
+ 122, 122, 129, 0, 125, 119, 125, 129, 0, 165,
+ 0, 116, 120, 0, 0, 0, 123, 0, 118, 0,
+ 126, 0, 116, 107, 0, 120, 106, 118, 116, 102,
+ 87, 103, 98, 106, 92, 86, 86, 0, 84, 98,
+ 89, 94, 80, 0, 87, 95, 79, 89, 74, 83,
+ 0, 80, 73, 77, 79, 60, 0, 72, 56, 0,
+
+ 43, 0, 165, 43, 122, 124, 126, 128
} ;
-static yyconst flex_int16_t yy_def[91] =
+static yyconst flex_int16_t yy_def[109] =
{ 0,
- 85, 1, 85, 86, 85, 85, 86, 87, 88, 86,
- 10, 86, 10, 10, 10, 10, 10, 86, 86, 86,
- 86, 86, 85, 85, 87, 89, 88, 90, 85, 10,
- 10, 10, 86, 86, 10, 86, 86, 86, 86, 86,
- 86, 86, 86, 86, 86, 86, 85, 32, 86, 86,
- 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
- 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
- 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
- 86, 86, 86, 86, 0, 85, 85, 85, 85, 85
+ 103, 1, 103, 104, 103, 103, 104, 105, 106, 104,
+ 10, 104, 10, 10, 10, 10, 104, 104, 104, 104,
+ 104, 104, 104, 103, 103, 105, 107, 106, 108, 103,
+ 10, 10, 10, 104, 10, 104, 104, 104, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 103,
+ 33, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+
+ 104, 104, 0, 103, 103, 103, 103, 103
} ;
-static yyconst flex_int16_t yy_nxt[180] =
+static yyconst flex_int16_t yy_nxt[200] =
{ 0,
4, 5, 6, 7, 8, 9, 10, 11, 10, 12,
- 13, 4, 14, 15, 16, 17, 13, 4, 4, 18,
- 4, 4, 4, 19, 20, 4, 21, 4, 4, 4,
- 4, 4, 26, 26, 43, 22, 28, 29, 30, 30,
- 30, 22, 31, 44, 31, 31, 31, 31, 31, 31,
- 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
- 31, 38, 41, 26, 26, 84, 46, 34, 42, 83,
- 33, 31, 31, 31, 37, 82, 39, 28, 29, 40,
- 35, 31, 31, 31, 31, 31, 31, 81, 80, 79,
- 78, 36, 48, 48, 48, 77, 48, 76, 48, 48,
-
- 48, 48, 48, 75, 74, 73, 72, 71, 51, 25,
- 25, 27, 27, 26, 26, 28, 28, 70, 69, 68,
- 67, 66, 65, 64, 63, 62, 61, 60, 59, 58,
- 57, 56, 55, 54, 53, 52, 50, 49, 29, 47,
- 23, 45, 32, 24, 23, 85, 3, 85, 85, 85,
- 85, 85, 85, 85, 85, 85, 85, 85, 85, 85,
- 85, 85, 85, 85, 85, 85, 85, 85, 85, 85,
- 85, 85, 85, 85, 85, 85, 85, 85, 85
+ 13, 4, 13, 13, 14, 15, 16, 13, 4, 4,
+ 17, 18, 4, 4, 19, 20, 4, 21, 22, 4,
+ 4, 4, 4, 4, 27, 27, 45, 23, 29, 30,
+ 31, 31, 31, 23, 32, 46, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32, 38, 32,
+ 32, 32, 32, 32, 32, 43, 29, 30, 34, 35,
+ 102, 44, 101, 39, 40, 27, 27, 41, 49, 37,
+ 36, 32, 32, 32, 51, 51, 51, 100, 51, 99,
+ 51, 51, 51, 51, 51, 51, 32, 32, 32, 98,
+
+ 97, 96, 95, 94, 93, 92, 91, 90, 89, 88,
+ 87, 86, 85, 84, 83, 82, 81, 80, 79, 78,
+ 77, 53, 26, 26, 28, 28, 27, 27, 29, 29,
+ 76, 75, 74, 73, 72, 71, 70, 69, 68, 67,
+ 66, 65, 64, 63, 62, 61, 60, 59, 58, 57,
+ 56, 55, 54, 52, 30, 50, 24, 48, 47, 42,
+ 33, 25, 24, 103, 3, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103
+
} ;
-static yyconst flex_int16_t yy_chk[180] =
+static yyconst flex_int16_t yy_chk[200] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 8, 8, 20, 8, 9, 9, 10, 10,
- 10, 86, 10, 20, 10, 10, 10, 10, 10, 13,
- 13, 13, 14, 14, 14, 15, 15, 15, 17, 17,
- 17, 18, 19, 25, 25, 83, 25, 15, 19, 81,
- 14, 16, 16, 16, 17, 80, 18, 27, 27, 18,
- 16, 31, 31, 31, 35, 35, 35, 79, 77, 76,
- 75, 16, 32, 32, 32, 74, 32, 73, 32, 32,
-
- 32, 32, 32, 72, 71, 69, 68, 67, 35, 87,
- 87, 88, 88, 89, 89, 90, 90, 66, 65, 64,
- 63, 62, 60, 59, 57, 51, 50, 49, 45, 44,
- 43, 41, 40, 38, 37, 36, 34, 33, 28, 26,
- 23, 21, 11, 7, 5, 3, 85, 85, 85, 85,
- 85, 85, 85, 85, 85, 85, 85, 85, 85, 85,
- 85, 85, 85, 85, 85, 85, 85, 85, 85, 85,
- 85, 85, 85, 85, 85, 85, 85, 85, 85
+ 1, 1, 1, 1, 8, 8, 20, 8, 9, 9,
+ 10, 10, 10, 104, 10, 20, 10, 10, 10, 10,
+ 10, 10, 13, 13, 13, 14, 14, 14, 17, 15,
+ 15, 15, 16, 16, 16, 19, 28, 28, 14, 15,
+ 101, 19, 99, 17, 17, 26, 26, 17, 26, 16,
+ 15, 32, 32, 32, 33, 33, 33, 98, 33, 96,
+ 33, 33, 33, 33, 33, 33, 35, 35, 35, 95,
+
+ 94, 93, 92, 90, 89, 88, 87, 86, 85, 83,
+ 82, 81, 80, 79, 77, 76, 75, 74, 73, 72,
+ 71, 35, 105, 105, 106, 106, 107, 107, 108, 108,
+ 70, 69, 68, 67, 66, 64, 63, 61, 59, 57,
+ 53, 52, 48, 47, 46, 45, 43, 42, 41, 39,
+ 38, 37, 36, 34, 29, 27, 24, 22, 21, 18,
+ 11, 7, 5, 3, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103
+
} ;
static yy_state_type yy_last_accepting_state;
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
-#line 1 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-#line 2 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
/*
* sconfig, coreboot device tree compiler
*
#include "sconfig.tab.h"
int linenum = 0;
-#line 537 "/home/Patrick/work/coreboot/util/sconfig/lex.yy.c_shipped"
#define INITIAL 0
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k */
+#define YY_READ_BUF_SIZE 16384
+#else
#define YY_READ_BUF_SIZE 8192
+#endif /* __ia64__ */
#endif
/* Copy whatever the last rule matched to the standard output. */
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- int n; \
+ size_t n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
register char *yy_cp, *yy_bp;
register int yy_act;
-#line 27 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-
-#line 721 "/home/Patrick/work/coreboot/util/sconfig/lex.yy.c_shipped"
-
if ( !(yy_init) )
{
(yy_init) = 1;
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 86 )
+ if ( yy_current_state >= 104 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
- while ( yy_base[yy_current_state] != 147 );
+ while ( yy_base[yy_current_state] != 165 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
case 1:
YY_RULE_SETUP
-#line 28 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{}
YY_BREAK
case 2:
/* rule 2 can match eol */
YY_RULE_SETUP
-#line 29 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{linenum++;}
YY_BREAK
case 3:
/* rule 3 can match eol */
YY_RULE_SETUP
-#line 30 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{linenum++;}
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 31 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{return(CHIP);}
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 32 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{return(DEVICE);}
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 33 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{return(REGISTER);}
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 34 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=1; return(BOOL);}
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 35 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=0; return(BOOL);}
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 36 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=PCI; return(BUS);}
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 37 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=PNP; return(BUS);}
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 38 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=I2C; return(BUS);}
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 39 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=APIC; return(BUS);}
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 40 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=APIC_CLUSTER; return(BUS);}
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 41 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=PCI_DOMAIN; return(BUS);}
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 42 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=IRQ; return(RESOURCE);}
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 43 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=DRQ; return(RESOURCE);}
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 44 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.number=IO; return(RESOURCE);}
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 45 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-{return(END);}
+{return(INHERIT);}
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 46 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-{return(EQUALS);}
+{return(SUBSYSTEMID);}
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 47 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
+{return(END);}
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 48 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
+{return(EQUALS);}
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 49 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
YY_BREAK
case 23:
-/* rule 23 can match eol */
YY_RULE_SETUP
-#line 50 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-{yylval.string = malloc(yyleng-1); strncpy(yylval.string, yytext+1, yyleng-2); yylval.string[yyleng-2]='\0'; return(STRING);}
+{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 51 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(STRING);}
+{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
YY_BREAK
case 25:
+/* rule 25 can match eol */
+YY_RULE_SETUP
+{yylval.string = malloc(yyleng-1); strncpy(yylval.string, yytext+1, yyleng-2); yylval.string[yyleng-2]='\0'; return(STRING);}
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
+{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(STRING);}
+ YY_BREAK
+case 27:
YY_RULE_SETUP
-#line 52 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
ECHO;
YY_BREAK
-#line 932 "/home/Patrick/work/coreboot/util/sconfig/lex.yy.c_shipped"
case YY_STATE_EOF(INITIAL):
yyterminate();
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 86 )
+ if ( yy_current_state >= 104 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 86 )
+ if ( yy_current_state >= 104 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- yy_is_jam = (yy_current_state == 85);
+ yy_is_jam = (yy_current_state == 103);
return yy_is_jam ? 0 : yy_current_state;
}
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
* scan from a @e copy of @a bytes.
- * @param bytes the byte buffer to scan
- * @param len the number of bytes in the buffer pointed to by @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
#define YYTABLES_NAME "yytables"
-#line 52 "/home/Patrick/work/coreboot/util/sconfig/sconfig.l"
-
-
-