mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[NTOSKRNL]
Code formatting only svn path=/trunk/; revision=57763
This commit is contained in:
parent
afd01007a5
commit
fad4fbd259
1 changed files with 68 additions and 72 deletions
|
@ -25,10 +25,8 @@ CPPORT Port[4] =
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
InbvPortEnableFifo(
|
InbvPortEnableFifo(IN ULONG PortId,
|
||||||
IN ULONG PortId,
|
IN BOOLEAN Enable)
|
||||||
IN BOOLEAN Enable
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* Set FIFO as requested */
|
/* Set FIFO as requested */
|
||||||
CpEnableFifo(Port[PortId].Address, Enable);
|
CpEnableFifo(Port[PortId].Address, Enable);
|
||||||
|
@ -36,10 +34,8 @@ InbvPortEnableFifo(
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
InbvPortPutByte(
|
InbvPortPutByte(IN ULONG PortId,
|
||||||
IN ULONG PortId,
|
IN BOOLEAN Output)
|
||||||
IN BOOLEAN Output
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* Send the byte */
|
/* Send the byte */
|
||||||
CpPutByte(&Port[PortId], Output);
|
CpPutByte(&Port[PortId], Output);
|
||||||
|
@ -47,9 +43,7 @@ InbvPortPutByte(
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
InbvPortTerminate(
|
InbvPortTerminate(IN ULONG PortId)
|
||||||
IN ULONG PortId
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* The port is now available */
|
/* The port is now available */
|
||||||
Port[PortId].Address = NULL;
|
Port[PortId].Address = NULL;
|
||||||
|
@ -57,13 +51,11 @@ InbvPortTerminate(
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
InbvPortInitialize(
|
InbvPortInitialize(IN ULONG BaudRate,
|
||||||
IN ULONG BaudRate,
|
|
||||||
IN ULONG PortNumber,
|
IN ULONG PortNumber,
|
||||||
IN PUCHAR PortAddress,
|
IN PUCHAR PortAddress,
|
||||||
OUT PULONG PortId,
|
OUT PULONG PortId,
|
||||||
IN BOOLEAN IsMMIODevice
|
IN BOOLEAN IsMMIODevice)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* Not yet supported */
|
/* Not yet supported */
|
||||||
ASSERT(IsMMIODevice == FALSE);
|
ASSERT(IsMMIODevice == FALSE);
|
||||||
|
@ -115,7 +107,11 @@ InbvPortInitialize(
|
||||||
|
|
||||||
/* Initialize the port unless it's already up, and then return it */
|
/* Initialize the port unless it's already up, and then return it */
|
||||||
if (Port[PortNumber - 1].Address) return FALSE;
|
if (Port[PortNumber - 1].Address) return FALSE;
|
||||||
|
|
||||||
CpInitialize(&Port[PortNumber - 1], PortAddress, BaudRate);
|
CpInitialize(&Port[PortNumber - 1], PortAddress, BaudRate);
|
||||||
*PortId = PortNumber - 1;
|
*PortId = PortNumber - 1;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue