}\r
\r
VOID PrintOCR(UINT32 ocr) {\r
- float minv, maxv, volts;\r
- int loop;\r
+ UINTN minv, maxv, volts;\r
+ UINTN loop;\r
\r
- minv = 3.6;\r
- maxv = 2.0;\r
- volts = 2.0;\r
+ minv = 36; // 3.6\r
+ maxv = 20; // 2.0\r
+ volts = 20; // 2.0\r
\r
// The MMC register bits [23:8] indicate the working range of the card\r
for (loop = 8; loop < 24; loop++) {\r
if (ocr & (1 << loop)) {\r
if (minv > volts) minv = volts;\r
- if (maxv < volts) maxv = volts + 0.1;\r
+ if (maxv < volts) maxv = volts + 1;\r
}\r
- volts = volts + 0.1;\r
+ volts = volts + 1;\r
}\r
\r
DEBUG((EFI_D_ERROR, "- PrintOCR ocr (0x%X)\n",ocr));\r
- //DEBUG((EFI_D_ERROR, "\t- Card operating voltage: %fV to %fV\n", minv, maxv));\r
+ DEBUG((EFI_D_ERROR, "\t- Card operating voltage: %d.%d to %d.%d\n", minv/10, minv % 10, maxv/10, maxv % 10));\r
if (((ocr >> 29) & 3) == 0)\r
DEBUG((EFI_D_ERROR, "\t- AccessMode: Byte Mode\n"));\r
else\r