summaryrefslogtreecommitdiffstats
path: root/resources/utilities/ich9deblob/ich9gbe.c
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-22 05:58:57 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-22 05:58:57 (EST)
commit87d1d08196ed2c69d4736a2815135bb69d996d11 (patch)
tree8e061f7d66fc3fa56744d56e9ea1428d00640653 /resources/utilities/ich9deblob/ich9gbe.c
parentb9bcb5c141131e955e18b67d1107db8f3a13aebf (diff)
downloadlibreboot-87d1d08196ed2c69d4736a2815135bb69d996d11.zip
libreboot-87d1d08196ed2c69d4736a2815135bb69d996d11.tar.gz
libreboot-87d1d08196ed2c69d4736a2815135bb69d996d11.tar.bz2
ich9deblob: add more commenting
Diffstat (limited to 'resources/utilities/ich9deblob/ich9gbe.c')
-rw-r--r--resources/utilities/ich9deblob/ich9gbe.c16
1 files changed, 10 insertions, 6 deletions
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];
};