X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmbeddedPkg%2FLibrary%2FTemplateSerialPortLib%2FTemplateSerialPortLib.c;h=c3f8bd129802054b3ac62ba43311caa7303abbf6;hp=a446f6a5b8b6ede836fb9d3afe532b7c3c21079f;hb=daefd574f9d6c62df9149197af48219dc7cabf59;hpb=60274ccab831d7874129a6b6c271969418296960 diff --git a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c b/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c index a446f6a5b8..c3f8bd1298 100644 --- a/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c +++ b/EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c @@ -2,7 +2,8 @@ Serial I/O Port library functions with no library constructor/destructor Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + Copyright (c) 2012, ARM Ltd. All rights reserved. + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -18,7 +19,7 @@ #include -/* +/** Programmed hardware of Serial port. @@ -37,11 +38,11 @@ SerialPortInitialize ( /** Write data to serial device. - @param Buffer Point of data buffer which need to be writed. + @param Buffer Point of data buffer which need to be written. @param NumberOfBytes Number of output bytes which are cached in Buffer. @retval 0 Write data failed. - @retval !0 Actual number of bytes writed to serial device. + @retval !0 Actual number of bytes written to serial device. **/ UINTN @@ -49,20 +50,20 @@ EFIAPI SerialPortWrite ( IN UINT8 *Buffer, IN UINTN NumberOfBytes -) + ) { return 0; } /** - Read data from serial device and save the datas in buffer. + Read data from serial device and save the data in buffer. - @param Buffer Point of data buffer which need to be writed. + @param Buffer Point of data buffer which need to be written. @param NumberOfBytes Number of output bytes which are cached in Buffer. @retval 0 Read data failed. - @retval !0 Aactual number of bytes read from serial device. + @retval !0 Actual number of bytes read from serial device. **/ UINTN @@ -70,7 +71,7 @@ EFIAPI SerialPortRead ( OUT UINT8 *Buffer, IN UINTN NumberOfBytes -) + ) { return 0; } @@ -81,7 +82,7 @@ SerialPortRead ( Poll the serial device to see if there is any data waiting. If there is data waiting to be read from the serial port, then return - TRUE. If there is no data waiting to be read from the serial port, then + TRUE. If there is no data waiting to be read from the serial port, then return FALSE. @retval TRUE Data is waiting to be read.