blob: 1abe7fe13ed783a7c8c60fff2530211662fdb003 [file] [log] [blame]
eric_tian804405e2008-06-30 05:08:49 +00001/**@file
2 Entry Point Source file.
3
4 This file contains the user entry point
5
hhtianf9b8ab52010-04-28 12:31:45 +00006 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
eric_tian804405e2008-06-30 05:08:49 +00008 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13**/
14
15
16
17#include "UnixBlockIo.h"
18
19/**
20 The user Entry Point for module UnixBlockIo. The user code starts with this function.
21
22 @param[in] ImageHandle The firmware allocated handle for the EFI image.
23 @param[in] SystemTable A pointer to the EFI System Table.
24
25 @retval EFI_SUCCESS The entry point is executed successfully.
26 @retval other Some error occurs when executing this entry point.
27
28**/
29EFI_STATUS
30EFIAPI
31InitializeUnixBlockIo(
32 IN EFI_HANDLE ImageHandle,
33 IN EFI_SYSTEM_TABLE *SystemTable
34 )
35{
36 EFI_STATUS Status;
37
38 Status = EfiLibInstallAllDriverProtocols (
39 ImageHandle,
40 SystemTable,
41 &gUnixBlockIoDriverBinding,
42 ImageHandle,
43 &gUnixBlockIoComponentName,
44 NULL,
45 &gUnixBlockIoDriverDiagnostics
46 );
47 ASSERT_EFI_ERROR (Status);
48
49
50 return Status;
51}