Bug 21242

Summary: Koutech PCI dual port serial card patch
Product: Base System Reporter: moride <moride>
Component: kernAssignee: Murray Stokely <murray>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   

Description moride 2000-09-13 03:20:01 UTC
I was make a Koutech PCI dual port serial card patch.

Its card (http://www.koutech.com/ioflex-2S.htm) has Dual 16550 and shared IRQ.

original boot message was

Aug 28 20:34:00 ndm /kernel: pci0: <unknown card> (vendor=0x1407, dev=0x0110) at 20.0 irq 11
Aug 28 20:34:00 ndm /kernel: pci0: <unknown card> (vendor=0x1407, dev=0x0111) at 20.1 irq 11

after this patch

sio0: <Koutech IOFLEX-2S PCI Dual Port Serial> port 0xa800-0xa807 irq 11 at device 20.0 on pci0
sio0: moving to sio2
sio2: type 16550A
sio0: <Koutech IOFLEX-2S PCI Dual Port Serial> port 0xa400-0xa407 irq 11 at device 20.1 on pci0
sio0: moving to sio3
sio3: type 16550A

Fix: sio.c probe table modification.



and kernerl configuration file modification.

# Serial (COM) ports
options         COM_MULTIPORT           #code for some cards with shared IRQs
device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
device          sio1    at isa? port IO_COM2 irq 3
device          sio2    at pci? flags 0x201
device          sio3    at pci? flags 0x201

flags 0x201 meaning:
  shared IRQs and minor number of master port was 2.--4VCkI7XztUMJ5HX4MRP77ZC63ShmgPPcrBxZch8LJYvP3Un8
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- /sys/isa/sio.c.orig  Wed Aug 16 06:05:30 2000
+++ /sys/isa/sio.c       Tue Sep  5 21:49:53 2000
@@ -581,6 +581,8 @@
 static struct pci_ids pci_ids[] = {
        { 0x100812b9, "3COM PCI FaxModem", 0x10 },
        { 0x048011c1, "ActionTec 56k FAX PCI Modem", 0x14 },
+       { 0x01101407, "Koutech IOFLEX-2S PCI Dual Port Serial", 0x10 },
+       { 0x01111407, "Koutech IOFLEX-2S PCI Dual Port Serial", 0x10 },
        { 0x00000000, NULL, 0 }
 };
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2001-08-31 21:16:10 UTC
State Changed
From-To: open->analyzed

Patch committed to -CURRENT, thanks!  It might be too late to get this 
into 4.4, but I will try. 



Comment 2 Murray Stokely freebsd_committer freebsd_triage 2001-08-31 21:16:10 UTC
Responsible Changed
From-To: freebsd-bugs->murray

My MFC reminder.
Comment 3 Murray Stokely freebsd_committer freebsd_triage 2001-09-01 07:00:09 UTC
State Changed
From-To: analyzed->closed

Patch has been applied to -STABLE.  Fix will be in FreeBSD 4.4. 
Thanks!