Date: Fri, 25 Apr 2008 19:25:43 -0300 From: William Grzybowski <william88@gmail.com> To: freebsd-current@freebsd.org Subject: Davicom dm9601 usb nic Message-ID: <20080425221915.GA55463@venon.lost.garden>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
......... / \
[-- Attachment #2 --]
--- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080425221915.GA55463>
