/** @file RomLayoutPei.h -- Header for RomLayoutPei Copyright (c) HR650X BIOS Decompilation Project **/ #ifndef __ROMLAYOUTPEI_H__ #define __ROMLAYOUTPEI_H__ #include "../uefi_headers/Uefi.h" // // Function Prototypes // char * EFIAPI CopyMem( char *dst, char *src, unsigned int count ); void * EFIAPI ZeroMem( void *buf, unsigned int count ); void * EFIAPI SetMem( void *buf, unsigned int count, char value ); int EFIAPI SetMem32( int a1, int a2, int a3, int a4 ); void * EFIAPI SetMem64( void *buf, unsigned int count, int value ); EFI_STATUS EFIAPI ModuleEntryPoint( EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable ); char EFIAPI FvProcessFile( int FvIndex, _DWORD *FileContext, int FvBase ); _WORD * EFIAPI AmiRomLayoutInitHob( VOID ); char EFIAPI VerifyFvAlignment( int a1, int a2 ); int EFIAPI ValidateAndProcessFv( int RomBase, int *dst ); int __thiscall EFIAPI ReportCorruptFvAndRecover( void *this ); int EFIAPI RomLayoutPeiEntryRecovery( void *PeiServices ); int EFIAPI ProcessRomLayout( int IsRecovery, void *RomBase ); char * EFIAPI CollectFvHandlers( VOID ); int EFIAPI RomLayoutPeiEntryStandard( void *PeiServices2 ); int EFIAPI RomLayoutPeiEntry( int PerfToken, void *SystemTable ); int __thiscall EFIAPI ReadUnaligned32( void *this ); __int64 __thiscall EFIAPI ReadUnaligned64( void *this ); int EFIAPI WriteUnaligned64( int a1, int a2 ); int EFIAPI DivU64x32( int TotalSize, unsigned int a2 ); unsigned int __usercall EFIAPI AllocateAlignedPages@<eax>( unsigned int Pages@<edx>, unsigned int Alignment ); int __thiscall EFIAPI InternalAllocatePages( void *this ); int EFIAPI GetDebugOutput( VOID ); int EFIAPI DebugPrint( int a1, int a2, ... ); int EFIAPI DebugAssert( VOID ); char * EFIAPI CopyMemS( char *dst, char *src, unsigned int count ); void * EFIAPI ZeroMemS( int buf, unsigned int count ); int EFIAPI GetHobList( VOID ); _WORD * EFIAPI GetNextHobByType( __int16 n5, _WORD *j ); _WORD * EFIAPI GetNextGuidHob( int p_MarkerGuid, _WORD *j ); int EFIAPI InternalBuildHob( int n4, int n24 ); int EFIAPI BuildGuidHob( int p_MarkerGuid, unsigned int n0xFFE0 ); char EFIAPI CheckFvAlignment( unsigned int a1, int a2, int a3 ); int EFIAPI BuildFvHob( unsigned int a1, int a2, int a3, int a4 ); void * EFIAPI PerformanceInit( int *PeiPerformanceLog, int *PeiPerformanceIdArray ); int __thiscall EFIAPI PerformanceGetFreeEntry( unsigned int *this, int a2, _BYTE *a3 ); int EFIAPI PerformanceStart( int PerfToken, char *PRL_AM ); int EFIAPI PerformanceEnd( int a1, _BYTE *a2 ); _DWORD * EFIAPI FvCacheInit( VOID ); int __usercall EFIAPI FvCacheGetEntryInfo@<eax>( _DWORD *a1@<edx>, _DWORD *a2 ); unsigned int EFIAPI FvCacheGetFirst( VOID ); unsigned int __thiscall EFIAPI FvCacheGetNext( char *i ); int EFIAPI FindRomLayoutMarker( VOID ); int __thiscall EFIAPI ProcessFvHob( int *this ); int EFIAPI GetBootModeFromCMOS( VOID ); unsigned int __thiscall EFIAPI AsciiStrLen( _BYTE *this ); int EFIAPI AsciiStrCmp( _BYTE *a1, _BYTE *a2, unsigned int n7 ); char EFIAPI IsOverlap( unsigned int PRL_AM, int a2 ); unsigned int __thiscall EFIAPI AsciiStrnLenS( _BYTE *this ); int EFIAPI AsciiStrCpyS( char *Source ); int EFIAPI GetPeiServices( VOID ); int EFIAPI PeiFreePages( int AllocatedAddr, int AlignmentPages ); int __usercall EFIAPI InstallFvInfoPpi@<eax>( int FvFormat@<edx>, int FvInfo, int FvInfoSize ); _DWORD * EFIAPI CopyGuid( _DWORD *buf, int FvFormat ); bool EFIAPI CompareGuid( int p_MarkerGuid, int FvFormat ); void *__thiscall EFIAPI ReadIdtr( void *this ); int __thiscall EFIAPI GetPcdToken( void *this ); int __thiscall EFIAPI SetIoPort80( void *this ); void *__thiscall EFIAPI GetPcdDb( void *this ); #endif /* __ROMLAYOUTPEI_H__ */