unsigned long NorFlash_GetDeviceSizeInBytes(struct NorFlashInfo *pNorFlashInfo) { return ((unsigned long) 2 << ((pNorFlashInfo->cfiDescription.norFlashCfiDeviceGeometry.deviceSize) - 1)); }