Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Dec 2000 18:03:22 -0700
From:      Warner Losh <imp@village.org>
To:        John Hay <jhay@icomtek.csir.co.za>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Support for Syba pci multi i/o card? 
Message-ID:  <200012070103.SAA83207@harmony.village.org>
In-Reply-To: Your message of "Sat, 06 Dec 2000 21:54:29 %2B0200." <200012061954.eB6JsTD22959@zibbi.icomtek.csir.co.za> 
References:  <200012061954.eB6JsTD22959@zibbi.icomtek.csir.co.za>  

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012070103.SAA83207>