mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:25:40 +00:00
[SERIAL]
Pretend that functions IOCTL_SERIAL_{GET,SET}_{CHARS,HANDFLOW} are implemented. It allows PuTTY to set baud rate. svn path=/trunk/; revision=54405
This commit is contained in:
parent
c09009c2be
commit
5d3b2bfa7c
1 changed files with 34 additions and 4 deletions
|
@ -374,8 +374,24 @@ SerialDeviceControl(
|
||||||
case IOCTL_SERIAL_GET_CHARS:
|
case IOCTL_SERIAL_GET_CHARS:
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
|
PSERIAL_CHARS pSerialChars;
|
||||||
ERR_(SERIAL, "IOCTL_SERIAL_GET_CHARS not implemented.\n");
|
ERR_(SERIAL, "IOCTL_SERIAL_GET_CHARS not implemented.\n");
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
if (LengthOut < sizeof(SERIAL_CHARS))
|
||||||
|
Status = STATUS_BUFFER_TOO_SMALL;
|
||||||
|
else if (BufferOut == NULL)
|
||||||
|
Status = STATUS_INVALID_PARAMETER;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pSerialChars = (PSERIAL_CHARS)BufferOut;
|
||||||
|
pSerialChars->EofChar = 0;
|
||||||
|
pSerialChars->ErrorChar = 0;
|
||||||
|
pSerialChars->BreakChar = 0;
|
||||||
|
pSerialChars->EventChar = 0;
|
||||||
|
pSerialChars->XonChar = 0;
|
||||||
|
pSerialChars->XoffChar = 0;
|
||||||
|
Information = sizeof(SERIAL_CHARS);
|
||||||
|
Status = STATUS_SUCCESS;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IOCTL_SERIAL_GET_COMMSTATUS:
|
case IOCTL_SERIAL_GET_COMMSTATUS:
|
||||||
|
@ -414,8 +430,22 @@ SerialDeviceControl(
|
||||||
case IOCTL_SERIAL_GET_HANDFLOW:
|
case IOCTL_SERIAL_GET_HANDFLOW:
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
|
PSERIAL_HANDFLOW pSerialHandflow;
|
||||||
ERR_(SERIAL, "IOCTL_SERIAL_GET_HANDFLOW not implemented.\n");
|
ERR_(SERIAL, "IOCTL_SERIAL_GET_HANDFLOW not implemented.\n");
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
if (LengthOut < sizeof(SERIAL_HANDFLOW))
|
||||||
|
Status = STATUS_BUFFER_TOO_SMALL;
|
||||||
|
else if (BufferOut == NULL)
|
||||||
|
Status = STATUS_INVALID_PARAMETER;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pSerialHandflow = (PSERIAL_HANDFLOW)BufferOut;
|
||||||
|
pSerialHandflow->ControlHandShake = 0;
|
||||||
|
pSerialHandflow->FlowReplace = 0;
|
||||||
|
pSerialHandflow->XonLimit = 0;
|
||||||
|
pSerialHandflow->XoffLimit = 0;
|
||||||
|
Information = sizeof(SERIAL_HANDFLOW);
|
||||||
|
Status = STATUS_SUCCESS;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IOCTL_SERIAL_GET_LINE_CONTROL:
|
case IOCTL_SERIAL_GET_LINE_CONTROL:
|
||||||
|
@ -623,7 +653,7 @@ SerialDeviceControl(
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
ERR_(SERIAL, "IOCTL_SERIAL_SET_CHARS not implemented.\n");
|
ERR_(SERIAL, "IOCTL_SERIAL_SET_CHARS not implemented.\n");
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IOCTL_SERIAL_SET_DTR:
|
case IOCTL_SERIAL_SET_DTR:
|
||||||
|
@ -665,7 +695,7 @@ SerialDeviceControl(
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
ERR_(SERIAL, "IOCTL_SERIAL_SET_HANDFLOW not implemented.\n");
|
ERR_(SERIAL, "IOCTL_SERIAL_SET_HANDFLOW not implemented.\n");
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IOCTL_SERIAL_SET_LINE_CONTROL:
|
case IOCTL_SERIAL_SET_LINE_CONTROL:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue