TianoCore EDK2
master
Loading...
Searching...
No Matches
UfsPciHcPei.h
Go to the documentation of this file.
1
7
#ifndef _UFS_PCI_HOST_CONTROLLER_PEI_H_
8
#define _UFS_PCI_HOST_CONTROLLER_PEI_H_
9
10
#include <
PiPei.h
>
11
12
#include <
Ppi/MasterBootMode.h
>
13
#include <
Ppi/UfsHostController.h
>
14
15
#include <
IndustryStandard/Pci.h
>
16
17
#include <
Library/DebugLib.h
>
18
#include <
Library/BaseLib.h
>
19
#include <
Library/BaseMemoryLib.h
>
20
#include <
Library/PciLib.h
>
21
#include <
Library/PeiServicesLib.h
>
22
#include <
Library/MemoryAllocationLib.h
>
23
24
#define UFS_HC_PEI_SIGNATURE SIGNATURE_32 ('U', 'F', 'S', 'P')
25
#define MAX_UFS_HCS 8
26
27
typedef
struct
{
28
UINTN
Signature;
29
EDKII_UFS_HOST_CONTROLLER_PPI
UfsHostControllerPpi;
30
EFI_PEI_PPI_DESCRIPTOR
PpiList;
31
UINTN
TotalUfsHcs;
32
UINTN
UfsHcPciAddr[MAX_UFS_HCS];
33
}
UFS_HC_PEI_PRIVATE_DATA
;
34
35
#define UFS_HC_PEI_PRIVATE_DATA_FROM_THIS(a) CR (a, UFS_HC_PEI_PRIVATE_DATA, UfsHostControllerPpi, UFS_HC_PEI_SIGNATURE)
36
48
EFI_STATUS
49
EFIAPI
50
GetUfsHcMmioBar
(
51
IN
EDKII_UFS_HOST_CONTROLLER_PPI
*This,
52
IN
UINT8 ControllerId,
53
OUT
UINTN
*MmioBar
54
);
55
56
#endif
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
BaseLib.h
BaseMemoryLib.h
MasterBootMode.h
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
Pci.h
DebugLib.h
PciLib.h
MemoryAllocationLib.h
PeiServicesLib.h
PiPei.h
UfsHostController.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
GetUfsHcMmioBar
EFI_STATUS EFIAPI GetUfsHcMmioBar(IN EDKII_UFS_HOST_CONTROLLER_PPI *This, IN UINT8 ControllerId, OUT UINTN *MmioBar)
Definition:
UfsPciHcPei.c:33
_EDKII_UFS_HOST_CONTROLLER_PPI
Definition:
UfsHostController.h:47
EFI_PEI_PPI_DESCRIPTOR
Definition:
PiPeiCis.h:90
UFS_HC_PEI_PRIVATE_DATA
Definition:
UfsPciHcPei.h:27
MdeModulePkg
Bus
Pci
UfsPciHcPei
UfsPciHcPei.h
Generated on Fri Nov 15 2024 18:01:09 for TianoCore EDK2 by
1.9.6