iPXE
Functions | Variables
efidrvprefix.c File Reference
#include <stdlib.h>
#include <ipxe/init.h>
#include <ipxe/device.h>
#include <ipxe/efi/efi.h>
#include <ipxe/efi/efi_driver.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
EFI_STATUS EFIAPI _efidrv_start (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab)
 EFI entry point.
static int efi_probe (struct root_device *rootdev __unused)
 Probe EFI root bus.
static void efi_remove (struct root_device *rootdev __unused)
 Remove EFI root bus.

Variables

static struct root_driver efi_root_driver
 EFI root device driver.
struct root_device efi_root_device __root_device
 EFI root device.

Function Documentation

FILE_LICENCE ( GPL2_OR_LATER  )
EFI_STATUS EFIAPI _efidrv_start ( EFI_HANDLE  image_handle,
EFI_SYSTEM_TABLE systab 
)

EFI entry point.

Parameters:
image_handleImage handle
systabSystem table
Return values:
efircEFI return status code

Definition at line 35 of file efidrvprefix.c.

References efi_init(), initialise(), and startup().

                                                             {
        EFI_STATUS efirc;

        /* Initialise EFI environment */
        if ( ( efirc = efi_init ( image_handle, systab ) ) != 0 )
                return efirc;

        /* Initialise iPXE environment */
        initialise();
        startup();

        return 0;
}
static int efi_probe ( struct root_device *rootdev  __unused) [static]

Probe EFI root bus.

Parameters:
rootdevEFI root device

Definition at line 55 of file efidrvprefix.c.

                                                              {

        /* Do nothing */
        return 0;
}
static void efi_remove ( struct root_device *rootdev  __unused) [static]

Remove EFI root bus.

Parameters:
rootdevEFI root device

Definition at line 66 of file efidrvprefix.c.

References efi_driver_disconnect_all().


Variable Documentation

struct root_driver efi_root_driver [static]
Initial value:
 {
        .probe = efi_probe,
        .remove = efi_remove,
}

EFI root device driver.

Definition at line 72 of file efidrvprefix.c.

struct root_device efi_root_device __root_device
Initial value:
 {
        .dev = { .name = "EFI" },
        .driver = &efi_root_driver,
}

EFI root device.

Definition at line 78 of file efidrvprefix.c.