]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/DxeDriverLib.c
Changing source filename to match name changing.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / EfiDriverLib / DxeDriverLib.c
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 DxeDriverLib.c\r
15\r
16Abstract:\r
17\r
18 Light weight lib to support EFI drivers.\r
19\r
20--*/\r
21\r
22#include "Tiano.h"\r
23#include "EfiDriverLib.h"\r
24\r
25EFI_STATUS\r
26DxeInitializeDriverLib (\r
27 IN EFI_HANDLE ImageHandle,\r
28 IN EFI_SYSTEM_TABLE *SystemTable\r
29 )\r
30/*++\r
31\r
32Routine Description:\r
33\r
34 Intialize Driver Lib if it has not yet been initialized. \r
35\r
36Arguments:\r
37\r
38 ImageHandle - Standard EFI Image entry parameter\r
39 \r
40 SystemTable - Standard EFI Image entry parameter\r
41\r
42Returns: \r
43\r
44 EFI_STATUS always returns EFI_SUCCESS\r
45\r
46--*/\r
47{\r
48 EFI_STATUS Status;\r
49\r
50 Status = EfiInitializeDriverLib (ImageHandle, SystemTable);\r
51 if (!EFI_ERROR (Status)) {\r
52 Status = EfiLibGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **) &gDS);\r
53 }\r
54\r
55 return Status;\r
56}\r