From owner-freebsd-hackers Wed Dec 6 17: 3:30 2000 From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 6 17:03:28 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (unknown [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 1C79837B400 for ; Wed, 6 Dec 2000 17:03:27 -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 eB713Ps38233; Wed, 6 Dec 2000 18:03:26 -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 SAA83207; Wed, 6 Dec 2000 18:03:22 -0700 (MST) Message-Id: <200012070103.SAA83207@harmony.village.org> To: John Hay Subject: Re: Support for Syba pci multi i/o card? Cc: hackers@FreeBSD.ORG In-reply-to: Your message of "Sat, 06 Dec 2000 21:54:29 +0200." <200012061954.eB6JsTD22959@zibbi.icomtek.csir.co.za> References: <200012061954.eB6JsTD22959@zibbi.icomtek.csir.co.za> Date: Wed, 06 Dec 2000 18:03:22 -0700 From: Warner Losh Sender: imp@harmony.village.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200012061954.eB6JsTD22959@zibbi.icomtek.csir.co.za> John Hay writes: : Does anyone know of patches or something to support these cards? The cards : that I have is by Syba Tech and is a 4 x serial and 2 x parallel port pci : card. It has 2 winbond W83877TF 2 x serial + 1 x parallel port "superio" : chips and some pci glue. The card has 0x400 bytes of io space, as big as : the isa io area. Also from what I understand they all share one interrupt. I have some really bad patches for a similar card. : 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? I'm not sure this is the right way to do that. I believe that the right way is to create an attachment for this that attaches N devices. I had some preliminary code that did this, but it has decayed too much so I lost it. Basically: pci0 --- multi-io0 +--- sio0 +--- sio1 +--- sio2 +--- sio3 +--- ppc0 is what I had in mind. Multi-io would register an interrupt and dispatch it to the interrupt to each of the sub devices as necessary. There are other cards like this that also have an extra interrupt register that says which sub device interrupted. I also think that the isa sio multi-port cards should be handled in a similar way. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message