]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiGetConfigTable.c
7fdbb8d8f40db9e679631b20639d67d98f14ee69
3 Copyright (c) 2004 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Light weight lib to support EFI drivers.
23 #include "EfiDriverLib.h"
26 EfiLibGetSystemConfigurationTable (
27 IN EFI_GUID
*TableGuid
,
34 Get table from configuration table by name
38 TableGuid - Table name to search
40 Table - Pointer to the table caller wants
44 EFI_NOT_FOUND - Not found the table
46 EFI_SUCCESS - Found the table
53 for (Index
= 0; Index
< gST
->NumberOfTableEntries
; Index
++) {
54 if (EfiCompareGuid (TableGuid
, &(gST
->ConfigurationTable
[Index
].VendorGuid
))) {
55 *Table
= gST
->ConfigurationTable
[Index
].VendorTable
;