aboutsummaryrefslogtreecommitdiff
path: root/resources/utilities/ich9deblob/src
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-01-11 00:14:40 +0000
committerFrancis Rowe <info@gluglug.org.uk>2015-01-11 00:14:40 +0000
commitd21f6ee04804f7d3e6f45edb5ba52563f1005575 (patch)
tree4d63c329c242bb0be0644e077885bd5d67a3f2bf /resources/utilities/ich9deblob/src
parent3403b8c4eee0640022f619504706a99a28dde1f5 (diff)
downloadlibrebootfr-d21f6ee04804f7d3e6f45edb5ba52563f1005575.tar.gz
librebootfr-d21f6ee04804f7d3e6f45edb5ba52563f1005575.zip
ich9deblob/ich9gen: word grab function (gbe): use clear naming
Diffstat (limited to 'resources/utilities/ich9deblob/src')
-rw-r--r--resources/utilities/ich9deblob/src/gbe/gbe.c4
-rw-r--r--resources/utilities/ich9deblob/src/gbe/gbe.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.c b/resources/utilities/ich9deblob/src/gbe/gbe.c
index beb5e141..baefec81 100644
--- a/resources/utilities/ich9deblob/src/gbe/gbe.c
+++ b/resources/utilities/ich9deblob/src/gbe/gbe.c
@@ -33,9 +33,9 @@
*/
/* Read a 16-bit unsigned int from a supplied region buffer */
-uint16_t gbeGetRegionWordFrom8kBuffer(int index, uint8_t* regionData)
+uint16_t gbeGetRegionWordFrom8kBuffer(int wordOffset, uint8_t* regionData)
{
- return *((uint16_t*)(regionData + (index << 1)));
+ return *((uint16_t*)(regionData + (wordOffset << 1)));
}
/*
diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.h b/resources/utilities/ich9deblob/src/gbe/gbe.h
index 4b2f496b..68b9ed70 100644
--- a/resources/utilities/ich9deblob/src/gbe/gbe.h
+++ b/resources/utilities/ich9deblob/src/gbe/gbe.h
@@ -424,7 +424,7 @@ struct GBEREGIONRECORD_8K {
* ---------------------------------------------------------------------
*/
-uint16_t gbeGetRegionWordFrom8kBuffer(int index, uint8_t* regionData);
+uint16_t gbeGetRegionWordFrom8kBuffer(int wordOffset, uint8_t* regionData);
uint16_t gbeGetChecksumFrom8kBuffer(uint8_t* regionData, uint16_t desiredValue, int byteOffset);
uint16_t gbeGetChecksumFrom4kStruct(struct GBEREGIONRECORD_4K gbeStruct4k, uint16_t desiredValue);
struct GBEREGIONRECORD_8K deblobbedGbeStructFromFactory(struct GBEREGIONRECORD_8K factoryGbeStruct8k);