EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/DxeDriverLib.c

Go to the documentation of this file.
00001 /*++
00002 
00003 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
00004 This program and the accompanying materials                          
00005 are licensed and made available under the terms and conditions of the BSD License         
00006 which accompanies this distribution.  The full text of the license may be found at        
00007 http://opensource.org/licenses/bsd-license.php                                            
00008                                                                                           
00009 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
00010 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
00011 
00012 Module Name:
00013 
00014   DxeDriverLib.c
00015 
00016 Abstract:
00017 
00018   Light weight lib to support EFI drivers.
00019 
00020 --*/
00021 
00022 #include "Tiano.h"
00023 #include "EfiDriverLib.h"
00024 
00025 EFI_STATUS
00026 DxeInitializeDriverLib (
00027   IN EFI_HANDLE           ImageHandle,
00028   IN EFI_SYSTEM_TABLE     *SystemTable
00029   )
00030 /*++
00031 
00032 Routine Description:
00033 
00034   Intialize Driver Lib if it has not yet been initialized. 
00035 
00036 Arguments:
00037 
00038   ImageHandle     - Standard EFI Image entry parameter
00039   
00040   SystemTable     - Standard EFI Image entry parameter
00041 
00042 Returns: 
00043 
00044   EFI_STATUS always returns EFI_SUCCESS
00045 
00046 --*/
00047 {
00048   EFI_STATUS  Status;
00049 
00050   Status = EfiInitializeDriverLib (ImageHandle, SystemTable);
00051   if (!EFI_ERROR (Status)) {
00052     Status = EfiLibGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **) &gDS);
00053   }
00054 
00055   return Status;
00056 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines