diff options
Diffstat (limited to 'resources/utilities/ich9deblob/src')
-rw-r--r-- | resources/utilities/ich9deblob/src/gbe/gbe.c | 4 | ||||
-rw-r--r-- | resources/utilities/ich9deblob/src/gbe/gbe.h | 2 |
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); |