Revision: 14357
          http://edk2.svn.sourceforge.net/edk2/?rev=14357&view=rev
Author:   oliviermartin
Date:     2013-05-14 23:50:33 +0000 (Tue, 14 May 2013)
Log Message:
-----------
EmulatorPkg/(Pei|Dxe)EmuSerialPortLib: Remove the SerialPortExtLib functions 
from SerialPortLib

SerialPortSetControl, SerialPortGetControl and SerialPortSetAttributes are 
functions
of the SerialPortExtLib library interface. They should not be implemented by the
SerialPortLib library.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Reviewed-by: Andrew Fish <[email protected]>

Modified Paths:
--------------
    trunk/edk2/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
    trunk/edk2/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c

Modified: 
trunk/edk2/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
===================================================================
--- trunk/edk2/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c    
2013-05-14 15:57:55 UTC (rev 14356)
+++ trunk/edk2/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c    
2013-05-14 23:50:33 UTC (rev 14357)
@@ -17,7 +17,6 @@
 
 #include <PiDxe.h>
 #include <Library/SerialPortLib.h>
-#include <Library/SerialPortExtLib.h>
 #include <Library/EmuThunkLib.h>
 
 
@@ -117,57 +116,3 @@
   return gEmuThunk->PollStdIn ();
 }
 
-/**
-  Set the serial device control bits.
-
-  @return    Always return EFI_UNSUPPORTED.
-
-**/
-RETURN_STATUS
-EFIAPI
-SerialPortSetControl (
-  IN UINT32                   Control
-  )
-{
-  return RETURN_SUCCESS;
-}
-
-/**
-  Get the serial device control bits.
-
-  @param  Control                 Control signals read from the serial device.
-
-  @retval EFI_SUCCESS             The control bits were read from the serial 
device.
-  @retval EFI_DEVICE_ERROR        The serial device is not functioning 
correctly.
-
-**/
-RETURN_STATUS
-EFIAPI
-SerialPortGetControl (
-  OUT UINT32                  *Control
-  )
-{
-  return RETURN_SUCCESS;
-}
-
-
-/**
-  Set the serial device attributes.
-
-  @return    Always return EFI_UNSUPPORTED.
-
-**/
-RETURN_STATUS
-EFIAPI
-SerialPortSetAttributes (
-  IN UINT64              BaudRate,
-  IN UINT32              ReceiveFifoDepth,
-  IN UINT32              Timeout,
-  IN EFI_PARITY_TYPE     Parity,
-  IN UINT8               DataBits,
-  IN EFI_STOP_BITS_TYPE  StopBits
-  )
-{
-  return RETURN_SUCCESS;
-}
-

Modified: 
trunk/edk2/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
===================================================================
--- trunk/edk2/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c    
2013-05-14 15:57:55 UTC (rev 14356)
+++ trunk/edk2/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c    
2013-05-14 23:50:33 UTC (rev 14357)
@@ -18,7 +18,6 @@
 
 #include <PiPei.h>
 #include <Library/SerialPortLib.h>
-#include <Library/SerialPortExtLib.h>
 #include <Library/PeiServicesLib.h>
 
 #include <Ppi/EmuThunk.h>
@@ -138,58 +137,3 @@
   return FALSE;
 }
 
-/**
-  Set the serial device control bits.
-
-  @return    Always return EFI_UNSUPPORTED.
-
-**/
-RETURN_STATUS
-EFIAPI
-SerialPortSetControl (
-  IN UINT32                   Control
-  )
-{
-  return RETURN_SUCCESS;
-}
-
-/**
-  Get the serial device control bits.
-
-  @param  Control                 Control signals read from the serial device.
-
-  @retval EFI_SUCCESS             The control bits were read from the serial 
device.
-  @retval EFI_DEVICE_ERROR        The serial device is not functioning 
correctly.
-
-**/
-RETURN_STATUS
-EFIAPI
-SerialPortGetControl (
-  OUT UINT32                  *Control
-  )
-{
-  return RETURN_SUCCESS;
-}
-
-
-/**
-  Set the serial device attributes.
-
-  @return    Always return EFI_UNSUPPORTED.
-
-**/
-RETURN_STATUS
-EFIAPI
-SerialPortSetAttributes (
-  IN UINT64              BaudRate,
-  IN UINT32              ReceiveFifoDepth,
-  IN UINT32              Timeout,
-  IN EFI_PARITY_TYPE     Parity,
-  IN UINT8               DataBits,
-  IN EFI_STOP_BITS_TYPE  StopBits
-  )
-{
-  return RETURN_SUCCESS;
-}
-
-

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to