Newer
Older
AMI-Aptio-BIOS-Reversed / OA3 / OA3.h
@Ajax Dong Ajax Dong 2 days ago 1 KB Init
/** @file
  OA3.h -- Header for OA3

Copyright (c) HR650X BIOS Decompilation Project
**/

#ifndef __OA3_H__
#define __OA3_H__

#include "../uefi_headers/Uefi.h"

//
// Function Prototypes
//

char *
EFIAPI
InternalMemCopyMem(
  char *dst,
  char *src,
  unsigned __int64 n6
);

unsigned __int64
EFIAPI
InternalCompareMem(
  _BYTE *TableGuid,
  _BYTE *a2,
  __int64 n16
);

void
EFIAPI
CpuPause(
  VOID
);

unsigned __int64
EFIAPI
ReadTsc(
  VOID
);

void
EFIAPI
CpuEnableInterrupts(
  VOID
);

void
EFIAPI
CpuDisableInterrupts(
  VOID
);

unsigned __int64
EFIAPI
ReadEflags(
  VOID
);

EFI_STATUS
EFIAPI
ModuleEntryPoint(
  EFI_HANDLE ImageHandle,
  EFI_SYSTEM_TABLE *SystemTable
);

unsigned __int64
EFIAPI
Oa3PreserveProductKey(
  __int64 SystemTable
);

__int64
EFIAPI
Oa3PublishMsdmTable(
  __int64 (__fastcall **AcpiSupport)(_QWORD, __int64, __int64, __int64 *)
);

__int64
EFIAPI
GetDebugOutputProtocol(
  VOID
);

void
EFIAPI
DebugPrint(
  UINTN ErrorLevel,
  const CHAR8 *Format,
  ...
);

void
EFIAPI
DebugAssert(
  const CHAR8 *FileName,
  UINTN LineNumber,
  const CHAR8 *Description
);

__int64
EFIAPI
GetPcdProtocol(
  VOID
);

char *
EFIAPI
InternalCopyMem(
  char *dst,
  char *src,
  unsigned __int64 n6
);

BOOLEAN
EFIAPI
CompareGuid(
  const GUID *Guid1,
  const GUID *Guid2
);

UINT64
EFIAPI
ReadUnaligned64(
  const UINT64 *Buffer
);

EFI_STATUS
EFIAPI
EfiGetSystemConfigurationTable(
  EFI_GUID *TableGuid,
  void **Table
);

void *
EFIAPI
GetHobList(
  VOID
);

_WORD *
EFIAPI
GetNextHobByType(
  __int64 SystemTable,
  _WORD *a2
);

__int64
EFIAPI
PciExpressLibGetPciExpressAddress(
  __int64 n1024064
);

__int64
EFIAPI
PciExpressLibWrite16(
  _WORD *PciExpressAddress
);

UINT32
EFIAPI
IoRead32(
  UINTN Port
);

#endif /* __OA3_H__ */