00001 #ifndef _TOKE_DICTIONARY_H 00002 #define _TOKE_DICTIONARY_H 00003 00004 /* 00005 * OpenBIOS - free your system! 00006 * ( FCode tokenizer ) 00007 * 00008 * dictionary.h - tokens for control commands. 00009 * 00010 * This program is part of a free implementation of the IEEE 1275-1994 00011 * Standard for Boot (Initialization Configuration) Firmware. 00012 * 00013 * Copyright (C) 2001-2005 Stefan Reinauer, <stepan@openbios.org> 00014 * 00015 * This program is free software; you can redistribute it and/or modify 00016 * it under the terms of the GNU General Public License as published by 00017 * the Free Software Foundation; version 2 of the License. 00018 * 00019 * This program is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU General Public License 00025 * along with this program; if not, write to the Free Software 00026 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA 00027 * 00028 */ 00029 00030 /* ************************************************************************** 00031 * Modifications made in 2005 by IBM Corporation 00032 * (C) Copyright 2005 IBM Corporation. All Rights Reserved. 00033 * Modifications Author: David L. Paktor dlpaktor@us.ibm.com 00034 **************************************************************************** */ 00035 00036 /* ************************************************************************** 00037 * 00038 * Numeric values for FWord-type vocabulary entries. Used by the 00039 * big "switch" statement in handle_internal(); a subset are 00040 * also used as "definer-type" values associated with various 00041 * types of definitions. 00042 * 00043 **************************************************************************** */ 00044 00045 typedef enum fword_token { 00046 UNSPECIFIED = 0xBAADD00D , /* Default (absence-of) "definer" */ 00047 COMMON_FWORD = 0xC0EDC0DE , /* Definer indicating a "shared" FWord */ 00048 BI_FWRD_DEFN = 0xB1F4409D , /* Definer indicating a "built-in FWord" */ 00049 COLON = 1 , 00050 SEMICOLON , 00051 TICK , 00052 AGAIN , 00053 ALIAS , 00054 BRACK_TICK , 00055 F_BRACK_TICK , 00056 ASCII , 00057 BEGIN , 00058 BUFFER , 00059 CASE , 00060 CONST , 00061 CONTROL , 00062 CREATE , 00063 DECIMAL , 00064 DEFER , 00065 DEFINED , 00066 CDO , 00067 DO , 00068 ELSE , 00069 ENDCASE , 00070 ENDOF , 00071 EXTERNAL , 00072 INSTANCE , 00073 FIELD , 00074 NEW_DEVICE , 00075 FINISH_DEVICE , 00076 FLITERAL , 00077 HEADERLESS , 00078 HEADERS , 00079 HEX , 00080 IF , 00081 UNLOOP , 00082 LEAVE , 00083 LOOP_I , 00084 LOOP_J , 00085 LOOP , 00086 PLUS_LOOP , 00087 OCTAL , 00088 OF , 00089 REPEAT , 00090 THEN , 00091 TO , 00092 IS , 00093 UNTIL , 00094 VALUE , 00095 VARIABLE , 00096 WHILE , 00097 OFFSET16 , 00098 ESCAPETOK , 00099 EMITBYTE , 00100 FLOAD , 00101 STRING , 00102 PSTRING , 00103 PBSTRING , 00104 SSTRING , 00105 RECURSIVE , 00106 RECURSE , 00107 RET_STK_FETCH , 00108 RET_STK_FROM , 00109 RET_STK_TO , 00110 HEXVAL , 00111 DECVAL , 00112 OCTVAL , 00113 00114 ret_stk_from , 00115 ASC_NUM , /* Convert char seq to number */ 00116 ASC_LEFT_NUM , /* same, only left-justified. */ 00117 00118 CONDL_ENDER , /* Conditional "[THEN] / [ENDIF]" variants */ 00119 CONDL_ELSE , /* Conditional "[ELSE]" directive variants */ 00120 00121 PUSH_FCODE , /* Save the FCode Assignment number */ 00122 POP_FCODE , /* Retrieve the FCode Assignment number */ 00123 RESET_FCODE , /* Reset FCode Ass't nr and overlap checking */ 00124 00125 CURLY_BRACE , /* Support for IBM-style Locals */ 00126 DASH_ARROW , 00127 LOCAL_VAL , 00128 EXIT , 00129 00130 FUNC_NAME , 00131 IFILE_NAME , 00132 ILINE_NUM , 00133 00134 CL_FLAG , 00135 SHOW_CL_FLAGS , 00136 00137 OVERLOAD , 00138 ALLOW_MULTI_LINE , 00139 MACRO_DEF , 00140 GLOB_SCOPE , 00141 DEV_SCOPE , 00142 00143 /* This value has to be adjusted 00144 * so that FCODE_END comes 00145 * out to be 0xff 00146 */ 00147 END0 = 0xd7 , /* 0xd7 */ 00148 END1 , /* 0xd8 */ 00149 CHAR , /* 0xd9 */ 00150 CCHAR , /* 0xda */ 00151 ABORTTXT , /* 0xdb */ 00152 00153 NEXTFCODE , /* 0xdc */ 00154 00155 ENCODEFILE , /* 0xdd */ 00156 00157 FCODE_V1 , /* 0xde */ 00158 FCODE_V3 , /* 0xdf */ 00159 NOTLAST , /* 0xef */ 00160 ISLAST , /* 0xf0 */ 00161 SETLAST , /* 0xf1 */ 00162 PCIREV , /* 0xf2 */ 00163 PCIHDR , /* 0xf3 */ 00164 PCIEND , /* 0xf4 */ 00165 RESETSYMBS , /* 0xf5 */ 00166 SAVEIMG , /* 0xf6 */ 00167 START0 , /* 0xf7 */ 00168 START1 , /* 0xf8 */ 00169 START2 , /* 0xf9 */ 00170 START4 , /* 0xfa */ 00171 VERSION1 , /* 0xfb */ 00172 FCODE_TIME , /* 0xfc */ 00173 FCODE_DATE , /* 0xfd */ 00174 FCODE_V2 , /* 0xfe */ 00175 FCODE_END = 0xff /* 0xff */ 00176 } fwtoken ; 00177 00178 #endif /* _TOKE_DICTIONARY_H */