From owner-freebsd-questions Tue May 25 9:27:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from zed.ludd.luth.se (zed.ludd.luth.se [130.240.16.33]) by hub.freebsd.org (Postfix) with ESMTP id EB9D615091 for ; Tue, 25 May 1999 09:27:39 -0700 (PDT) (envelope-from pb@ludd.luth.se) Received: from father.ludd.luth.se (pb@father.ludd.luth.se [130.240.16.18]) by zed.ludd.luth.se (8.8.5/8.8.5) with ESMTP id SAA01704 for ; Tue, 25 May 1999 18:27:37 +0200 From: Peter Brevik Received: (pb@localhost) by father.ludd.luth.se (8.6.11/8.6.11) id SAA11315 for freebsd-questions@freebsd.org; Tue, 25 May 1999 18:27:36 +0200 Message-Id: <199905251627.SAA11315@father.ludd.luth.se> Subject: RS232 status read ioctl (RI,DSR,CTS etc..) To: freebsd-questions@freebsd.org Date: Tue, 25 May 1999 18:27:36 +0200 (MET DST) X-Mailer: ELM [version 2.4ME+ PL15 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am programming a rs232 device (driver) which is using the status line's rather than the tx/rx lines to control the device. I have succedded without any problem to send signals by using the ioctl's described in "man 4 tty" man page. There is a ioctl called "TIOCMGET" which is intended asfaik to read these status lines. However this seems not to be the case. By printf's in kernel sio driver I found out that the sio.c driver will only actually read these from the chip at opening of the device. And it seems these lines does not correspond to what actually are on the rs232 connector anyway. I would not like to use brute force, like inb()/outb() commands.. Any suggestions on how to make use of TIOCMGET as intended ..? /Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message