From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 4 11:10:05 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEC99106567A for ; Wed, 4 Aug 2010 11:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C71038FC13 for ; Wed, 4 Aug 2010 11:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o74BA5hO026321 for ; Wed, 4 Aug 2010 11:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o74BA583026320; Wed, 4 Aug 2010 11:10:05 GMT (envelope-from gnats) Resent-Date: Wed, 4 Aug 2010 11:10:05 GMT Resent-Message-Id: <201008041110.o74BA583026320@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Artemiev Igor Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0298106566C for ; Wed, 4 Aug 2010 11:00:21 +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 A52988FC12 for ; Wed, 4 Aug 2010 11:00:21 +0000 (UTC) Received: from [192.168.0.204] (helo=two.kliksys.ru) by gate.kliksys.ru with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1Ogb9G-000IfS-6n for FreeBSD-gnats-submit@freebsd.org; Wed, 04 Aug 2010 14:24:34 +0400 Received: from two.kliksys.ru (localhost [127.0.0.1]) by two.kliksys.ru (8.14.4/8.14.4) with ESMTP id o74APU47036942 for ; Wed, 4 Aug 2010 14:25:30 +0400 (MSD) (envelope-from ai@two.kliksys.ru) Received: (from ai@localhost) by two.kliksys.ru (8.14.4/8.14.4/Submit) id o74APUca036941; Wed, 4 Aug 2010 14:25:30 +0400 (MSD) (envelope-from ai) Message-Id: <201008041025.o74APUca036941@two.kliksys.ru> Date: Wed, 4 Aug 2010 14:25:30 +0400 (MSD) From: Artemiev Igor To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/149266: rpi(4) - Comtrol Infinity/Express card driver X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Artemiev Igor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2010 11:10:06 -0000 >Number: 149266 >Category: kern >Synopsis: rpi(4) - Comtrol Infinity/Express card driver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 04 11:10:05 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Artemiev Igor >Release: FreeBSD 8.0-STABLE i386 >Organization: KlikSys >Environment: System: FreeBSD two.kliksys.ru 8.0-STABLE FreeBSD 8.0-STABLE #5: Thu Jul 1 10:26:14 MSD 2010 root@two.kliksys.ru:/usr/obj/usr/src/sys/KLIKSYS i386 >Description: 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 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: