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>
14
16
17#include <Library/DebugLib.h>
18#include <Library/BaseLib.h>
20#include <Library/PciLib.h>
23
24#define UFS_HC_PEI_SIGNATURE SIGNATURE_32 ('U', 'F', 'S', 'P')
25#define MAX_UFS_HCS 8
26
27typedef struct {
28 UINTN Signature;
29 EDKII_UFS_HOST_CONTROLLER_PPI UfsHostControllerPpi;
31 UINTN TotalUfsHcs;
32 UINTN UfsHcPciAddr[MAX_UFS_HCS];
34
35#define UFS_HC_PEI_PRIVATE_DATA_FROM_THIS(a) CR (a, UFS_HC_PEI_PRIVATE_DATA, UfsHostControllerPpi, UFS_HC_PEI_SIGNATURE)
36
49EFIAPI
52 IN UINT8 ControllerId,
53 OUT UINTN *MmioBar
54 );
55
56#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_STATUS EFIAPI GetUfsHcMmioBar(IN EDKII_UFS_HOST_CONTROLLER_PPI *This, IN UINT8 ControllerId, OUT UINTN *MmioBar)
Definition: UfsPciHcPei.c:33