From owner-freebsd-hackers Thu Dec 7 12:12:17 2000 From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 7 12:12:15 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 2396037B400; Thu, 7 Dec 2000 12:12:14 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.0/8.11.0) with ESMTP id eB7KCCs45034; Thu, 7 Dec 2000 13:12:13 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id NAA06519; Thu, 7 Dec 2000 13:12:07 -0700 (MST) Message-Id: <200012072012.NAA06519@harmony.village.org> To: Mike Smith Subject: Re: Support for Syba pci multi i/o card? Cc: John Hay , hackers@FreeBSD.ORG In-reply-to: Your message of "Thu, 07 Dec 2000 01:33:13 PST." <200012070933.eB79XDF00934@mass.osd.bsdi.com> References: <200012070933.eB79XDF00934@mass.osd.bsdi.com> Date: Thu, 07 Dec 2000 13:12:07 -0700 From: Warner Losh Sender: imp@harmony.village.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200012070933.eB79XDF00934@mass.osd.bsdi.com> Mike Smith writes: : > If there aren't any patches I might look at adding support for it. Probably : > only the serial ports, because that is what I need. I would like some advice : > on how to do it though. I had a look at the sio driver and it has support : > for a few pci cards, but it looks like they are single serial port cards : > and not dual or quad. So how should I go about getting the sio probe and : > attach to do more than one serial port per pci card? : : As Warner suggested, you probably want to create a "bus-like" device that : looks to the sio/ppc drivers like an ISA bus, and then forcibly attach : the relevant sio/ppc instances as children of this device. sio doesn't care what bus it attaches to, so long as it can get its resources. ppc still has some isa specific calls in it, but those map to bus generic ones so would just work. I've been holding off working on this until I saw what haked out of the bus unification work that Matt Dodd has been working on. I think he's mostly done, but I wasn't sure enough of that to proceed. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message