From owner-freebsd-current@FreeBSD.ORG Sat Apr 26 01:51:51 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93FDA1065672 for ; Sat, 26 Apr 2008 01:51:51 +0000 (UTC) (envelope-from william88@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by mx1.freebsd.org (Postfix) with ESMTP id 6067C8FC1B for ; Sat, 26 Apr 2008 01:51:51 +0000 (UTC) (envelope-from william88@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so3649367wxd.7 for ; Fri, 25 Apr 2008 18:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; bh=qBVc+zod8wMmtrs3VE2kSOAW0/1VnYw6wf3S01suh0A=; b=AJEm4qik6C0y2ebzpDRFX2aRK0OMIW1/jyM729mRb3AIcC/N5F9qou0OJW8EsZM6cmzQAoJuha1RFcUnUAltZG4tumcB47EjfJWl3c/cW3L4p44smtzHjeWSMGFSz1dGHg+a1C8TsDG2szE1nFjmf7G799VxmsMkQgBydf+2KDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=aBblYJX9kJ9vexUl+MRFUddW/LPaYjwz7lDefm6R6xwbCUehFamIAkK7c6V1mXpD4HQ+dMMr+HUY1DPWylg1OijGMQ3lrmqKTPqMvuUpOiMPL9E6mtwZm8BogwceAmCYskYt80Hu/QWmjZi7RXOdhEnD1488REypF5OM//1Saps= Received: by 10.70.29.14 with SMTP id c14mr5874979wxc.86.1209173149068; Fri, 25 Apr 2008 18:25:49 -0700 (PDT) Received: from localhost ( [189.4.63.233]) by mx.google.com with ESMTPS id h8sm3900300wxd.34.2008.04.25.18.25.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Apr 2008 18:25:48 -0700 (PDT) Date: Fri, 25 Apr 2008 19:25:43 -0300 From: William Grzybowski To: freebsd-current@freebsd.org Message-ID: <20080425221915.GA55463@venon.lost.garden> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="yudcn1FV7Hsu/q59" Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Davicom dm9601 usb nic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2008 01:51:51 -0000 --yudcn1FV7Hsu/q59 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I bought an USB NIC (Davicom DM9601) some days ago and it wasn't working on -current . Searching in the source code I saw the vendor and product code of this device, but it was disabled, probably because no one tested it before. I am attaching a patch made in -current to be applied in /usr/src which solves this "issue". Let me know if mailman ate it :) Thanks, -- William Grzybowski /"\ Jabber: william88@gmail.com \ / ASCII Ribbon Campaign Curitiba/PR - Brazil (GMT -3:00) X against HTML email & vCards ......... / \ --yudcn1FV7Hsu/q59 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="dm9601_usb_nic.patch" --- sys/dev/usb/if_udav.c.orig 2008-04-25 18:44:25.000000000 -0300 +++ sys/dev/usb/if_udav.c 2008-04-25 18:52:50.000000000 -0300 @@ -260,11 +260,8 @@ {{ USB_VENDOR_COREGA, USB_PRODUCT_COREGA_FETHER_USB_TXC }, 0}, /* ShanTou ST268 USB NIC */ {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ST268 }, 0}, -#if 0 - /* DAVICOM DM9601 Generic? */ - /* XXX: The following ids was obtained from the data sheet. */ - {{ 0x0a46, 0x9601 }, 0}, -#endif + /* DAVICOM DM9601 Generic */ + {{ USB_VENDOR_DAVICOM, USB_PRODUCT_DAVICOM_DM9601 }, 0}, }; #define udav_lookup(v, p) ((const struct udav_type *)usb_lookup(udav_devs, v, p)) --- sys/dev/usb/usbdevs.orig 2008-04-25 18:52:43.000000000 -0300 +++ sys/dev/usb/usbdevs 2008-04-25 18:52:46.000000000 -0300 @@ -1079,6 +1079,9 @@ product CYPRESS USBRS232 0x5500 USB-RS232 Interface product CYPRESS SLIM_HUB 0x6560 Slim Hub +/* Davicom Semiconductor products */ +product DAVICOM DM9601 0x9601 DM9601 USB NIC + /* Daisy Technology products */ product DAISY DMC 0x6901 USB MultiMedia Reader --yudcn1FV7Hsu/q59--