Integrate xtklib with the kernel
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
49
sdk/xtdk/hlfuncs.h
Normal file
49
sdk/xtdk/hlfuncs.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: sdk/xtdk/hlfuncs.h
|
||||
* DESCRIPTION: XT hardware abstraction layer routines
|
||||
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||
*/
|
||||
|
||||
#ifndef __XTDK_HLFUNCS_H
|
||||
#define __XTDK_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 */
|
||||
XTSTATUS
|
||||
HlComPortGetByte(IN PCPPORT Port,
|
||||
OUT PUCHAR Byte,
|
||||
IN BOOLEAN Wait,
|
||||
IN BOOLEAN Poll);
|
||||
|
||||
UCHAR
|
||||
HlComPortReadLsr(IN PCPPORT Port,
|
||||
IN UCHAR Byte);
|
||||
|
||||
XTSTATUS
|
||||
HlComPortPutByte(IN PCPPORT Port,
|
||||
IN UCHAR Byte);
|
||||
|
||||
XTSTATUS
|
||||
HlInitializeComPort(IN OUT PCPPORT Port,
|
||||
IN ULONG PortNumber,
|
||||
IN ULONG BaudRate);
|
||||
|
||||
XTAPI
|
||||
UCHAR
|
||||
HlIoPortInByte(IN USHORT Port);
|
||||
|
||||
XTAPI
|
||||
VOID
|
||||
HlIoPortOutByte(IN USHORT Port,
|
||||
IN UCHAR Data);
|
||||
|
||||
#endif /* __XTDK_HLFUNCS_H */
|
Reference in New Issue
Block a user