/** @file\r
Implementation for S3 Boot Script Saver state driver.\r
\r
- Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
UINT16 Segment;\r
\r
Width = VA_ARG (Marker, S3_BOOT_SCRIPT_LIB_WIDTH);\r
+ Segment = VA_ARG (Marker, UINT16);\r
Address = VA_ARG (Marker, UINT64);\r
Count = VA_ARG (Marker, UINTN);\r
Buffer = VA_ARG (Marker, UINT8 *);\r
- Segment = VA_ARG (Marker, UINT16);\r
\r
return S3BootScriptSavePciCfg2Write (Width, Segment, Address, Count, Buffer);\r
}\r
UINT8 *DataMask;\r
\r
Width = VA_ARG (Marker, S3_BOOT_SCRIPT_LIB_WIDTH);\r
- Address = VA_ARG (Marker, UINT64);\r
Segment = VA_ARG (Marker, UINT16);\r
+ Address = VA_ARG (Marker, UINT64);\r
Data = VA_ARG (Marker, UINT8 *);\r
DataMask = VA_ARG (Marker, UINT8 *);\r
\r
return S3BootScriptSavePciCfg2ReadWrite (Width, Segment, Address, Data, DataMask);\r
}\r
/**\r
- Internal function to add smbus excute opcode to the table.\r
+ Internal function to add smbus execute opcode to the table.\r
\r
@param Marker The variable argument list to get the opcode\r
and associated attributes.\r
UINT64 Address; \r
VOID *Data; \r
VOID *DataMask; \r
- UINTN Delay; \r
- UINTN LoopTimes;\r
+ UINT64 Delay;\r
+ UINT64 LoopTimes;\r
UINT32 Remainder;\r
\r
Width = VA_ARG (Marker, S3_BOOT_SCRIPT_LIB_WIDTH); \r
Address = VA_ARG (Marker, UINT64); \r
Data = VA_ARG (Marker, VOID *); \r
DataMask = VA_ARG (Marker, VOID *); \r
- Delay = (UINTN)VA_ARG (Marker, UINT64); \r
+ Delay = VA_ARG (Marker, UINT64);\r
//\r
// According to the spec, the interval between 2 polls is 100ns,\r
// but the unit of Duration for S3BootScriptSaveMemPoll() is microsecond(1000ns).\r
// Duration will be minimum 1(microsecond) to be minimum deviation,\r
// so LoopTimes = Delay / 10.\r
//\r
- LoopTimes = (UINTN) DivU64x32Remainder (\r
+ LoopTimes = DivU64x32Remainder (\r
Delay,\r
10,\r
&Remainder\r