ptos/amd64: platform: Add UART driver + HAL interface

Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
2026-07-10 05:22:51 +00:00
parent 5f556df0ac
commit d21050c1e6
3 changed files with 136 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: HAL serial interface
* Author: Chloe M.
*/
#ifndef _HAL_SERIAL_H_
#define _HAL_SERIAL_H_ 1
#include <ptapi/status.h>
/*
* Initialize the serial driver
*/
PT_STATUS HalSerialInit(VOID);
/*
* Transmit data over serial
*
* @Data: Data to transmit
* @Length: Length of data to transmit
*/
VOID HalSerialWrite(const CHAR *Data, USIZE Length);
#endif /* !_HAL_SERIAL_H_ */