mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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
|
||||
NTAPI
|
||||
InbvPortEnableFifo(
|
||||
IN ULONG PortId,
|
||||
IN BOOLEAN Enable
|
||||
)
|
||||
InbvPortEnableFifo(IN ULONG PortId,
|
||||
IN BOOLEAN Enable)
|
||||
{
|
||||
/* Set FIFO as requested */
|
||||
CpEnableFifo(Port[PortId].Address, Enable);
|
||||
|
@ -36,10 +34,8 @@ InbvPortEnableFifo(
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
InbvPortPutByte(
|
||||
IN ULONG PortId,
|
||||
IN BOOLEAN Output
|
||||
)
|
||||
InbvPortPutByte(IN ULONG PortId,
|
||||
IN BOOLEAN Output)
|
||||
{
|
||||
/* Send the byte */
|
||||
CpPutByte(&Port[PortId], Output);
|
||||
|
@ -47,9 +43,7 @@ InbvPortPutByte(
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
InbvPortTerminate(
|
||||
IN ULONG PortId
|
||||
)
|
||||
InbvPortTerminate(IN ULONG PortId)
|
||||
{
|
||||
/* The port is now available */
|
||||
Port[PortId].Address = NULL;
|
||||
|
@ -57,13 +51,11 @@ InbvPortTerminate(
|
|||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
InbvPortInitialize(
|
||||
IN ULONG BaudRate,
|
||||
InbvPortInitialize(IN ULONG BaudRate,
|
||||
IN ULONG PortNumber,
|
||||
IN PUCHAR PortAddress,
|
||||
OUT PULONG PortId,
|
||||
IN BOOLEAN IsMMIODevice
|
||||
)
|
||||
IN BOOLEAN IsMMIODevice)
|
||||
{
|
||||
/* Not yet supported */
|
||||
ASSERT(IsMMIODevice == FALSE);
|
||||
|
@ -115,7 +107,11 @@ InbvPortInitialize(
|
|||
|
||||
/* Initialize the port unless it's already up, and then return it */
|
||||
if (Port[PortNumber - 1].Address) return FALSE;
|
||||
|
||||
CpInitialize(&Port[PortNumber - 1], PortAddress, BaudRate);
|
||||
*PortId = PortNumber - 1;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue