TianoCore EDK2 master
Loading...
Searching...
No Matches
OpalPasswordPei.h
Go to the documentation of this file.
1
9#ifndef _OPAL_PASSWORD_PEI_H_
10#define _OPAL_PASSWORD_PEI_H_
11
12#include <PiPei.h>
13
14#include <Library/DebugLib.h>
15#include <Library/IoLib.h>
16#include <Library/PciLib.h>
17#include <Library/BaseLib.h>
22#include <Library/LockBoxLib.h>
26
28
29#include <Ppi/IoMmu.h>
31
32#include "OpalPasswordCommon.h"
33
34//
35// The generic command timeout value (unit in us) for Storage Security Command
36// PPI ReceiveData/SendData services
37//
38#define SSC_PPI_GENERIC_TIMEOUT 30000000
39
40#pragma pack(1)
41
42#define OPAL_PEI_DEVICE_SIGNATURE SIGNATURE_32 ('o', 'p', 'd', 's')
43
44typedef struct {
45 UINTN Signature;
48 VOID *Context;
50 UINTN DeviceIndex;
52
53#define OPAL_PEI_DEVICE_FROM_THIS(a) \
54 CR (a, OPAL_PEI_DEVICE, Sscp, OPAL_PEI_DEVICE_SIGNATURE)
55
56#pragma pack()
57
58#endif // _OPAL_PASSWORD_PEI_H_
UINT64 UINTN