X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FGenVtf%2FGenVtf.h;h=62c61aa84e7f26d4a19549571bcf9bbef8691a6f;hb=b1e5547551e2a4d0e61923f86e5d921415e872dc;hp=eab14f3aa602affdd39cd3922d3c6aa88af1d196;hpb=fd171542e0aa89ac12a09d79608173f48019b14b;p=mirror_edk2.git diff --git a/BaseTools/Source/C/GenVtf/GenVtf.h b/BaseTools/Source/C/GenVtf/GenVtf.h index eab14f3aa6..62c61aa84e 100644 --- a/BaseTools/Source/C/GenVtf/GenVtf.h +++ b/BaseTools/Source/C/GenVtf/GenVtf.h @@ -1,23 +1,14 @@ /** @file +This file contains the relevant declarations required to generate Boot Strap File -Copyright (c) 1999 - 2008 Intel Corporation. All rights reserved -This software and associated documentation (if any) is furnished -under a license and may only be used or copied in accordance -with the terms of the license. Except as permitted by such -license, no part of this software or documentation may be -reproduced, stored in a retrieval system, or transmitted in any -form or by any means without the express written consent of -Intel Corporation. +Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available +under the terms and conditions of the BSD License which accompanies this +distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php - -Module Name: - - GenVtf.h - -Abstract: - - This file contains the relevant declarations required - to generate Boot Strap File +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ @@ -89,7 +80,7 @@ Abstract: #define SIZE_IA32_RESET_VECT 0x10 // 16 Bytes #define SIZE_SALE_ENTRY_POINT 0x08 // 8 Byte #define SIZE_FIT_TABLE_ADD 0x08 // 8 Byte -#define SIZE_FIT_TABLE_PAL_A 0x10 +#define SIZE_FIT_TABLE_PAL_A 0x10 #define SIZE_RESERVED 0x10 @@ -125,7 +116,7 @@ static BOOLEAN VerboseMode = FALSE; // // Internal Data Structure // -typedef enum _LOC_TYPE +typedef enum _LOC_TYPE { NONE, // In case there is - INF file FIRST_VTF, // First VTF @@ -183,18 +174,18 @@ UpdateVtfBuffer( Routine Description: Update the Firmware Volume Buffer with requested buffer data - + Arguments: StartAddress - StartAddress in buffer. This number will automatically - point to right address in buffer where data needed + point to right address in buffer where data needed to be updated. Buffer - Buffer pointer from data will be copied to memory mapped buffer. DataSize - Size of the data needed to be copied. LocType - The type of the VTF Returns: - + EFI_ABORTED - The input parameter is error EFI_SUCCESS - The function completed successfully @@ -205,7 +196,8 @@ EFI_STATUS UpdateSymFile ( IN UINT64 BaseAddress, IN CHAR8 *DestFileName, - IN CHAR8 *SourceFileName + IN CHAR8 *SourceFileName, + IN UINT64 FileSize ) /*++ @@ -219,6 +211,7 @@ Arguments: BaseAddress - The base address for the new SYM tokens. DestFileName - The destination file. SourceFileName - The source file. + FileSize - Size of bin file. Returns: @@ -234,22 +227,22 @@ CalculateFitTableChecksum ( VOID ) /*++ - + Routine Description: This function will perform byte checksum on the FIT table, if the the checksum required field is set to CheckSum required. If the checksum is not required then checksum byte will have value as 0;. - + Arguments: NONE - + Returns: Status - Value returned by call to CalculateChecksum8 () EFI_SUCCESS - The function completed successfully - + --*/ ; @@ -269,22 +262,22 @@ Routine Description: Arguments: - StartAddress1 - The start address of the first VTF + StartAddress1 - The start address of the first VTF Size1 - The size of the first VTF - StartAddress2 - The start address of the second VTF + StartAddress2 - The start address of the second VTF Size2 - The size of the second VTF Returns: - + EFI_OUT_OF_RESOURCES - Can not allocate memory - The return value can be any of the values + The return value can be any of the values returned by the calls to following functions: GetVtfRelatedInfoFromInfFile ProcessAndCreateVtf UpdateIA32ResetVector UpdateFfsHeader WriteVtfBinary - + --*/ ; @@ -301,11 +294,11 @@ Routine Description: Arguments: StartAddress - StartAddress for PEIM..... - + Returns: - + EFI_SUCCESS - The function completed successfully - EFI_ABORTED - Error Opening File + EFI_ABORTED - Error Opening File --*/ ;