]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.c
ArmPkg/SemihostFs: Implement SetInfo() and handle seeking past the end of a file
[mirror_edk2.git] / EmbeddedPkg / Library / TemplateSerialPortLib / TemplateSerialPortLib.c
index a446f6a5b8b6ede836fb9d3afe532b7c3c21079f..c3f8bd129802054b3ac62ba43311caa7303abbf6 100644 (file)
@@ -2,7 +2,8 @@
   Serial I/O Port library functions with no library constructor/destructor\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
+  Copyright (c) 2012, ARM Ltd. All rights reserved.\r
+\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -18,7 +19,7 @@
 \r
 #include <Library/SerialPortLib.h>\r
 \r
-/*\r
+/**\r
 \r
   Programmed hardware of Serial port.\r
 \r
@@ -37,11 +38,11 @@ SerialPortInitialize (
 /**\r
   Write data to serial device.\r
 \r
-  @param  Buffer           Point of data buffer which need to be writed.\r
+  @param  Buffer           Point of data buffer which need to be written.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
   @retval 0                Write data failed.\r
-  @retval !0               Actual number of bytes writed to serial device.\r
+  @retval !0               Actual number of bytes written to serial device.\r
 \r
 **/\r
 UINTN\r
@@ -49,20 +50,20 @@ EFIAPI
 SerialPortWrite (\r
   IN UINT8     *Buffer,\r
   IN UINTN     NumberOfBytes\r
-)\r
+  )\r
 {\r
   return 0;\r
 }\r
 \r
 \r
 /**\r
-  Read data from serial device and save the datas in buffer.\r
+  Read data from serial device and save the data in buffer.\r
 \r
-  @param  Buffer           Point of data buffer which need to be writed.\r
+  @param  Buffer           Point of data buffer which need to be written.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
   @retval 0                Read data failed.\r
-  @retval !0               Aactual number of bytes read from serial device.\r
+  @retval !0               Actual number of bytes read from serial device.\r
 \r
 **/\r
 UINTN\r
@@ -70,7 +71,7 @@ EFIAPI
 SerialPortRead (\r
   OUT UINT8     *Buffer,\r
   IN  UINTN     NumberOfBytes\r
-)\r
+  )\r
 {\r
   return 0;\r
 }\r
@@ -81,7 +82,7 @@ SerialPortRead (
   Poll the serial device to see if there is any data waiting.\r
 \r
   If there is data waiting to be read from the serial port, then return\r
-  TRUE.  If there is no data waiting to be read from the serial port, then \r
+  TRUE.  If there is no data waiting to be read from the serial port, then\r
   return FALSE.\r
 \r
   @retval TRUE             Data is waiting to be read.\r