summaryrefslogtreecommitdiffstats
path: root/resources/utilities
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-01-10 19:14:40 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-01-10 19:14:40 (EST)
commitd21f6ee04804f7d3e6f45edb5ba52563f1005575 (patch)
tree4d63c329c242bb0be0644e077885bd5d67a3f2bf /resources/utilities
parent3403b8c4eee0640022f619504706a99a28dde1f5 (diff)
downloadlibreboot-d21f6ee04804f7d3e6f45edb5ba52563f1005575.zip
libreboot-d21f6ee04804f7d3e6f45edb5ba52563f1005575.tar.gz
libreboot-d21f6ee04804f7d3e6f45edb5ba52563f1005575.tar.bz2
ich9deblob/ich9gen: word grab function (gbe): use clear naming
Diffstat (limited to 'resources/utilities')
-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 beb5e14..baefec8 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 4b2f496..68b9ed7 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);