summaryrefslogtreecommitdiff
path: root/Include/Protocol/StorageSecurityCommand.h
blob: 4a63cd950620f9a91f23e9e9c975603201f2e155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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                         **
//**                                                                     **
//*************************************************************************
//*************************************************************************