/* PRIVATE FUNCTIONS *********************************************************/
-BOOLEAN
+static BOOLEAN
NTAPI
VgaInterpretCmdStream(IN PUSHORT CmdStream)
{
switch (Minor)
{
case 0:
+ {
/* The port is what is in the stream right now */
ShortPort = UlongToPtr(*CmdStream);
WRITE_PORT_USHORT(ShortPort, ShortValue);
}
break;
+ }
+
case 1:
+ {
/* The port is what is in the stream right now. Add the base too */
Port = *CmdStream + Base;
WRITE_PORT_UCHAR(Port, Value);
}
break;
+ }
+
case 2:
+ {
/* The port is what is in the stream right now. Add the base too */
Port = *CmdStream + Base;
/* Write the value */
WRITE_PORT_UCHAR(Port, Value);
break;
+ }
+
default:
/* Unknown command, fail */
return FALSE;
return TRUE;
}
-BOOLEAN
+static BOOLEAN
NTAPI
VgaIsPresent(VOID)
{