MdePkg: Convert IoLibEbc.c source file to DOS format

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19318 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Liming Gao
2015-12-17 08:30:58 +00:00
committed by lgao4
parent 424328c892
commit f530cdbb0f

View File

@@ -1,171 +1,171 @@
/** @file /** @file
I/O Library for EBC. I/O Library for EBC.
EBC does not support port I/O. All APIs in this file ASSERT(). EBC does not support port I/O. All APIs in this file ASSERT().
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php. http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
#include "BaseIoLibIntrinsicInternal.h" #include "BaseIoLibIntrinsicInternal.h"
/** /**
Reads an 8-bit I/O port. Reads an 8-bit I/O port.
Reads the 8-bit I/O port specified by Port. The 8-bit read value is returned. Reads the 8-bit I/O port specified by Port. The 8-bit read value is returned.
This function must guarantee that all I/O read and write operations are This function must guarantee that all I/O read and write operations are
serialized. serialized.
If 8-bit I/O port operations are not supported, then ASSERT(). If 8-bit I/O port operations are not supported, then ASSERT().
@param Port The I/O port to read. @param Port The I/O port to read.
@return The value read. @return The value read.
**/ **/
UINT8 UINT8
EFIAPI EFIAPI
IoRead8 ( IoRead8 (
IN UINTN Port IN UINTN Port
) )
{ {
ASSERT (FALSE); ASSERT (FALSE);
return 0; return 0;
} }
/** /**
Writes an 8-bit I/O port. Writes an 8-bit I/O port.
Writes the 8-bit I/O port specified by Port with the value specified by Value Writes the 8-bit I/O port specified by Port with the value specified by Value
and returns Value. This function must guarantee that all I/O read and write and returns Value. This function must guarantee that all I/O read and write
operations are serialized. operations are serialized.
If 8-bit I/O port operations are not supported, then ASSERT(). If 8-bit I/O port operations are not supported, then ASSERT().
@param Port The I/O port to write. @param Port The I/O port to write.
@param Value The value to write to the I/O port. @param Value The value to write to the I/O port.
@return The value written to the I/O port. @return The value written to the I/O port.
**/ **/
UINT8 UINT8
EFIAPI EFIAPI
IoWrite8 ( IoWrite8 (
IN UINTN Port, IN UINTN Port,
IN UINT8 Value IN UINT8 Value
) )
{ {
ASSERT (FALSE); ASSERT (FALSE);
return 0; return 0;
} }
/** /**
Reads a 16-bit I/O port. Reads a 16-bit I/O port.
Reads the 16-bit I/O port specified by Port. The 16-bit read value is returned. Reads the 16-bit I/O port specified by Port. The 16-bit read value is returned.
This function must guarantee that all I/O read and write operations are This function must guarantee that all I/O read and write operations are
serialized. serialized.
If 16-bit I/O port operations are not supported, then ASSERT(). If 16-bit I/O port operations are not supported, then ASSERT().
If Port is not aligned on a 16-bit boundary, then ASSERT(). If Port is not aligned on a 16-bit boundary, then ASSERT().
@param Port The I/O port to read. @param Port The I/O port to read.
@return The value read. @return The value read.
**/ **/
UINT16 UINT16
EFIAPI EFIAPI
IoRead16 ( IoRead16 (
IN UINTN Port IN UINTN Port
) )
{ {
ASSERT (FALSE); ASSERT (FALSE);
return 0; return 0;
} }
/** /**
Writes a 16-bit I/O port. Writes a 16-bit I/O port.
Writes the 16-bit I/O port specified by Port with the value specified by Value Writes the 16-bit I/O port specified by Port with the value specified by Value
and returns Value. This function must guarantee that all I/O read and write and returns Value. This function must guarantee that all I/O read and write
operations are serialized. operations are serialized.
If 16-bit I/O port operations are not supported, then ASSERT(). If 16-bit I/O port operations are not supported, then ASSERT().
If Port is not aligned on a 16-bit boundary, then ASSERT(). If Port is not aligned on a 16-bit boundary, then ASSERT().
@param Port The I/O port to write. @param Port The I/O port to write.
@param Value The value to write to the I/O port. @param Value The value to write to the I/O port.
@return The value written to the I/O port. @return The value written to the I/O port.
**/ **/
UINT16 UINT16
EFIAPI EFIAPI
IoWrite16 ( IoWrite16 (
IN UINTN Port, IN UINTN Port,
IN UINT16 Value IN UINT16 Value
) )
{ {
ASSERT (FALSE); ASSERT (FALSE);
return 0; return 0;
} }
/** /**
Reads a 32-bit I/O port. Reads a 32-bit I/O port.
Reads the 32-bit I/O port specified by Port. The 32-bit read value is returned. Reads the 32-bit I/O port specified by Port. The 32-bit read value is returned.
This function must guarantee that all I/O read and write operations are This function must guarantee that all I/O read and write operations are
serialized. serialized.
If 32-bit I/O port operations are not supported, then ASSERT(). If 32-bit I/O port operations are not supported, then ASSERT().
If Port is not aligned on a 32-bit boundary, then ASSERT(). If Port is not aligned on a 32-bit boundary, then ASSERT().
@param Port The I/O port to read. @param Port The I/O port to read.
@return The value read. @return The value read.
**/ **/
UINT32 UINT32
EFIAPI EFIAPI
IoRead32 ( IoRead32 (
IN UINTN Port IN UINTN Port
) )
{ {
ASSERT (FALSE); ASSERT (FALSE);
return 0; return 0;
} }
/** /**
Writes a 32-bit I/O port. Writes a 32-bit I/O port.
Writes the 32-bit I/O port specified by Port with the value specified by Value Writes the 32-bit I/O port specified by Port with the value specified by Value
and returns Value. This function must guarantee that all I/O read and write and returns Value. This function must guarantee that all I/O read and write
operations are serialized. operations are serialized.
If 32-bit I/O port operations are not supported, then ASSERT(). If 32-bit I/O port operations are not supported, then ASSERT().
If Port is not aligned on a 32-bit boundary, then ASSERT(). If Port is not aligned on a 32-bit boundary, then ASSERT().
@param Port The I/O port to write. @param Port The I/O port to write.
@param Value The value to write to the I/O port. @param Value The value to write to the I/O port.
@return The value written to the I/O port. @return The value written to the I/O port.
**/ **/
UINT32 UINT32
EFIAPI EFIAPI
IoWrite32 ( IoWrite32 (
IN UINTN Port, IN UINTN Port,
IN UINT32 Value IN UINT32 Value
) )
{ {
ASSERT (FALSE); ASSERT (FALSE);
return 0; return 0;
} }