OLD | NEW |
1 /** | 1 /** |
2 * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. | 2 * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. |
3 * | 3 * |
4 * See file CREDITS for list of people who contributed to this | 4 * See file CREDITS for list of people who contributed to this |
5 * project. | 5 * project. |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or | 7 * This program is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU General Public License as | 8 * modify it under the terms of the GNU General Public License as |
9 * published by the Free Software Foundation; either version 2 of | 9 * published by the Free Software Foundation; either version 2 of |
10 * the License, or (at your option) any later version. | 10 * the License, or (at your option) any later version. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 typedef struct | 195 typedef struct |
196 { | 196 { |
197 char *name; | 197 char *name; |
198 u_int32_t value; | 198 u_int32_t value; |
199 } enum_item; | 199 } enum_item; |
200 | 200 |
201 typedef struct | 201 typedef struct |
202 { | 202 { |
203 char *name; | 203 char *name; |
204 u_int32_t token; | 204 u_int32_t token; |
| 205 u_int32_t enum_value; |
205 field_type type; | 206 field_type type; |
206 enum_item *enum_table; | 207 enum_item *enum_table; |
207 } field_item; | 208 } field_item; |
208 | 209 |
209 typedef struct | 210 typedef struct |
210 { | 211 { |
211 char *prefix; | 212 char *prefix; |
212 parse_token token; | 213 parse_token token; |
213 field_item *field_table; | 214 field_item *field_table; |
214 process_subfield_function process; | 215 process_subfield_function process; |
215 } parse_subfield_item; | 216 } parse_subfield_item; |
216 | 217 |
217 typedef struct | 218 typedef struct |
218 { | 219 { |
219 char *prefix; | 220 char *prefix; |
220 parse_token token; | 221 parse_token token; |
221 process_function process; | 222 process_function process; |
222 } parse_item; | 223 } parse_item; |
223 | 224 |
224 /* | 225 /* |
| 226 * Provide access to enum and field tables. These tables are useful when |
| 227 * pretty printing a BCT file using bct_dump. |
| 228 */ |
| 229 extern enum_item s_devtype_table[]; |
| 230 extern enum_item s_sdmmc_data_width_table[]; |
| 231 extern enum_item s_spi_clock_source_table[]; |
| 232 extern enum_item s_nvboot_memory_type_table[]; |
| 233 extern field_item s_sdram_field_table[]; |
| 234 extern field_item s_nand_table[]; |
| 235 extern field_item s_sdmmc_table[]; |
| 236 extern field_item s_spiflash_table[]; |
| 237 |
| 238 /* |
225 * Function prototypes | 239 * Function prototypes |
226 */ | 240 */ |
227 void process_config_file(build_image_context *context); | 241 void process_config_file(build_image_context *context); |
228 | 242 |
229 | 243 |
230 #endif /* #ifndef INCLUDED_PARSE_H */ | 244 #endif /* #ifndef INCLUDED_PARSE_H */ |
OLD | NEW |