From 87d1d08196ed2c69d4736a2815135bb69d996d11 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 22 Dec 2014 05:58:57 -0500 Subject: ich9deblob: add more commenting --- (limited to 'resources/utilities/ich9deblob/ich9gbe.c') diff --git a/resources/utilities/ich9deblob/ich9gbe.c b/resources/utilities/ich9deblob/ich9gbe.c index 69eb9ca..b6d279b 100644 --- a/resources/utilities/ich9deblob/ich9gbe.c +++ b/resources/utilities/ich9deblob/ich9gbe.c @@ -18,12 +18,16 @@ */ struct GBEREGIONRECORD { - unsigned char macAddress[6]; - unsigned char otherStuff[120]; - unsigned short checkSum; + unsigned char macAddress[6]; // 0x03 words, or 0x06 bytes + unsigned char otherStuff[120]; // 0x3c words, or 0x7E bytes + unsigned short checkSum; // when added to the sum of all words above, this should be 0xBABA unsigned char padding1[3968]; - unsigned char macAddress2[6]; - unsigned char otherStuff2[120]; - unsigned short checkSum2; + // Backup region: + // This is actually "main" on X200, since the real main has a bad checksum + // and other errors. You should do what you need on this one (if modifying + // lenovobios's gbe region) and then copy to main + unsigned char macAddress2[6]; // ditto + unsigned char otherStuff2[120]; // ditto + unsigned short checkSum2; // ditto unsigned char padding2[3968]; }; -- cgit v0.9.1