Newer
Older
AMI-Aptio-BIOS-Reversed / AmiModulePkg / CSM / Aint13 / Aint13.h
/** @file
  Aint13.h -- Header for Aint13


Copyright (c) HR650X BIOS Decompilation Project
**/

#ifndef __AINT13_H__
#define __AINT13_H__

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

//
// Function Prototypes
//

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

//
// ModuleEntryPoint -- compatibility alias for _ModuleEntryPoint.
//
EFI_STATUS
EFIAPI
ModuleEntryPoint(
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE *SystemTable
  );

//
// Module split:
// - Aint13.c: module entry, generic discovery, timer glue, and shared helpers.
// - AInt13Csp.c: chipset-specific INT13h register programming.
//

EFI_STATUS
EFIAPI
Aint13ChipsetInt13RegisterThunk(
  VOID
  );

EFI_STATUS
EFIAPI
Aint13DebugAssert(
  IN CHAR8 *FileName,
  IN UINTN LineNumber,
  IN CHAR8 *Description
  );

EFI_STATUS
EFIAPI
Aint13InitializeModuleState(
  VOID
  );

EFI_STATUS
EFIAPI
Aint13ProtocolThunkEntry(
  VOID
  );

EFI_STATUS
EFIAPI
Aint13HandlePciIo(
  IN VOID *PciIo
  );

EFI_STATUS
EFIAPI
Aint13InstallDiskInfo(
  IN VOID *DiskInfo
  );

EFI_STATUS
EFIAPI
Aint13BuildDriveIdentity(
  IN UINT8      *DeviceId,
  IN UINT8      Channel,
  IN VOID       *AtaIdentify,
  IN UINTN      AtaIdentifySize,
  IN BOOLEAN    Atapi
  );

EFI_STATUS
EFIAPI
Aint13ComputeDriveGeometryFromIdentify(
  IN UINT8 *IdentifyData,
  OUT VOID *GeometryOut
  );

EFI_STATUS
EFIAPI
Aint13ComputeChsGeometryFromMbr(
  IN UINT8 *MbRBuffer,
  IN UINTN BufferSize,
  OUT VOID *ChsOut
  );

EFI_STATUS
EFIAPI
Aint13ComputeGeometryFromLba(
  IN UINT64 LbaSectors,
  OUT VOID  *GeometryOut
  );

EFI_STATUS
EFIAPI
Aint13RefreshBbsTable(
  VOID
  );

VOID
EFIAPI
Aint13DebugPrint(
  IN CHAR8 *Format,
  ...
  );

UINT32
EFIAPI
Aint13GetBbsBootPriority(
  VOID
  );

BOOLEAN
EFIAPI
Aint13CompareGuid(
  IN CONST EFI_GUID *Left,
  IN CONST EFI_GUID *Right
  );

UINT64
EFIAPI
Aint13ReadUnaligned64(
  IN VOID *Address
  );

EFI_STATUS
EFIAPI
Aint13TimerNotify(
  IN EFI_EVENT Event,
  IN VOID     *Context
  );

EFI_STATUS
EFIAPI
Aint13EnumeratePciIoList(
  IN VOID *PciIoList
  );

#endif /* __AINT13_H__ */