[Intel-gfx] [PATCH i-g-t 12/17] tools/intel_bios_reader: dump the blocks in numerical order
Jani Nikula
jani.nikula at intel.com
Tue May 3 14:19:02 UTC 2016
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 at intel.com>
---
tools/intel_bios_reader.c | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/tools/intel_bios_reader.c b/tools/intel_bios_reader.c
index fcef4ff43618..94b0d6055eb1 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);
--
2.1.4
More information about the Intel-gfx
mailing list