Benjamin Grogg wrote: > Dear Forum, > > How I can control (in C) the RS232 (Serial line) controller in Opensolaris? > In Linux (ioctl) I can use following : > > -TIOCGICOUNT (Count Interrupts (Serial Line)) > -TIOCMIWAIT (Waits for MSR change) > -TIOCMBIS, TIOCMBIC (Set modem control registers) > > I can't find any useful information how I can handle this in Opensolaris. > Anybody have more information about this?
The TIOCMBIS, TIOCMBIC, TIOCMGET, and TIOCMSET ioctls are described on the termio(7I) man page. The other two look like non-portable Linux-specific features. Unless you write your own driver, you won't be able to do much with those. Of them, I see no real point to TIOCGICOUNT. I'd expect interrupt counts to be provided through some sort of diagnostic interface, such as kstats, rather than through an application interface. TIOCMIWAIT, though, sounds like an interesting addition. The best you can do for TIOCMIWAIT is to open the /dev/cua/ node in blocking mode in order to wait for DCD assertion. There's no way to wait for any of the other input signals (such as CTS or RI). -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code