TianoCore EDK2 master
Loading...
Searching...
No Matches
XenAcpiPlatformDxe.c File Reference

Go to the source code of this file.

Functions

STATIC EFI_STATUS EFIAPI GetXenArmAcpiRsdp (OUT EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER **RsdpPtr)
 
STATIC EFI_STATUS EFIAPI InstallXenArmTables (IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol)
 
STATIC EFI_ACPI_TABLE_PROTOCOLFindAcpiTableProtocol (VOID)
 
EFI_STATUS EFIAPI XenAcpiPlatformEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Xen ARM ACPI Platform Driver using Xen ARM multiboot protocol

Copyright (C) 2016, Linaro Ltd. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file XenAcpiPlatformDxe.c.

Function Documentation

◆ FindAcpiTableProtocol()

STATIC EFI_ACPI_TABLE_PROTOCOL * FindAcpiTableProtocol ( VOID  )

Definition at line 237 of file XenAcpiPlatformDxe.c.

◆ GetXenArmAcpiRsdp()

STATIC EFI_STATUS EFIAPI GetXenArmAcpiRsdp ( OUT EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER **  RsdpPtr)

Get the address of Xen ACPI Root System Description Pointer (RSDP) structure.

Parameters
RsdpStructurePtrReturn pointer to RSDP structure
Returns
EFI_SUCCESS Find Xen RSDP structure successfully.
EFI_NOT_FOUND Don't find Xen RSDP structure.
EFI_ABORTED Find Xen RSDP structure, but it's not integrated.

Definition at line 34 of file XenAcpiPlatformDxe.c.

◆ InstallXenArmTables()

STATIC EFI_STATUS EFIAPI InstallXenArmTables ( IN EFI_ACPI_TABLE_PROTOCOL AcpiProtocol)

Get Xen Acpi tables from the RSDP structure. And installs Xen ACPI tables into the RSDT/XSDT using InstallAcpiTable. Some signature of the installed ACPI tables are: FACP, APIC, GTDT, DSDT.

Parameters
AcpiProtocolProtocol instance pointer.
Returns
EFI_SUCCESS The table was successfully inserted.
EFI_INVALID_PARAMETER Either AcpiTableBuffer is NULL, TableHandle is NULL, or AcpiTableBufferSize and the size field embedded in the ACPI table pointed to by AcpiTableBuffer are not in sync.
EFI_OUT_OF_RESOURCES Insufficient resources exist to complete the request.

Definition at line 116 of file XenAcpiPlatformDxe.c.

◆ XenAcpiPlatformEntryPoint()

EFI_STATUS EFIAPI XenAcpiPlatformEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Entrypoint of Xen ARM Acpi Platform driver.

Parameters
ImageHandle
SystemTable
Returns
EFI_SUCCESS
EFI_LOAD_ERROR
EFI_OUT_OF_RESOURCES

Definition at line 267 of file XenAcpiPlatformDxe.c.