/** * PROJECT: ExectOS * COPYRIGHT: See COPYING.md in the top level directory * FILE: sdk/xtdk/amd64/hlfuncs.h * DESCRIPTION: XT hardware abstraction layer routines specific to AMD64 architecture * DEVELOPERS: Rafal Kupiec */ #ifndef __XTDK_AMD64_HLFUNCS_H #define __XTDK_AMD64_HLFUNCS_H #include "xtdefs.h" #include "xtstruct.h" #include "xttypes.h" /* I/O port addresses for COM ports */ extern ULONG ComPortAddress[]; /* HAL library routines forward references */ XTCDECL BOOLEAN HlCpuId(IN OUT PCPUID_REGISTERS Registers); XTCDECL VOID HlHalt(); XTCDECL UCHAR HlIoPortInByte(IN USHORT Port); XTCDECL VOID HlIoPortOutByte(IN USHORT Port, IN UCHAR Data); XTCDECL ULONG_PTR HlReadControlRegister(IN USHORT ControlRegister); XTCDECL VOID HlWriteControlRegister(IN USHORT ControlRegister, IN UINT_PTR Value); #endif /* __XTDK_AMD64_HLFUNCS_H */