From ai@kliksys.ru  Wed Aug  4 11:00:21 2010
Return-Path: <ai@kliksys.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F0298106566C
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <ai@two.kliksys.ru>)
	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 <FreeBSD-gnats-submit@freebsd.org>; 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 <ai@kliksys.ru>
Reply-To: Artemiev Igor <ai@kliksys.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rpi(4) - Comtrol Infinity/Express card driver
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         149266
>Category:       kern
>Synopsis:       [new driver] [patch] 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:  Wed Aug 04 20:44:14 UTC 2010
>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: <RocketPort Express 8, Octa, DB, Selectable> mem 0xfabff000-0xfabfffff,0xfabf8000-0xfabfbfff irq 16 at device 0.0 on pci2
rpi1: <RocketPort Express 8, Octa, DB, Selectable> mem 0xfacff000-0xfacfffff,0xfacf8000-0xfacfbfff irq 16 at device 0.0 on pci4
rpi2: <RocketPort Express 8, Octa, DB, Selectable> 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.<unit>.port.<port number>.mode
or
hw.rpi.<unit>.port.<port number>.mode (loader tunables)

dev.rpi.<unit>.port.<port number>.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:
