From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 27 22:00:09 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E39F1065693 for ; Sun, 27 Dec 2009 22:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6243E8FC17 for ; Sun, 27 Dec 2009 22:00:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBRM09CP022871 for ; Sun, 27 Dec 2009 22:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBRM0916022870; Sun, 27 Dec 2009 22:00:09 GMT (envelope-from gnats) Resent-Date: Sun, 27 Dec 2009 22:00:09 GMT Resent-Message-Id: <200912272200.nBRM0916022870@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Markelov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3070A1065676 for ; Sun, 27 Dec 2009 21:56:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 073098FC12 for ; Sun, 27 Dec 2009 21:56:15 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBRLuES7019726 for ; Sun, 27 Dec 2009 21:56:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBRLuExC019718; Sun, 27 Dec 2009 21:56:14 GMT (envelope-from nobody) Message-Id: <200912272156.nBRLuExC019718@www.freebsd.org> Date: Sun, 27 Dec 2009 21:56:14 GMT From: Alex Markelov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/142085: Few lines to pucdata.c to support for Teltonika PCI/G10 SMS modem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 22:00:09 -0000 >Number: 142085 >Category: misc >Synopsis: Few lines to pucdata.c to support for Teltonika PCI/G10 SMS modem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 27 22:00:09 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alex Markelov >Release: 7.2-stable >Organization: makeITsimple >Environment: FreeBSD daemon.localdomain 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri Dec 11 01:16:26 UTC 2009 root@daemon.localdomain:/usr/obj/usr/src/sys/NANOBUILD_PC i386 >Description: I have purchased Teltonika PCI/G10 SMS modem (http://www.teltonika.lt/en/pages/view/?id=8). It's based on NetMos NM9820 chipset, but FreeBSD doesn't have the device information in pucdata.c hence you can't see the device and its serial ports. I added the device information (see the attached diff) to pucdata.c, rebuilt kernel and was able to get the device working on 7.2-stable. I posted details to my wiki page http://markelov.org/wiki/index.php?title=Teltonika_ModemPCI/G10_under_FreeBSD >How-To-Repeat: It's a feature request rather than a bug report. Basically, if you have the modem handy, you can try and see that without the extra lines in pucdata.c you can't see the device and none of its serial ports is available to work with. >Fix: --- /usr/src/sys/dev/puc/pucdata.c 2009-12-10 06:24:16.000000000 +0000 +++ /root/pucdata.c 2009-12-17 07:01:38.000000000 +0000 @@ -749,6 +749,12 @@ * * uart(4) will claim this device. */ + { 0x9710, 0x9820, 0x1000, 1, + "NetMos NM9820 Multi-I/O controller", + DEFAULT_RCLK, + PUC_PORT_2S, 0x10, 4, 0, + }, + { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 based 1-port serial", DEFAULT_RCLK, Patch attached with submission follows: --- /usr/src/sys/dev/puc/pucdata.c 2009-12-10 06:24:16.000000000 +0000 +++ /root/pucdata.c 2009-12-17 07:01:38.000000000 +0000 @@ -749,6 +749,12 @@ * * uart(4) will claim this device. */ + { 0x9710, 0x9820, 0x1000, 1, + "NetMos NM9820 Multi-I/O controller", + DEFAULT_RCLK, + PUC_PORT_2S, 0x10, 4, 0, + }, + { 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 based 1-port serial", DEFAULT_RCLK, >Release-Note: >Audit-Trail: >Unformatted: