[NTOSKRNL]

Code formatting only

svn path=/trunk/; revision=57763
This commit is contained in:
Hermès Bélusca-Maïto 2012-11-24 19:50:31 +00:00
parent afd01007a5
commit fad4fbd259

View file

@ -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 */