Date: Mon, 10 Feb 2003 10:28:00 +0300 (MSK) From: soloviova@stroimontazh.spb.ru To: freebsd-stable@freebsd.org Subject: Moxa Smartio C104H/PCI and pucdata.c Message-ID: <200302100728.h1A7S0s51950@unix1.jinr.dubna.su>
next in thread | raw e-mail | index | archive | help
Hello! I have Moxa Smartio C104H/PCI card and FreeBSD 4.7-STABLE. This card not listed in sys/dev/puc/pucdata.c and it doesn't work by default. I added the following to pucdata.c (diff -uw): linas# diff -uw sys/dev/puc/pucdata_orig.c sys/dev/puc/pucdata.c --- sys/dev/puc/pucdata_orig.c Fri Jan 17 16:08:05 2003 +++ sys/dev/puc/pucdata.c Sun Jan 26 22:39:05 2003 @@ -861,6 +861,18 @@ }, }, + /* Moxa Technologies Co., Ltd. PCI I/O Card 4S RS232/422/485 */ + { "Moxa Technologies, Smartio C104H/PCI", + { 0x1393, 0x1040, 0, 0 }, + { 0xffff, 0xffff, 0, 0, }, + { + { PUC_PORT_TYPE_COM, 0x18, 0x00, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, 0x18, 0x08, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, 0x18, 0x10, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, 0x18, 0x18, COM_FREQ * 8 }, + }, + }, + /* Moxa Technologies Co., Ltd. PCI I/O Card 8S RS232 */ { "Moxa Technologies, C168H/PCI", { 0x1393, 0x1680, 0, 0 }, and now it works. Here is my Moxa related dmesg output: puc0: <Moxa Technologies, Smartio C104H/PCI> port 0xa000-0xa00f,0x9c00-0x9c3f,0x9800-0x987f irq 11 at device 4.0 on pci2 sio2: type 16550A sio3: type 16550A sio4: type 16550A sio5: type 16550A Maybe this will be interesting for someone. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302100728.h1A7S0s51950>