Initial support for EFI framebuffer

This commit is contained in:
2023-01-19 16:23:39 +01:00
parent fb60724710
commit 9cbe2d458c
6 changed files with 151 additions and 0 deletions

View File

@@ -15,6 +15,10 @@
/* HAL library routines forward references */
XTAPI
VOID
HlClearScreen(VOID);
XTCDECL
XTSTATUS
HlComPortGetByte(IN PCPPORT Port,
@@ -32,6 +36,12 @@ UCHAR
HlComPortReadLsr(IN PCPPORT Port,
IN UCHAR Byte);
XTAPI
VOID
HlDrawPixel(IN ULONG PosX,
IN ULONG PosY,
IN ULONG Color);
XTCDECL
XTSTATUS
HlInitializeComPort(IN OUT PCPPORT Port,
@@ -39,4 +49,8 @@ HlInitializeComPort(IN OUT PCPPORT Port,
IN PUCHAR PortAddress,
IN ULONG BaudRate);
XTAPI
XTSTATUS
HlInitializeDisplay(VOID);
#endif /* __XTDK_HLFUNCS_H */

View File

@@ -98,4 +98,16 @@ typedef struct _CPPORT
USHORT Flags;
} CPPORT, *PCPPORT;
typedef struct _HAL_FRAMEBUFFER_DATA
{
BOOLEAN Initialized;
PULONG Address;
ULONG_PTR BufferSize;
UINT Width;
UINT Height;
UINT PixelsPerScanLine;
UINT BitsPerPixel;
UINT Pitch;
} HAL_FRAMEBUFFER_DATA, *PHAL_FRAMEBUFFER_DATA;
#endif /* __XTDK_HLTYPES_H */