From owner-freebsd-stable@FreeBSD.ORG Fri Apr 30 12:23:41 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE6A51065670 for ; Fri, 30 Apr 2010 12:23:41 +0000 (UTC) (envelope-from ai@kliksys.ru) Received: from gate.kliksys.ru (gate.kliksys.ru [78.110.241.113]) by mx1.freebsd.org (Postfix) with ESMTP id A14F88FC1C for ; Fri, 30 Apr 2010 12:23:41 +0000 (UTC) Received: from [192.168.1.14] (helo=two.kliksys.ru) by gate.kliksys.ru with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O7p0w-000KFj-Hg for freebsd-stable@freebsd.org; Fri, 30 Apr 2010 16:08:16 +0400 Date: Fri, 30 Apr 2010 16:08:11 +0400 From: Artemiev Igor To: freebsd-stable@freebsd.org Message-ID: <20100430120810.GA2415@two.kliksys.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam_score: 2.1 Subject: rpi(4) - Comtrol Infinity/Express card driver, please review X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2010 12:23:42 -0000 Hi This driver supports the RocketPort Infinity series of multiport serial cards, which are 3.3V PCI and PCI-X, PCI-E (RocketPort Express) compatible. Comtrol already have freebsd driver for those cards with abandoned support, it is only for freebsd5.x/6.x and old tty layout: ftp://ftp.comtrol.com/rport_infinity/drivers/freebsd/6.x/rpinfinity_freebsd6_1.01.tar.z I have changed it for new tty layer and tested with freebsd 8-stable. New driver is not only simple conversion from native comtrol version, but taking some functionality from comtrol linux driver, which more mature. Driver looks stable for me, i`m using it for our console server with several Comtrol Express cards: http:// gate.kliksys.ru/~ai/rpinfinity-20100430.tar.bz2 dmesg output: rpi0: mem 0xfabff000-0xfabfffff,0xfabf8000-0xfabfbfff irq 16 at device 0.0 on pci2 rpi1: mem 0xfacff000-0xfacfffff,0xfacf8000-0xfacfbfff irq 16 at device 0.0 on pci4 rpi2: mem 0xfadff000-0xfadfffff,0xfadf8000-0xfadfbfff irq 16 at device 0.0 on pci6 The Rocketport Infinity/Express devices include the ability to be configured for any of five interface modes: - RS232 - RS422 - RS485 2 wire (RS485) - RS485 4 wire slave (RS486) - RS485 4 wire master (RS487) The default mode is RS232. The exception to this is the SMPTE models, which are RS422 only. It can be setup via sysctl or loader tunables: dev.rpi..port..mode or hw.rpi..port..mode (loader tunables) dev.rpi..port..rts_toggle - inverting RTS signal. (only sysctl) For callin ports it create /dev/ttyRPIxy, for callout - /dev/cuaRPIxy, where x is the card unit, y is the port number