git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1459 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -34,8 +34,8 @@ SerialPortInitialize (
|
|||||||
/**
|
/**
|
||||||
Write data to serial device.
|
Write data to serial device.
|
||||||
|
|
||||||
If the buffer is NULL, then ASSERT();
|
If the buffer is NULL, then return 0;
|
||||||
if NumberOfBytes is zero, then ASSERT().
|
if NumberOfBytes is zero, then return 0.
|
||||||
|
|
||||||
@param Buffer Point of data buffer which need to be writed.
|
@param Buffer Point of data buffer which need to be writed.
|
||||||
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
||||||
@ -55,8 +55,8 @@ SerialPortWrite (
|
|||||||
/**
|
/**
|
||||||
Read data from serial device and save the datas in buffer.
|
Read data from serial device and save the datas in buffer.
|
||||||
|
|
||||||
If the buffer is NULL, then ASSERT();
|
If the buffer is NULL, then return zero;
|
||||||
if NumberOfBytes is zero, then ASSERT().
|
if NumberOfBytes is zero, then return zero.
|
||||||
|
|
||||||
@param Buffer Point of data buffer which need to be writed.
|
@param Buffer Point of data buffer which need to be writed.
|
||||||
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
||||||
|
@ -33,9 +33,6 @@ SerialPortInitialize (
|
|||||||
/**
|
/**
|
||||||
Write data to serial device.
|
Write data to serial device.
|
||||||
|
|
||||||
If the buffer is NULL, then ASSERT();
|
|
||||||
if NumberOfBytes is zero, then ASSERT().
|
|
||||||
|
|
||||||
@param Buffer Point of data buffer which need to be writed.
|
@param Buffer Point of data buffer which need to be writed.
|
||||||
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
||||||
|
|
||||||
@ -50,9 +47,6 @@ SerialPortWrite (
|
|||||||
IN UINTN NumberOfBytes
|
IN UINTN NumberOfBytes
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (NULL != Buffer);
|
|
||||||
ASSERT (0 != NumberOfBytes);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,9 +54,6 @@ SerialPortWrite (
|
|||||||
/**
|
/**
|
||||||
Read data from serial device and save the datas in buffer.
|
Read data from serial device and save the datas in buffer.
|
||||||
|
|
||||||
If the buffer is NULL, then ASSERT();
|
|
||||||
if NumberOfBytes is zero, then ASSERT().
|
|
||||||
|
|
||||||
@param Buffer Point of data buffer which need to be writed.
|
@param Buffer Point of data buffer which need to be writed.
|
||||||
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
@param NumberOfBytes Number of output bytes which are cached in Buffer.
|
||||||
|
|
||||||
@ -77,9 +68,6 @@ SerialPortRead (
|
|||||||
IN UINTN NumberOfBytes
|
IN UINTN NumberOfBytes
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (NULL != Buffer);
|
|
||||||
ASSERT (0 != NumberOfBytes);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user