Home | History | Annotate | Download | only in Common
      1 /** @file
      2 Prototypes for binder functions that allow common code to be written which then
      3 links to implementation of these functions which is appropriate for the specific
      4 environment that they are running under.
      5 
      6 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>
      7 This program and the accompanying materials
      8 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 
     12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     14 
     15 **/
     16 
     17 #ifndef BinderFuncs_h_INCLUDED
     18 #define BinderFuncs_h_INCLUDED
     19 
     20 #include "Common/UefiBaseTypes.h"
     21 
     22 //
     23 // Binder Function Prototypes
     24 //
     25 // These binding functions must be implemented externally as appropriate for
     26 // the environment that the code will be running under.
     27 //
     28 
     29 VOID *
     30 CommonLibBinderAllocate (
     31   IN UINTN Size
     32   );
     33 
     34 VOID
     35 CommonLibBinderFree (
     36   IN VOID *Pointer
     37   );
     38 
     39 VOID
     40 CommonLibBinderCopyMem (
     41   IN VOID *Destination,
     42   IN VOID *Source,
     43   IN UINTN Length
     44   );
     45 
     46 VOID
     47 CommonLibBinderSetMem (
     48   IN VOID *Destination,
     49   IN UINTN Length,
     50   IN UINT8 Value
     51   );
     52 
     53 INTN
     54 CommonLibBinderCompareMem (
     55   IN VOID *MemOne,
     56   IN VOID *MemTwo,
     57   IN UINTN Length
     58   );
     59 
     60 BOOLEAN
     61 CommonLibBinderCompareGuid (
     62   IN EFI_GUID *Guid1,
     63   IN EFI_GUID *Guid2
     64   );
     65 
     66 #endif // #ifndef CommonLibs_h_INCLUDED
     67 
     68