From owner-freebsd-hackers Sat Jun 29 12: 4: 0 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAE9637B400 for ; Sat, 29 Jun 2002 12:03:56 -0700 (PDT) Received: from ftp.translate.ru (ftp.translate.ru [195.131.4.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8923743E2F for ; Sat, 29 Jun 2002 12:03:55 -0700 (PDT) (envelope-from lev@serebryakov.spb.ru) Received: from lev (ip51-185.dialup.wplus.net [195.131.51.185]) (authenticated) by ftp.translate.ru (8.11.6/8.11.2) with ESMTP id g5TJ6JW87431 for ; Sat, 29 Jun 2002 23:06:19 +0400 (MSD) (envelope-from lev@serebryakov.spb.ru) Date: Sat, 29 Jun 2002 23:05:14 +0400 From: Lev Serebryakov X-Mailer: The Bat! (v1.53d) Reply-To: Lev Serebryakov Organization: Home X-Priority: 3 (Normal) Message-ID: <178176166781.20020629230514@serebryakov.spb.ru> To: freebsd-hackers@FreeBSD.ORG Subject: Driver for device on serial (COM) port MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, freebsd-hackers! How are you? I want to write driver for some device, which is attached to standard serial (COM, RS-232) port. I want to make this driver full-featured -- with device node in /dev, ioctl()s and other. But I don't want to re-implement all this serial tty stuff, that is implemented in `sys/isa/sio.c' In case of LPT we have `ppbus'. What should I do in case of COM port? I want to `take' com port (any calls to corresponding /dev/ttydX, /dev/cuaaX and other should failed after this), monitor com port state (know about new bytes, etc) and after that detach from com port (when device is shutdowned and switched off), so com port could be used for other deviced (i.e. modem) without rebooting. It looks like userland program, but I really NEED full-featured driver, which is controlled via device node... Lev Serebryakov /-----------------------------------------------\ | FIDONet: 2:5030/661.0 | | E-Mail: lev@serebryakov.spb.ru | | Page: http://lev.serebryakov.spb.ru/ | | ICQ UIN: 3670018 | | Phone: You know, if you have world nodelist | \===============================================/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message