From owner-freebsd-stable Sun Feb 9 23:27:39 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55A3037B401 for ; Sun, 9 Feb 2003 23:27:37 -0800 (PST) Received: from sunct0.jinr.ru (sunct0.jinr.ru [159.93.17.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87B3643FD7 for ; Sun, 9 Feb 2003 23:26:13 -0800 (PST) (envelope-from linas@unix1.jinr.dubna.su) Received: from unix1.jinr.dubna.su (unix1.jinr.ru [159.93.17.121]) by sunct0.jinr.ru (8.12.2/8.12.2) with ESMTP id h1A7Q9YJ030407 for ; Mon, 10 Feb 2003 10:26:09 +0300 (MSK) Received: (from linas@localhost) by unix1.jinr.dubna.su (8.11.6/8.11.6) id h1A7S0s51950 for freebsd-stable@freebsd.org; Mon, 10 Feb 2003 10:28:00 +0300 (MSK) (envelope-from linas) Message-Id: <200302100728.h1A7S0s51950@unix1.jinr.dubna.su> Subject: Moxa Smartio C104H/PCI and pucdata.c To: freebsd-stable@freebsd.org Date: Mon, 10 Feb 2003 10:28:00 +0300 (MSK) Reply-To: freebsd-stable@freebsd.org From: soloviova@stroimontazh.spb.ru X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: 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