From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 21 20:39:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 E21A616A422 for ; Fri, 21 Oct 2005 20:39:58 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from ant.bwct.de (ant.bwct.de [85.159.14.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1770C43D45 for ; Fri, 21 Oct 2005 20:39:57 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by ant.bwct.de (8.12.11/8.12.11) with ESMTP id j9LKdssN026135; Fri, 21 Oct 2005 22:39:55 +0200 (CEST) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id j9LKdoXY038922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Oct 2005 22:39:51 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id j9LKdo3p037985; Fri, 21 Oct 2005 22:39:50 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id j9LKdni5037984; Fri, 21 Oct 2005 22:39:49 +0200 (CEST) (envelope-from ticso) Date: Fri, 21 Oct 2005 22:39:49 +0200 From: Bernd Walter To: Frank Behrens Message-ID: <20051021203948.GQ31913@cicely12.cicely.de> References: <200510210835.j9L8Zn2P001846@pinky.frank-behrens.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510210835.j9L8Zn2P001846@pinky.frank-behrens.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: freebsd-hackers@freebsd.org Subject: Re: How disable attachment of sio(4) driver to device? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 20:39:59 -0000 On Fri, Oct 21, 2005 at 10:35:43AM +0200, Frank Behrens wrote: > Hi, > > I'm writing a device driver for UART with a protocol, that can not be > handled by the default sio(4) driver. The driver works fine - the > only problem I have is to disable the attachment of sio(4) driver to > the device. If it is just needing tx-enable for RS485 you might use a standard FT232BM chip - they have support to do it transparently. However, if you need 9-bit or complex timing it's problematic. But even with 16550 and special kernel driver timing is hard to do it right. I personally build specialized USB and Ethernet devices for doing Modbus/RTU RS485 timing. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de