pdated code per coding standard. Changed comments, converted all \ to / and removed...
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / DiskIo / Dxe / EntryPoint.c
CommitLineData
79840ee1 1/**@file\r
2 Entry Point Source file.\r
3\r
4 This file contains the user entry point \r
5\r
6 Copyright (c) 2006 - 2007, Intel Corporation\r
7 All rights reserved. This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which accompanies this distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13**/\r
14\r
15\r
16//\r
17// Include common header file for this module.\r
18//\r
19#include "CommonHeader.h"\r
20\r
21/**\r
22 The user Entry Point for module DiskIo. The user code starts with this function.\r
23\r
24 @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
25 @param[in] SystemTable A pointer to the EFI System Table.\r
26 \r
27 @retval EFI_SUCCESS The entry point is executed successfully.\r
28 @retval other Some error occurs when executing this entry point.\r
29\r
30**/\r
31EFI_STATUS\r
32EFIAPI\r
33InitializeDiskIo(\r
34 IN EFI_HANDLE ImageHandle,\r
35 IN EFI_SYSTEM_TABLE *SystemTable\r
36 )\r
37{\r
38 EFI_STATUS Status;\r
39\r
40 //\r
41 // Install driver model protocol(s).\r
42 //\r
43 Status = EfiLibInstallAllDriverProtocols (\r
44 ImageHandle,\r
45 SystemTable,\r
46 &gDiskIoDriverBinding,\r
47 ImageHandle,\r
48 &gDiskIoComponentName,\r
49 NULL,\r
50 NULL\r
51 );\r
52 ASSERT_EFI_ERROR (Status);\r
53\r
54\r
55 return Status;\r
56}\r