diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /Include/Protocol/StorageSecurityCommand.h | |
download | zprj-master.tar.xz |
Diffstat (limited to 'Include/Protocol/StorageSecurityCommand.h')
-rw-r--r-- | Include/Protocol/StorageSecurityCommand.h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/Include/Protocol/StorageSecurityCommand.h b/Include/Protocol/StorageSecurityCommand.h new file mode 100644 index 0000000..4a63cd9 --- /dev/null +++ b/Include/Protocol/StorageSecurityCommand.h @@ -0,0 +1,97 @@ +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* + +//************************************************************************* +// $Header: /Alaska/BIN/Core/Include/Protocol/StorageSecurityCommand.h 1 6/09/11 2:28p Artems $ +// +// $Revision: 1 $ +// +// $Date: 6/09/11 2:28p $ +//************************************************************************* +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Core/Include/Protocol/StorageSecurityCommand.h $ +// +// 1 6/09/11 2:28p Artems +// +//************************************************************************* +//<AMI_FHDR_START> +// +// Name: StorageSecurityCommand.h +// +// Description: +// EFI_DRIVER_HEALTH_PROTOCOL definition file +// +//<AMI_FHDR_END> +//************************************************************************* +#ifndef __STORAGE_SECURITY_COMMAND_PROTOCOL__H__ +#define __STORAGE_SECURITY_COMMAND_PROTOCOL__H__ +#ifdef __cplusplus +extern "C" { +#endif + +#include <EFI.h> + +#define EFI_STORAGE_SECURITY_COMMAND_PROTOCOL_GUID \ + { 0xc88b0b6d, 0x0dfc, 0x49a7, 0x9c, 0xb4, 0x49, 0x7, 0x4b, 0x4c, 0x3a, 0x78 } + +GUID_VARIABLE_DECLARATION(gEfiStorageSecurityCommandProtocolGuid, EFI_STORAGE_SECURITY_COMMAND_PROTOCOL_GUID); + + +typedef struct _EFI_STORAGE_SECURITY_COMMAND_PROTOCOL EFI_STORAGE_SECURITY_COMMAND_PROTOCOL; + +typedef EFI_STATUS (EFIAPI *EFI_STORAGE_SECURITY_RECEIVE_DATA)( + IN EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *This, + IN UINT32 MediaId, + IN UINT64 Timeout, + IN UINT8 SecurityProtocol, + IN UINT16 SecurityProtocolSpecificData, + IN UINTN PayloadBufferSize, + OUT VOID *PayloadBuffer, + OUT UINTN *PayloadTransferSize +); + +typedef EFI_STATUS (EFIAPI *EFI_STORAGE_SECURITY_SEND_DATA)( + IN EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *This, + IN UINT32 MediaId, + IN UINT64 Timeout, + IN UINT8 SecurityProtocolId, + IN UINT16 SecurityProtocolSpecificData, + IN UINTN PayloadBufferSize, + IN VOID *PayloadBuffer +); + +struct _EFI_STORAGE_SECURITY_COMMAND_PROTOCOL { + EFI_STORAGE_SECURITY_RECEIVE_DATA ReceiveData; + EFI_STORAGE_SECURITY_SEND_DATA SendData; +}; + +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* |