From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 26 21:02:28 2003 Return-Path: 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 F3A6737B401 for ; Sat, 26 Jul 2003 21:02:27 -0700 (PDT) Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF38B43F93 for ; Sat, 26 Jul 2003 21:02:25 -0700 (PDT) (envelope-from frank@exit.com) Received: from realtime.exit.com (realtime [206.223.0.5]) by tinker.exit.com (8.12.9/8.12.6) with ESMTP id h6R42KaT033703 for ; Sat, 26 Jul 2003 21:02:24 -0700 (PDT) (envelope-from frank@exit.com) Received: from realtime.exit.com (localhost [127.0.0.1]) by realtime.exit.com (8.12.9/8.12.6) with ESMTP id h6R42Kru075337 for ; Sat, 26 Jul 2003 21:02:20 -0700 (PDT) (envelope-from frank@realtime.exit.com) Received: (from frank@localhost) by realtime.exit.com (8.12.9/8.12.9/Submit) id h6R42JN2075336 for hackers@freebsd.org; Sat, 26 Jul 2003 21:02:19 -0700 (PDT) From: Frank Mayhar Message-Id: <200307270402.h6R42JN2075336@realtime.exit.com> To: hackers@freebsd.org Date: Sat, 26 Jul 2003 21:02:19 -0700 (PDT) X-Copyright0: Copyright 2003 Frank Mayhar. All Rights Reserved. X-Copyright1: Permission granted for electronic reproduction as Usenet News or email only. X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Subject: Device driver advice needed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: frank@exit.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2003 04:02:28 -0000 I have become the owner of a Specialix I/O8+ PCI multiport serial card. I originally thought that FreeBSD had a driver for that card, but it turns out that the si(4) driver only supports the older SI/XIO and SX cards. Fortunately, Linux has an I/O8+ driver and I'm in contact with the author, Roger Wolff. While there isn't any documentation available for the I/O8+ itself, there is documentation for the CD1865 chipset it uses. Between that, the Linux source and Roger's apparent willingness to answer questions, I should be able to come up with a working driver without too terribly much effort. I'm targeting 4-stable, since that's the platform for which I need support. I had originally thought I would add the I/O8+ support to the existing si(4) driver, but I just learned that the I/O8+ is sufficiently different from the SX series that Roger wrote two different drivers for Linux. Now I'm strongly leaning toward writing a new driver, call it "sx(4)." For 4-stable, I'll need a new major to be allocated, although I understand that in 5.x devfs eliminates that requirement. Still, for the moment, I'm stuck with 4-stable. I also need some advice as to how to name the devices in /dev. The si(4) driver uses /dev/ttyA* and /dev/cuaA*; perusing MAKEDEV it appears that I might use /dev/ttyG* and /dev/cuaG*. Is there a convention I should use? Finally, I've also come across an SDK for the SX series, with documentation, that includes support for the newer SX+ card. I don't have one of those and therefore can't test the code, but it appears relatively easy to add the support for the newer card to the existing driver. If someone wants to pick it up I would be happy to hand it to them. Peter Wemm, who ported the si(4) driver from BSD/OS would be the logical choice, if he's interested. If I have time and am ambitious, I might add the support myself, but that's a pretty big "if." Suggestions and advice solicited. Theses cheerfully roundfiled. -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/