Linux MS DOS discussions
 help / color / mirror / Atom feed
* Re: I have a patch for dosemu-1.0.2.1 to enhance rs232 "break" support
@ 2002-08-23 21:58 Stas Sergeev
  0 siblings, 0 replies; 2+ messages in thread
From: Stas Sergeev @ 2002-08-23 21:58 UTC (permalink / raw)
  To: linux-msdos; +Cc: Randy Thelen

Hello.

Mark Rejhon wrote:
> Randy Thelen wrote:
>> Hi Mark! 
>> My name is Randy Thelen and I've hacked on 
>> src/base/serial/ser_ports.c
>> for dosemu-1.0.2.1.
Please consider hacking >=1.1.3.2 as the serial
code was changed a bit.

> + * This function updates the msr and mcr with respect to the hardware.
Are you sure we need this for mcr?
And for msr we have a modstat_engine()...
So please provide some more explanations as
currently I don't see a point (yes, as the
serial code is no longer maintained, you'll
have to provide some more explanations than
expected for makeing a maintainer to understand).

> +  if ((com[num].LSR & 1) == 0) sleep(1);
What is this?

>  put_lcr(int num, int val)
> {
> +  int changed;
I think you don't need "changed" here, "val"
must work.

> +    control = 0;  /* UNUSED for TIOCSBRK and TIOCCBRK */
> +    if (val & UART_LCR_SBC)
> +      ioctl(com[num].fd, TIOCSBRK, &control);
Will the ioctl(com[num].fd, TIOCSBRK) work?
I think this ioctl doesn't require an arg at all.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-23 21:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20020823021342.K43474@tesla.madscientistroom.org>
2002-08-23 16:04 ` I have a patch for dosemu-1.0.2.1 to enhance rs232 "break" support Mark Rejhon
2002-08-23 21:58 Stas Sergeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox