From 715fe3c8d106e396562abff64977d5e33a043720 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 11 Jan 2015 04:32:19 +0000 Subject: ich9deblob/ich9gen: checksum function: rename variable --- resources/utilities/ich9deblob/src/gbe/gbe.c | 4 ++-- 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 b39e22b6..3a594bc2 100644 --- a/resources/utilities/ich9deblob/src/gbe/gbe.c +++ b/resources/utilities/ich9deblob/src/gbe/gbe.c @@ -33,13 +33,13 @@ */ /* gbe checksum calculation (algorithm based on datasheet) */ -uint16_t gbeGetChecksumFrom4kBuffer(uint16_t* regionData, uint16_t desiredValue, int gbeRegionBase) +uint16_t gbeGetChecksumFrom4kBuffer(uint16_t* gbeWord, uint16_t desiredValue, int gbeRegionBase) { int wordOffset; uint16_t total = 0; for (wordOffset = 0; wordOffset < 0x3F; wordOffset++) - total += regionData[wordOffset + (gbeRegionBase>>1)]; + total += gbeWord[wordOffset + (gbeRegionBase>>1)]; return desiredValue - total; } diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.h b/resources/utilities/ich9deblob/src/gbe/gbe.h index 39e7e676..d4851e81 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 gbeGetChecksumFrom4kBuffer(uint16_t* regionData, uint16_t desiredValue, int gbeRegionBase); +uint16_t gbeGetChecksumFrom4kBuffer(uint16_t* gbeWord, uint16_t desiredValue, int gbeRegionBase); uint16_t gbeGetChecksumFrom4kStruct(struct GBEREGIONRECORD_4K gbeStruct4k, uint16_t desiredValue); struct GBEREGIONRECORD_8K deblobbedGbeStructFromFactory(struct GBEREGIONRECORD_8K factoryGbeStruct8k); int notCreatedHFileForGbeCFile(char* outFileName, char* cFileName); -- cgit v1.2.3-70-g09d2