summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-11 04:32:30 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-11 04:32:30 +0000
commit65d02573b86a8008df6e3a4d1fa960f3858011a1 (patch)
treebc73daf6e0277d9e15044e1a28e29813b85da71d /MdePkg
parentd69f66d6e3060110fe9b75a06dada25c32620d9d (diff)
downloadedk2-platforms-65d02573b86a8008df6e3a4d1fa960f3858011a1.tar.xz
Improve status codes returned for functions of EFI_TCG_PROTOCOL. Note that after change, status codes returned for functions of EFI_TCG_PROTOCOL do not exactly match those defined in the TCG EFI Protocol 1.20 Final Specification.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9552 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Protocol/TcgService.h41
1 files changed, 19 insertions, 22 deletions
diff --git a/MdePkg/Include/Protocol/TcgService.h b/MdePkg/Include/Protocol/TcgService.h
index 519cfbbfc5..3f27b9a3ae 100644
--- a/MdePkg/Include/Protocol/TcgService.h
+++ b/MdePkg/Include/Protocol/TcgService.h
@@ -2,7 +2,7 @@
TCG Service Protocol as defined in TCG_EFI_Protocol_1_20_Final
See http://trustedcomputinggroup.org for the latest specification
- Copyright (c) 2007 - 2008, Intel Corporation
+ Copyright (c) 2007 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -42,6 +42,12 @@ typedef struct _TCG_EFI_BOOT_SERVICE_CAPABILITY {
typedef UINT32 TCG_ALGORITHM_ID;
+///
+/// Note:
+/// Status codes returned for functions of EFI_TCG_PROTOCOL do not exactly match
+/// those defined in the TCG EFI Protocol 1.20 Final Specification.
+///
+
/**
This service provides EFI protocol capability information, state information
about the TPM, and Event Log state information.
@@ -61,11 +67,7 @@ typedef UINT32 TCG_ALGORITHM_ID;
the last entry in the event log in memory.
@retval EFI_SUCCESS Operation completed successfully.
- @retval EFI_DEVICE_ERROR The command was unsuccessful.
- @retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.
- @retval EFI_BUFFER_TOO_SMALL The receive buffer is too small.
- @retval EFI_NOT_FOUND The component was not running
-
+ @retval EFI_INVALID_PARAMETER ProtocolCapability does not match TCG capability.
**/
typedef
EFI_STATUS
@@ -89,11 +91,11 @@ EFI_STATUS
@param HashedDataResult Resultant buffer of the hashed data
@retval EFI_SUCCESS Operation completed successfully.
- @retval EFI_DEVICE_ERROR The command was unsuccessful.
- @retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.
- @retval EFI_BUFFER_TOO_SMALL The receive buffer is too small.
- @retval EFI_NOT_FOUND The component was not running
-
+ @retval EFI_INVALID_PARAMETER HashDataLen is NULL.
+ @retval EFI_INVALID_PARAMETER HashDataLenResult is NULL.
+ @retval EFI_OUT_OF_RESOURCES Cannot allocate buffer of size *HashedDataLen.
+ @retval EFI_UNSUPPORTED AlgorithmId not supported.
+ @retval EFI_BUFFER_TOO_SMALL *HashedDataLen < sizeof (TCG_DIGEST).
**/
typedef
EFI_STATUS
@@ -120,10 +122,7 @@ EFI_STATUS
other bits are reserved.
@retval EFI_SUCCESS Operation completed successfully.
- @retval EFI_DEVICE_ERROR The command was unsuccessful.
- @retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.
- @retval EFI_BUFFER_TOO_SMALL The receive buffer is too small.
- @retval EFI_NOT_FOUND The component was not running
+ @retval EFI_OUT_OF_RESOURCES Insufficient memory in the event log to complete this action.
**/
typedef
EFI_STATUS
@@ -144,10 +143,9 @@ EFI_STATUS
@param TpmOutputParameterBlock Pointer to the TPM output parameter block
@retval EFI_SUCCESS Operation completed successfully.
- @retval EFI_DEVICE_ERROR The command was unsuccessful.
- @retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.
- @retval EFI_BUFFER_TOO_SMALL The receive buffer is too small.
- @retval EFI_NOT_FOUND The component was not running
+ @retval EFI_INVALID_PARAMETER Invalid ordinal.
+ @retval EFI_UNSUPPORTED Current Task Priority Level >= EFI_TPL_CALLBACK.
+ @retval EFI_TIMEOUT The TIS timed-out.
**/
typedef
EFI_STATUS
@@ -177,10 +175,9 @@ EFI_STATUS
the start of the Event Log.
@retval EFI_SUCCESS Operation completed successfully.
+ @retval EFI_UNSUPPORTED AlgorithmId != TPM_ALG_SHA.
+ @retval EFI_UNSUPPORTED Current TPL >= EFI_TPL_CALLBACK.
@retval EFI_DEVICE_ERROR The command was unsuccessful.
- @retval EFI_INVALID_PARAMETER One or more of the parameters are incorrect.
- @retval EFI_BUFFER_TOO_SMALL The receive buffer is too small.
- @retval EFI_NOT_FOUND The component was not running
**/
typedef
EFI_STATUS