UINT32 Data32;\r
UINT16 RspTag;\r
\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
UINTN DebugSize;\r
\r
DEBUG ((DEBUG_VERBOSE, "Tpm12TisTpmCommand Send - "));\r
}\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
TpmOutSize = 0;\r
\r
Status = Tpm12TisPcPrepareCommand (TisReg);\r
if (Index == sizeof (TPM_RSP_COMMAND_HDR)) break;\r
}\r
}\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
DEBUG ((DEBUG_VERBOSE, "Tpm12TisTpmCommand ReceiveHeader - "));\r
for (Index = 0; Index < sizeof (TPM_RSP_COMMAND_HDR); Index++) {\r
DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
//\r
// Check the response data header (tag, parasize and returncode)\r
//\r
}\r
}\r
Exit:\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
DEBUG ((DEBUG_VERBOSE, "Tpm12TisTpmCommand Receive - "));\r
for (Index = 0; Index < TpmOutSize; Index++) {\r
DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
MmioWrite8((UINTN)&TisReg->Status, TIS_PC_STS_READY);\r
return Status;\r
}\r
UINT16 Data16;\r
UINT32 Data32;\r
\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
UINTN DebugSize;\r
\r
DEBUG ((DEBUG_VERBOSE, "PtpCrbTpmCommand Send - "));\r
}\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
TpmOutSize = 0;\r
\r
//\r
for (Index = 0; Index < sizeof (TPM2_RESPONSE_HEADER); Index++) {\r
BufferOut[Index] = MmioRead8 ((UINTN)&CrbReg->CrbDataBuffer[Index]);\r
}\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
DEBUG ((DEBUG_VERBOSE, "PtpCrbTpmCommand ReceiveHeader - "));\r
for (Index = 0; Index < sizeof (TPM2_RESPONSE_HEADER); Index++) {\r
DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
//\r
// Check the response data header (tag, parasize and returncode)\r
//\r
BufferOut[Index] = MmioRead8 ((UINTN)&CrbReg->CrbDataBuffer[Index]);\r
}\r
\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
DEBUG ((DEBUG_VERBOSE, "PtpCrbTpmCommand Receive - "));\r
for (Index = 0; Index < TpmOutSize; Index++) {\r
DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
\r
GoReady_Exit:\r
//\r
UINT16 Data16;\r
UINT32 Data32;\r
\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
UINTN DebugSize;\r
\r
DEBUG ((DEBUG_VERBOSE, "Tpm2TisTpmCommand Send - "));\r
}\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
TpmOutSize = 0;\r
\r
Status = TisPcPrepareCommand (TisReg);\r
if (Index == sizeof (TPM2_RESPONSE_HEADER)) break;\r
}\r
}\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
DEBUG ((DEBUG_VERBOSE, "Tpm2TisTpmCommand ReceiveHeader - "));\r
for (Index = 0; Index < sizeof (TPM2_RESPONSE_HEADER); Index++) {\r
DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
//\r
// Check the response data header (tag,parasize and returncode )\r
//\r
}\r
}\r
Exit:\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
DEBUG ((DEBUG_VERBOSE, "Tpm2TisTpmCommand Receive - "));\r
for (Index = 0; Index < TpmOutSize; Index++) {\r
DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
}\r
DEBUG ((DEBUG_VERBOSE, "\n"));\r
- );\r
+ DEBUG_CODE_END ();\r
MmioWrite8((UINTN)&TisReg->Status, TIS_PC_STS_READY);\r
return Status;\r
}\r
DEBUG ((DEBUG_INFO, "Tpm2GetCapabilityManufactureID - %08x\n", mTcgDxeData.BsCap.ManufacturerID));\r
}\r
\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
UINT32 FirmwareVersion1;\r
UINT32 FirmwareVersion2;\r
\r
} else {\r
DEBUG ((DEBUG_INFO, "Tpm2GetCapabilityFirmwareVersion - %08x %08x\n", FirmwareVersion1, FirmwareVersion2));\r
}\r
- );\r
+ DEBUG_CODE_END ();\r
\r
Status = Tpm2GetCapabilityMaxCommandResponseSize (&MaxCommandSize, &MaxResponseSize);\r
if (EFI_ERROR (Status)) {\r