/** @file RegAccessDxe.h -- Header for RegAccessDxe Copyright (c) HR650X BIOS Decompilation Project **/ #ifndef __REGACCESSDXE_H__ #define __REGACCESSDXE_H__ #include "../uefi_headers/Uefi.h" // // Function Prototypes // EFI_STATUS EFIAPI _ModuleEntryPoint( VOID ); EFI_STATUS EFIAPI Entry Point: _ModuleEntryPoint (0x1114)( VOID ); EFI_STATUS EFIAPI UefiBootServicesTableLib + UefiRuntimeServicesTableLib constructor( VOID ); EFI_STATUS EFIAPI calls RegAccessInstallProtocol (sub_1734) which:( VOID ); EFI_STATUS EFIAPI failure, calls RegAccessUnload (sub_1584).( VOID ); EFI_STATUS EFIAPI (0x1114)( VOID ); EFI_STATUS EFIAPI library constructors and install protocol( VOID ); EFI_STATUS EFIAPI = UefiBootServicesTableLibConstructor (ImageHandle, SystemTable);( VOID ); EFI_STATUS EFIAPI (0x1000) - CopyMem - optimized memory copy with overlap handling( VOID ); EFI_STATUS EFIAPI (0x1070) - ZeroMem - zero memory buffer (rep stos)( VOID ); EFI_STATUS EFIAPI (0x10D0) - _mm_pause() - CPU spin-wait hint( VOID ); EFI_STATUS EFIAPI (0x10E0) - ReadTSC - read time-stamp counter( VOID ); EFI_STATUS EFIAPI (0x10F0) - _enable() - enable interrupts (STI)( VOID ); EFI_STATUS EFIAPI (0x1100) - _disable() - disable interrupts (CLI)( VOID ); EFI_STATUS EFIAPI (0x1110) - ReadEFlags - read EFLAGS register( VOID ); EFI_STATUS EFIAPI (0x113C) - UefiBootServicesTableLib + UefiRuntimeServicesTableLib( VOID ); EFI_STATUS EFIAPI (AutoGen + library deps)( VOID ); EFI_STATUS EFIAPI (0x1584) - RegAccessUnload - driver unload handler( VOID ); EFI_STATUS EFIAPI (0x1734) - RegAccessInstallProtocol - installs the Register Access( VOID ); EFI_STATUS EFIAPI and initializes IIO topology data( VOID ); EFI_STATUS EFIAPI (0x18AC) - AddressTranslateEx - dispatch-based PCIe address( VOID ); EFI_STATUS EFIAPI (uses funcs_18D0 jump table)( VOID ); EFI_STATUS EFIAPI (0x18E0) - GetPcdProtocol - locate and cache PCD protocol( VOID ); EFI_STATUS EFIAPI (0x196C) - PcdGet32(5) - get PCD token 5 as UINT32( VOID ); EFI_STATUS EFIAPI (0x1988) - PcdGetSize(6) - get PCD token 6 size( VOID ); EFI_STATUS EFIAPI (0x19A4) - PcdGetSize(6) via offset 56 (alternative size func)( VOID ); EFI_STATUS EFIAPI (0x19C0) - GetDebugProtocol - locate debug print protocol( VOID ); EFI_STATUS EFIAPI (0x1A48) - DebugPrint - formatted debug output with CMOS level check( VOID ); EFI_STATUS EFIAPI (0x1AC8) - Assert - debug assertion handler( VOID ); EFI_STATUS EFIAPI (0x1B08) - ReturnTrue - always returns TRUE (1)( VOID ); EFI_STATUS EFIAPI (0x1B0C) - ClearBsBootServices - nulls gBS_Saved on BootScript( VOID ); EFI_STATUS EFIAPI (0x1B18) - ExitBootServicesNotify - converts debug protocol ptr( VOID ); EFI_STATUS EFIAPI (0x1B40) - GetSystemConfigurationTable - locate config table by GUID( VOID ); EFI_STATUS EFIAPI (0x1C04) - EfiCreateEventReadyToBoot - register ReadyToBoot notify( VOID ); EFI_STATUS EFIAPI (0x1CF0) - GetHobList - locate HOB list from config table( VOID ); EFI_STATUS EFIAPI (0x1D78) - VirtualAddressChangeNotify - runtime virtual addr change( VOID ); EFI_STATUS EFIAPI (0x1D9C) - DxeRuntimePciExpressLibDestructor - PCIe cleanup( VOID ); EFI_STATUS EFIAPI (0x1E0C) - PciExpressGetAddress - translate PCIe addr to virtual( VOID ); EFI_STATUS EFIAPI (0x1ED0) - BootScriptWriteTerminator - write entry in boot script( VOID ); EFI_STATUS EFIAPI (0x1F2C) - BootScriptSaveExec - execute S3 boot script save sequence( VOID ); EFI_STATUS EFIAPI (0x244C) - SmmReadyToLockNotify - transition to SMM ready-to-lock( VOID ); EFI_STATUS EFIAPI (0x2498) - BootScriptLockBoxBufferSwitch - switch to LockBox buffer( VOID ); EFI_STATUS EFIAPI (0x24F0) - BootScriptLockBoxComplete - finalize LockBox save( VOID ); EFI_STATUS EFIAPI (0x2594) - BootScriptSaveNotify - S3 boot script save notification( VOID ); EFI_STATUS EFIAPI (0x265C) - BootScriptContextInit - initialize S3 boot script context( VOID ); EFI_STATUS EFIAPI (0x295C) - BootScriptContextDeinit - release boot script context( VOID ); EFI_STATUS EFIAPI (0x2BD8) - BootScriptAllocBuf - allocate space in boot script buffer( VOID ); EFI_STATUS EFIAPI (0x2D6C) - BootScriptLockBoxRestore - restore script from LockBox( VOID ); EFI_STATUS EFIAPI (0x2E24) - BootScriptGetEntry - get entry buffer for script write( VOID ); EFI_STATUS EFIAPI (0x2EB8) - BootScriptCommit - commit script entry via LockBox update( VOID ); EFI_STATUS EFIAPI (0x2F78) - BootScriptIoWrite - write IO port entry to boot script( VOID ); EFI_STATUS EFIAPI (0x3028) - PciExpressRead - PCIe config space MMIO read( VOID ); EFI_STATUS EFIAPI (0x3070) - PciExpressWrite - PCIe config space MMIO write( VOID ); EFI_STATUS EFIAPI (0x30B4) - CombineAndOrMask - AND+OR mask combination for reg modify( VOID ); EFI_STATUS EFIAPI (0x3150) - PcieTranslateAddress - core address translation engine( VOID ); EFI_STATUS EFIAPI (0x326C) - PcieReadSingle - read a single PCIe register( VOID ); EFI_STATUS EFIAPI (0x3320) - PcieModifySingle - read-modify-write a PCIe register( VOID ); EFI_STATUS EFIAPI (0x33B4) - AddressTranslate - translate PCIe addr with segment base( VOID ); EFI_STATUS EFIAPI (0x33E8) - PcieReadFromTranslation - read via address translation( VOID ); EFI_STATUS EFIAPI (0x342C) - ValidateRegisterAccess - validate register access params( VOID ); EFI_STATUS EFIAPI (0x3514) - PcieReadMulti - multi-register PCIe read (block read)( VOID ); EFI_STATUS EFIAPI (0x35CC) - PcieWriteSingle - write a single PCIe register( VOID ); EFI_STATUS EFIAPI (0x36FC) - PcieModifyWithMask - PCIe register modify with AND/OR( VOID ); EFI_STATUS EFIAPI (0x3764) - CopyMemSafe - safe memory copy (BaseMemoryLib wrapper)( VOID ); EFI_STATUS EFIAPI (0x3800) - CompareGuid - compare two EFI_GUIDs( VOID ); EFI_STATUS EFIAPI (0x3868) - ZeroMemSafe - safe zero memory wrapper( VOID ); EFI_STATUS EFIAPI (0x38CC) - ReadUnaligned64 - read unaligned UINT64( VOID ); EFI_STATUS EFIAPI (0x38FC) - RShiftU64 - 64-bit right shift( VOID ); EFI_STATUS EFIAPI (0x3940) - LShiftU64 - 64-bit left shift( VOID ); EFI_STATUS EFIAPI (0x3984) - IoRead16 - read 16-bit IO port( VOID ); EFI_STATUS EFIAPI (0x39B4) - IoWrite16 - write 16-bit IO port( VOID ); EFI_STATUS EFIAPI (0x39F4) - IoRead64 - read 64-bit memory-mapped IO( VOID ); EFI_STATUS EFIAPI (0x3A24) - IoWrite64 - write 64-bit memory-mapped IO( VOID ); EFI_STATUS EFIAPI (0x3A64) - IoRead32 - read 32-bit IO port( VOID ); EFI_STATUS EFIAPI (0x3A94) - BootScriptFreePcieMapping - free PCIe mapping table( VOID ); EFI_STATUS EFIAPI (0x3AE0) - GetSmmBase2 - locate SmmBase2 protocol( VOID ); EFI_STATUS EFIAPI (0x3B30) - GetLockBoxCommBuffer - locate SMM LockBox comm buffer( VOID ); EFI_STATUS EFIAPI (0x3BD0) - LockBoxSave - save data to SMM LockBox( VOID ); EFI_STATUS EFIAPI (0x3D14) - LockBoxSetAttributes - set LockBox attributes( VOID ); EFI_STATUS EFIAPI (0x3E40) - LockBoxUpdate - update LockBox entry data( VOID ); EFI_STATUS EFIAPI (0x3F88) - LockBoxRestore - restore data from SMM LockBox( VOID ); EFI_STATUS EFIAPI (0x40E0) - MmcfgTableInit - initialize MMCFG table( VOID ); EFI_STATUS EFIAPI (0x421C) - IioGetPhysicalBase - get MMCFG base for PCI segment( VOID ); EFI_STATUS EFIAPI (0x4344) - IioTopologyInit - initialize IIO topology from protocol( VOID ); EFI_STATUS EFIAPI (0x4500) - FatalAssert - unrecoverable assertion (infinite loop)( VOID ); EFI_STATUS EFIAPI (0x4568) - IioGetBusFromSocket - get PCI bus for socket/box type( VOID ); EFI_STATUS EFIAPI (0x4784) - IioGetSegment - get PCIe segment for box/instance( VOID ); EFI_STATUS EFIAPI (0x4BBC) - IioGetDevice - get PCI device for box/instance/block( VOID ); EFI_STATUS EFIAPI (0x1D74) - no-op - Null event notification handler( VOID ); #endif /* __REGACCESSDXE_H__ */