Exemple #1
0
/**
  The user Entry Point for module UnixBlockIo. The user code starts with this function.

  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  
  @param[in] SystemTable    A pointer to the EFI System Table.
  
  @retval EFI_SUCCESS       The entry point is executed successfully.
  @retval other             Some error occurs when executing this entry point.

**/
EFI_STATUS
EFIAPI
InitializeUnixBlockIo(
  IN EFI_HANDLE           ImageHandle,
  IN EFI_SYSTEM_TABLE     *SystemTable
  )
{
  EFI_STATUS              Status;

  Status = EfiLibInstallAllDriverProtocols (
             ImageHandle,
             SystemTable,
             &gUnixBlockIoDriverBinding,
             ImageHandle,
             &gUnixBlockIoComponentName,
             NULL,
             &gUnixBlockIoDriverDiagnostics
             );
  ASSERT_EFI_ERROR (Status);


  return Status;
}
Exemple #2
0
/**
  The user Entry Point for module UnixSimpleFileSystem. The user code starts with this function.

  @param[in] ImageHandle    The firmware allocated handle for the EFI image.
  @param[in] SystemTable    A pointer to the EFI System Table.

  @retval EFI_SUCCESS       The entry point is executed successfully.
  @retval other             Some error occurs when executing this entry point.

**/
EFI_STATUS
EFIAPI
InitializeUnixSimpleFileSystem(
    IN EFI_HANDLE           ImageHandle,
    IN EFI_SYSTEM_TABLE     *SystemTable
)
{
    EFI_STATUS              Status;

    Status = EfiLibInstallAllDriverProtocols (
                 ImageHandle,
                 SystemTable,
                 &gUnixSimpleFileSystemDriverBinding,
                 ImageHandle,
                 &gUnixSimpleFileSystemComponentName,
                 NULL,
                 NULL
             );
    ASSERT_EFI_ERROR (Status);


    return Status;
}