Re: Support for the Evolution Scorpion robots

Alan Cox <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903
Message-ID <[email protected]>
> Okay. Like I said, I'm not really a kernel guy, and atm I really don't
> feel like being one :-)

N/P - the extra identifiers are fine.

> I could probably figure out how to do the speed hack in the right way,
> but it would require a lot of work for me (I've never even seen any of
> the kernel code before). Could I persuade somebody on this list to
> implement the speed setting correct? I know I'm asking busy people to
> do my work, but I'm not really the best man for the job.

With a current kernel you shouldn't need one you can simply do

	struct termios2 t2;
	ioctl(ttyfd, TCGETS2, &t2);
	t2.c_cflags &= ~CBAUD;
	t2.c_cflags |= BOTHER;
	t2.c_ospeed = 250000;
	ioctl(ttyfd, TCSETS2, &t2)

and at some point once its all synced up for the various platforms glibc
will handle the newer termios transparently as it already has
ispeed/ospeed information in the version it presents user applications.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.