Implement SerialPortLib and PlatformHookLib with System76EcLib

This commit is contained in:
Jeremy Soller
2020-07-02 11:25:17 -06:00
committed by Jeremy Soller
parent c6f1c4e654
commit e30d17a0d2
10 changed files with 142 additions and 187 deletions

View File

@@ -17,7 +17,6 @@
#include <Library/PciLib.h>
#include <Library/PlatformHookLib.h>
#include <Library/BaseLib.h>
#include <Library/System76EcLib.h>
//
// PCI Defintions.
@@ -602,8 +601,6 @@ SerialPortWrite (
UINTN Result;
UINTN Index;
UINTN FifoSize;
UINT8 *BufPtr = Buffer;
UINTN Bytes = NumberOfBytes;
if (Buffer == NULL) {
return 0;
@@ -666,9 +663,6 @@ SerialPortWrite (
SerialPortWriteRegister (SerialRegisterBase, R_UART_TXBUF, *Buffer);
}
}
System76EcWrite(BufPtr, Bytes);
return Result;
}