/** @file
NvmeDynamicSetup.h -- Header for NvmeDynamicSetup
Copyright (c) HR650X BIOS Decompilation Project
**/
#ifndef __NVMEDYNAMICSETUP_H__
#define __NVMEDYNAMICSETUP_H__
#include "../uefi_headers/Uefi.h"
//
// Function Prototypes
//
char *
EFIAPI
CopyMemRaw(
char *dst,
char *src,
unsigned __int64 count
);
char *
EFIAPI
ZeroMemRaw(
char *buf,
unsigned __int64 a2
);
void *
EFIAPI
SetMemRaw(
void *buf,
unsigned __int64 count,
char value
);
unsigned __int64
EFIAPI
CompareMemRaw(
_BYTE *src,
_BYTE *p_n2,
__int64 n2
);
EFI_STATUS
EFIAPI
ModuleEntryPoint(
EFI_HANDLE ImageHandle,
EFI_SYSTEM_TABLE *SystemTable
);
__int64
EFIAPI
NvmeDynamicSetupLibInit(
__int64 ImageHandle,
EFI_SYSTEM_TABLE *SystemTable
);
unsigned __int64
EFIAPI
NvmeEnumPciDevice(
unsigned __int8 a1,
unsigned __int8 a2,
unsigned __int8 a3
);
__int64
EFIAPI
NvmeSsmSendCommand(
__int64 a1,
char *dst
);
__int64
EFIAPI
NvmeLookupHwSubType(
VOID
);
unsigned __int8 *
EFIAPI
NvmeGetDriveInfo(
VOID
);
_BYTE *
EFIAPI
NvmeHiiNewString(
__int64 a1,
__int64 a2,
unsigned __int16 *a3
);
char *
EFIAPI
NvmeUpdateDisplayString(
__int64 *OpCodeHandle,
__int64 a2,
unsigned int n7,
unsigned __int8 *a4
);
{"addr":"0x1058","code":"__int64
EFIAPI
NvmeInitDynamicMainForm(
VOID
);
{"addr":"0x196c","code":"unsigned __int64
EFIAPI
NvmeEnumerateNvmeDevices(
VOID
);
void
EFIAPI
NvmeDynamicSetupNotification(
VOID
);
unsigned __int64
EFIAPI
NvmeDriverBindingStop(
__int64 a1,
__int64 a2,
__int16 a3
);
__int64
EFIAPI
NvmeDynamicSetupEntry(
EFI_HANDLE ImageHandle,
EFI_SYSTEM_TABLE *SystemTable
);
UINT16
EFIAPI
MmioRead16(
UINTN Address
);
UINT32
EFIAPI
MmioRead32(
UINTN Address
);
UINT64
EFIAPI
MmioRead64(
UINTN Address
);
UINT64
EFIAPI
DivU64x32(
UINT64 Dividend,
UINT32 Divisor
);
char *
EFIAPI
CopyMemS(
char *dst,
char *src,
unsigned __int64 count
);
char *
EFIAPI
ZeroMemS(
char *buf,
unsigned __int64 a2
);
__int64
EFIAPI
GetDebugInfoPtr(
VOID
);
void
EFIAPI
DebugPrint(
UINTN ErrorLevel,
const CHAR8 *Format,
...
);
__int64
EFIAPI
Assert(
__int64 a1,
__int64 a2,
__int64 a3
);
unsigned __int64
EFIAPI
DxeServicesTableLibInit(
const UINT64 *Buffer,
_QWORD *a2
);
UINTN
EFIAPI
DxeServicesGetMemoryMap(
VOID
);
UINTN
EFIAPI
GetPciExpressBaseAddress(
const CHAR16 *IntelGetNameSpaceData___IntelGetNameSpaceData__PassThru_(%r)_n,
...
);
__int64
EFIAPI
GetLpcBaseAddress(
VOID
);
__int64
EFIAPI
GetPciSegmentBaseAddress(
VOID
);
__int64
EFIAPI
PciExpressLibAddress(
__int64 a1
);
UINT16
EFIAPI
PciWrite16(
UINTN Address,
UINT16 Value
);
_QWORD *
EFIAPI
HiiCreateOpCodeHandle(
__int64 a1
);
void
EFIAPI
HiiDestroyOpCodeHandle(
void **OpCodeHandle
);
char *
EFIAPI
HiiGrowBuffer(
char **p_src,
__int64 a2
);
char *
EFIAPI
HiiCreateOpCode(
char **OpCodeHandle,
char *buf,
char n95,
unsigned __int64 n15,
__int64 n3
);
UINT8 *
EFIAPI
HiiCreateStringOpCode(
VOID
);
UINT8 *
EFIAPI
HiiCreateEndOpCode(
void *OpCodeHandle
);
unsigned __int64
EFIAPI
NvmeFindSubOpCode(
VOID
);
__int64
EFIAPI
NvmeProcessIfrOpCode(
VOID
);
CHAR8 *
EFIAPI
HiiGetSupportedLanguages(
EFI_HII_HANDLE HiiHandle
);
__int64
EFIAPI
DebugPrintSerialWorker(
VOID
);
__int64
EFIAPI
DebugPrintVarArg(
__int64 a1,
char *HII_Extract_Config:_Guid_extraction_failed_n,
...
);
void *
EFIAPI
AllocatePool(
UINTN AllocationSize
);
void *
EFIAPI
AllocateCopyPool(
UINTN AllocationSize,
const void *Buffer
);
__int64
EFIAPI
InternalVarArgList(
_BYTE *src
);
char *
EFIAPI
VarArgListToBuffer(
char *src,
__int64 src_2
);
char *
EFIAPI
VarArgCopy(
char *src
);
__int64
EFIAPI
InternalGetVariable(
__int64 a1,
_BYTE *n4,
unsigned int *p_n3,
UINTN *p_n32,
__int64 *a5
);
__int64
EFIAPI
UnicodeToHex(
__int64 a1,
unsigned __int64 *p_n32,
__int64 a3
);
__int64
EFIAPI
HexStringToBytes(
__int64 a1,
unsigned __int64 n32,
_BYTE *n4
);
__int64
EFIAPI
ExtractPathFromString(
__int16 *FirstString,
__int64 a2
);
__int64
EFIAPI
NvmeExtractConfig(
__int64 a1,
__int64 FirstString,
__int64 *a3,
__int64 a4
);
__int64
EFIAPI
NvmeRouteConfig(
__int64 a1,
__int64 FirstString,
_QWORD *a3
);
unsigned __int64
EFIAPI
NvmeCallback(
VOID
);
__int64
EFIAPI
NvmeConfigAccessInit(
__int64 a1,
__int64 a2,
__int64 a3,
...
);
_BYTE *
EFIAPI
IntToAscii(
__int64 a1,
_BYTE *n,
__int64 n10,
char a4
);
__int64
EFIAPI
AsciiStrToUint64(
char *FormatString,
char **p_FormatString,
int n32
);
const char *
EFIAPI
StatusToString(
__int64 n4,
__int64 n37,
__int64 n32
);
UINTN
EFIAPI
UnicodeSPrintAsciiFormat(
CHAR16 *StartOfBuffer,
UINTN BufferSize,
const CHAR8 *FormatString,
...
);
UINTN
EFIAPI
UnicodeVSPrint(
CHAR16 *StartOfBuffer,
UINTN BufferSize,
const CHAR16 *FormatString,
VA_LIST Marker
);
UINTN
EFIAPI
UnicodeBSPrint(
CHAR16 *StartOfBuffer,
UINTN BufferSize,
const CHAR16 *FormatString,
BASE_LIST Marker
);
INTN
EFIAPI
StrnCmp(
const CHAR16 *FirstString,
const CHAR16 *SecondString,
UINTN Length
);
__int64
EFIAPI
NvmeDetectDevice(
__int64 a1,
__int64 a2,
char n6,
unsigned __int8 *a4,
__int64 *p_n26
);
__int16
EFIAPI
NvmeGetVendorDeviceIds(
void *buf,
void *buf_1,
void *buf_2
);
char
EFIAPI
NvmeGetSetupValue(
VOID
);
__int64
EFIAPI
NvmeSetSetupOptions(
__int64 a1,
_BYTE *a2,
_BYTE *p_i,
_BYTE *a4,
__int64 *p_ia
);
unsigned __int64
EFIAPI
GpioSetPadConfig(
int n17170432,
__int64 a2,
__int64 a3,
char a4,
int *a5
);
__int64
EFIAPI
GpioSetOutput(
int n17170432,
int *a2,
__int64 a3,
char a4
);
unsigned __int64
EFIAPI
GpioGetPadConfig(
int n17170432,
unsigned int *a2
);
void *
EFIAPI
GpioGetGroupInfo(
_QWORD *a1
);
bool
EFIAPI
GpioIsPadValid(
int n17170432
);
__int64
EFIAPI
GetCmosData(
VOID
);
UINTN
EFIAPI
StrLen(
const CHAR16 *String
);
CHAR16 *
EFIAPI
StrCat(
CHAR16 *Destination,
const CHAR16 *Source
);
UINTN
EFIAPI
AsciiStrLen(
const CHAR8 *FirstString
);
INTN
EFIAPI
AsciiStrnCmp(
const CHAR8 *FirstString,
const CHAR8 *SecondString,
UINTN Length
);
UINT16
EFIAPI
ReadUnaligned16(
const UINT16 *Buffer
);
UINT32
EFIAPI
ReadUnaligned32(
const UINT32 *Buffer
);
UINT64
EFIAPI
ReadUnaligned64(
const UINT64 *Buffer
);
UINT64
EFIAPI
WriteUnaligned64(
UINT64 *Buffer,
UINT64 Value
);
unsigned __int64
EFIAPI
StrLenSafe(
_WORD *%02d_%02d_%04d__%02d:%02d
);
unsigned __int64
EFIAPI
AsciiStrLenSafe(
_BYTE *%02d_%02d_%04d__%02d:%02d
);
void *
EFIAPI
SetMemS(
void *buf,
unsigned __int64 n2
);
UINT64 *
EFIAPI
GetImageBase(
UINT64 *Buffer
);
bool
EFIAPI
IsZeroGuid(
const UINT64 *Buffer,
const UINT64 *Buffer_1
);
unsigned __int64
EFIAPI
CompareMemS(
char *src,
char *p_n2,
__int64 n2
);
__int64
EFIAPI
LocatePcdProtocol(
VOID
);
__int64
EFIAPI
InternalAllocatePool(
__int64 a1,
__int64 a2
);
void *
EFIAPI
AllocateZeroPool(
UINTN AllocationSize
);
char *
EFIAPI
InternalReallocatePool(
__int64 count,
unsigned __int64 count_3,
__int64 count_2,
char *src
);
void
EFIAPI
FreePool(
void *Buffer
);
UINTN
EFIAPI
UnicodeSPrint(
CHAR16 *StartOfBuffer,
UINTN BufferSize,
const CHAR16 *FormatString,
...
);
_BYTE *
EFIAPI
UnicodeFillBuf(
_BYTE *_r_n,
unsigned __int64 _r_n_1,
__int64 i,
__int16 n32,
__int64 n2
);
_BYTE *
EFIAPI
Uint64ToHexString(
_BYTE *_r_n,
UINT64 Dividend,
__int64 n16
);
{"addr":"0x5eb4","code":"unsigned __int64
EFIAPI
InternalPrintEngine(
\n unsigned __int64 _r_n,
\n unsigned __int64 n0xF4240,
\n __int16 n320,
\n unsigned __int8 *%02d_%02d_%04d__%02d:%02d,
\n unsigned __int16 **va
);
unsigned __int64
EFIAPI
DebugPrintVarArgFmt(
VOID
);
__int64
EFIAPI
PchStepping(
VOID
);
int *
EFIAPI
SetMem32Raw(
int *buf,
int value,
unsigned __int64 n100
);
char *
EFIAPI
CopyMemWithAsm(
char *dst,
char *src,
unsigned __int64 n8
);
#endif /* __NVMEDYNAMICSETUP_H__ */