From b1e756451c59b342a9d15433379bf543ddedd56b Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Wed, 25 Mar 2015 13:36:52 +0200 Subject: intel_bios_reader: Read the child device size from VBT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New stuff has been added to the end of the child device block at various times, so using a hardcoded size for the block is a bad idea. Fortunately the size of the block is listed in the VBT just before the blocks themselves, so grab it from there. Signed-off-by: Ville Syrjälä --- tools/intel_bios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/intel_bios.h') diff --git a/tools/intel_bios.h b/tools/intel_bios.h index aedc5fcb..64e723d4 100644 --- a/tools/intel_bios.h +++ b/tools/intel_bios.h @@ -269,7 +269,7 @@ struct bdb_general_definitions { * TV and LVDS are missing, so be careful when interpreting * [4] and [5]. */ - struct child_device_config devices[0]; + uint8_t devices[0]; /* may be another device block here on some platforms */ } __attribute__ ((packed)); -- cgit v1.2.3