diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-05-03 12:10:21 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-05-12 14:03:53 +0300 |
commit | eb416de99e6284ae8e6a331a1031a8a1c4f46e24 (patch) | |
tree | a716632907d37957b067cad372160327b43a5369 /tools | |
parent | 21467dc5e48ff32892e3f390aaba3f72bc5c532f (diff) |
tools/intel_bios_reader: dump the blocks in numerical order
All parsers fetch the information they need without ordering
constraints, so dump all in numerical order. This also makes it
unnecessary to track already dumped blocks.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_bios_reader.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c index e4366d3f..5dd6bec3 100644 --- a/tools/intel_bios_reader.c +++ b/tools/intel_bios_reader.c @@ -1368,13 +1368,8 @@ static void dump_section(struct context *context, int section_id) { struct dumper *dumper = NULL; const struct bdb_block *block; - static int done[256]; int i; - if (done[section_id]) - return; - done[section_id] = 1; - block = find_section(context, section_id); if (!block) return; @@ -1571,22 +1566,6 @@ int main(int argc, char **argv) context.panel_type = 0; } - dump_section(&context, BDB_GENERAL_FEATURES); - dump_section(&context, BDB_GENERAL_DEFINITIONS); - dump_section(&context, BDB_CHILD_DEVICE_TABLE); - dump_section(&context, BDB_LVDS_OPTIONS); - dump_section(&context, BDB_LVDS_LFP_DATA_PTRS); - dump_section(&context, BDB_LVDS_LFP_DATA); - dump_section(&context, BDB_LVDS_BACKLIGHT); - - dump_section(&context, BDB_SDVO_LVDS_OPTIONS); - dump_section(&context, BDB_SDVO_PANEL_DTDS); - - dump_section(&context, BDB_DRIVER_FEATURES); - dump_section(&context, BDB_EDP); - dump_section(&context, BDB_MIPI_CONFIG); - dump_section(&context, BDB_MIPI_SEQUENCE); - for (i = 0; i < 256; i++) dump_section(&context, i); |