TianoCore EDK2 master
Loading...
Searching...
No Matches
IoMmuDxe.c
Go to the documentation of this file.
1
12#include "CcIoMmu.h"
13
15EFIAPI
16IoMmuDxeEntryPoint (
17 IN EFI_HANDLE ImageHandle,
18 IN EFI_SYSTEM_TABLE *SystemTable
19 )
20{
21 EFI_STATUS Status;
22 EFI_HANDLE Handle;
23
24 //
25 // When SEV or TDX is enabled, install IoMmu protocol otherwise install the
26 // placeholder protocol so that other dependent module can run.
27 //
29 Status = InstallIoMmuProtocol ();
30 } else {
31 Handle = NULL;
32
33 Status = gBS->InstallMultipleProtocolInterfaces (
34 &Handle,
35 &gIoMmuAbsentProtocolGuid,
36 NULL,
37 NULL
38 );
39 }
40
41 return Status;
42}
EFI_STATUS EFIAPI InstallIoMmuProtocol(VOID)
Definition: CcIoMmu.c:929
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
BOOLEAN EFIAPI MemEncryptSevIsEnabled(VOID)
BOOLEAN EFIAPI MemEncryptTdxIsEnabled(VOID)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_BOOT_SERVICES * gBS