Date: Thu, 10 Jan 2008 03:43:49 GMT From: Gavin Stone-Tolcher <g.stone-tolcher@its.uq.edu.au> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/119515: [PATCH] support for Moxa Technologies CP-104EL PCI Express (4 port serial card) Message-ID: <200801100343.m0A3hn19094213@www.freebsd.org> Resent-Message-ID: <200801100350.m0A3o1u9062021@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 119515
>Category: kern
>Synopsis: [PATCH] support for Moxa Technologies CP-104EL PCI Express (4 port serial card)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 10 03:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Gavin Stone-Tolcher
>Release: 7.0-STABLE
>Organization:
The University of Queensland
>Environment:
FreeBSD gst.its.uq.edu.au 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #16: Thu Jan 10 12:54:53 EST 2008 xxxx@xxx.its.uq.edu.au:/usr/obj/usr/src/sys/xxx i386
>Description:
The Moxa Technologies CP-104EL PCI Express 4 port Serial card
would appear to use the same MOXA controller as their PCI cards
with the addition of a PCI Express to PCI bridge chip:
It uses a different device id to the PCI cards and is not recongnised
by the puc device without adding support.
After adding support gives:
pciconf -lv
pcib3@pci0:32:0:0: class=0x060400 card=0x00000000 chip=0x811110b5 rev=0x21 hdr=0x01
vendor = 'PLX Technology Inc.'
device = 'PEX 8111 PCI Express-to-PCI Bridge'
class = bridge
subclass = PCI-PCI
puc0@pci0:33:0:0: class=0x070002 card=0x10431393 chip=0x10431393 rev=0x00 hdr=0x00
vendor = 'Moxa Technologies Co Ltd'
class = simple comms
subclass = UART
dmesg
pcib2: <ACPI PCI-PCI bridge> irq 20 at device 28.0 on pci0
pci32: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 16 at device 0.0 on pci32
pci33: <ACPI PCI bus> on pcib3
puc0: <Moxa Technologies, Smartio CP-104EL/PCIe> port 0x1040-0x105f,0x1000-0x103f,0x1060-0x106f irq 16 at device 0.0 on pci33
puc0: [FILTER]
uart0: <16950 or compatible> on puc0
uart0: [FILTER]
uart1: <16950 or compatible> on puc0
uart1: [FILTER]
uart2: <16950 or compatible> on puc0
uart2: [FILTER]
uart3: <16950 or compatible> on puc0
uart3: [FILTER]
devinfo -u
pcib2
pci32
pcib3
pci33
puc0
I/O ports:
0x1000-0x103f
0x1040-0x105f
0x1060-0x106f
uart0
puc0 I/O port mapping:
4096-4103
puc0 port numbers:
1
uart1
puc0 I/O port mapping:
4104-4111
puc0 port numbers:
2
uart2
puc0 I/O port mapping:
4112-4119
puc0 port numbers:
3
uart3
puc0 I/O port mapping:
4120-4127
puc0 port numbers:
4
Accessing /dev/cuau0-3 with a modem attached appears to work fine.
>How-To-Repeat:
Install CP-104EL card.
Add puc device to kernel config, build kernel, install kernel, reboot.
dmesg
Jan 9 17:46:17 xxx kernel: pci33: <simple comms, UART> at device 0.0 (no driver attached)
>Fix:
Add:
{ 0x1393, 0x1043, 0xffff, 0,
"Moxa Technologies, Smartio CP-104EL/PCIe",
DEFAULT_RCLK * 8,
PUC_PORT_4S, 0x18, 0, 8,
},
to /usr/src/sys/dev/puc/pucdata.c.
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801100343.m0A3hn19094213>
