<commit_before>/*++

Copyright (c) 1999 - 2007 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.


Module Name:  

  GenVtf.h

Abstract:

  This file contains the relevant declarations required
  to generate Boot Strap File

--*/

//
// Module Coded to EFI 2.0 Coding Conventions
//
#ifndef   __GEN_VTF_H__
#define   __GEN_VTF_H__

//
// External Files Referenced
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "assert.h"
#include <Common/PiFirmwareFile.h>
#include "ParseInf.h"

//
// Internal Constants
//
#define CV_N_TYPE(a,b)            (UINT8)(((UINT8)a << 7) + (UINT8)b)  // Keeps the CV and Type in same byte field
#define MAKE_VERSION(a,b)         (UINT16)(((UINT16)a << 8) + (UINT16)b)

#define   FILE_NAME_SIZE          256
#define   COMPONENT_NAME_SIZE     128
#define   VTF_INPUT_FILE          "VTF.INF"
#define   VTF_OUTPUT_FILE1        "VTF1.RAW"
#define   VTF_OUTPUT_FILE2        "VTF2.RAW"
#define   VTF_SYM_FILE            "Vtf.SYM"
#define   FIT_SIGNATURE           "_FIT_"

//
//Fit Type Definition
//
#define   COMP_TYPE_FIT_HEADER          0x00
#define   COMP_TYPE_FIT_PAL_B           0x01

//
// This is generic PAL_A
//
#define   COMP_TYPE_FIT_PAL_A           0x0F
#define   COMP_TYPE_FIT_PEICORE         0x10
#define   COMP_TYPE_FIT_AUTOSCAN        0x30
#define   COMP_TYPE_FIT_FV_BOOT         0x7E

//
//This is processor Specific PAL_A
//
#define   COMP_TYPE_FIT_PAL_A_SPECIFIC  0x0E
#define   COMP_TYPE_FIT_UNUSED    0x7F

#define   FIT_TYPE_MASK           0x7F
#define   CHECKSUM_BIT_MASK       0x80

//
// IPF processor address is cached bit
//
#define IPF_CACHE_BIT 0x8000000000000000ULL<commit_msg>Change FIT_SIGNATURE from "_FIT_" to "FIT_   ".  The 3 spaces were missing.<commit_after>/*++

Copyright (c) 1999 - 2007 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.


Module Name:  

  GenVtf.h

Abstract:

  This file contains the relevant declarations required
  to generate Boot Strap File

--*/

//
// Module Coded to EFI 2.0 Coding Conventions
//
#ifndef   __GEN_VTF_H__
#define   __GEN_VTF_H__

//
// External Files Referenced
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "assert.h"
#include <Common/PiFirmwareFile.h>
#include "ParseInf.h"

//
// Internal Constants
//
#define CV_N_TYPE(a,b)            (UINT8)(((UINT8)a << 7) + (UINT8)b)  // Keeps the CV and Type in same byte field
#define MAKE_VERSION(a,b)         (UINT16)(((UINT16)a << 8) + (UINT16)b)

#define   FILE_NAME_SIZE          256
#define   COMPONENT_NAME_SIZE     128
#define   VTF_INPUT_FILE          "VTF.INF"
#define   VTF_OUTPUT_FILE1        "VTF1.RAW"
#define   VTF_OUTPUT_FILE2        "VTF2.RAW"
#define   VTF_SYM_FILE            "Vtf.SYM"
#define   FIT_SIGNATURE           "_FIT_   "

//
//Fit Type Definition
//
#define   COMP_TYPE_FIT_HEADER          0x00
#define   COMP_TYPE_FIT_PAL_B           0x01

//
// This is generic PAL_A
//
#define   COMP_TYPE_FIT_PAL_A           0x0F
#define   COMP_TYPE_FIT_PEICORE         0x10
#define   COMP_TYPE_FIT_AUTOSCAN        0x30
#define   COMP_TYPE_FIT_FV_BOOT         0x7E

//
//This is processor Specific PAL_A
//
#define   COMP_TYPE_FIT_PAL_A_SPECIFIC  0x0E
#define   COMP_TYPE_FIT_UNUSED    0x7F

#define   FIT_TYPE_MASK           0x7F
#define   CHECKSUM_BIT_MASK       0x80

//
// IPF processor address is cached bit
//
#define IPF_CACHE_BIT 0x8000000000000000ULL
{'fraction_non_alphanumeric': 0.08052389037108901, 'fraction_numerical': 0.035653650254668934, 'mean_word_length': 2.957773512476008, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '83790', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1429, 'n_words': 429}