iPXE
Functions | Variables
efi_acpi.c File Reference

iPXE ACPI API for EFI More...

#include <ipxe/acpi.h>
#include <ipxe/efi/efi.h>
#include <ipxe/efi/Guid/Acpi.h>
#include <ipxe/efi/efi_acpi.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 EFI_USE_TABLE (ACPI_10_TABLE, &rsdp, 0)
 
static userptr_t efi_find_rsdt (void)
 Locate ACPI root system description table. More...
 
 PROVIDE_ACPI (efi, acpi_find_rsdt, efi_find_rsdt)
 

Variables

static EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTERrsdp
 ACPI configuration table. More...
 

Detailed Description

iPXE ACPI API for EFI

Definition in file efi_acpi.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ EFI_USE_TABLE()

EFI_USE_TABLE ( ACPI_10_TABLE  ,
rsdp,
 
)

◆ efi_find_rsdt()

static userptr_t efi_find_rsdt ( void  )
static

Locate ACPI root system description table.

Return values
rsdtACPI root system description table, or UNULL

Definition at line 47 of file efi_acpi.c.

47  {
48 
49  /* Locate RSDT via ACPI configuration table, if available */
50  if ( rsdp )
51  return phys_to_user ( rsdp->RsdtAddress );
52 
53  return UNULL;
54 }
userptr_t phys_to_user(unsigned long phys_addr)
Convert physical address to user pointer.
static EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER * rsdp
ACPI configuration table.
Definition: efi_acpi.c:39
#define UNULL
Equivalent of NULL for user pointers.
Definition: uaccess.h:36

References phys_to_user(), rsdp, EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER::RsdtAddress, and UNULL.

◆ PROVIDE_ACPI()

PROVIDE_ACPI ( efi  ,
acpi_find_rsdt  ,
efi_find_rsdt   
)

Variable Documentation

◆ rsdp

ACPI configuration table.

Definition at line 39 of file efi_acpi.c.

Referenced by efi_find_rsdt(), and rsdp_find_rsdt_range().