How to add a USB vender in sys/dev/usb/usbdevs
tzu-yau Lin
lintzuyau at gmail.com
Fri Mar 13 10:28:22 PDT 2009
On Fri, Mar 13, 2009 at 1:57 AM, Hans Petter Selasky <hselasky at c2i.net>wrote:
>
>
> In FreeBSD-7 you need to load if_udav before the kernel is loaded, else
> ugen
> will grab the device.
>
> Try this:
>
> echo "if_udav_load=YES" >> /boot/loader.conf
>
> cat /boot/loader.conf
>
>
> --HPS
>
Dear HPS and all:
I've found the solution. The problem is due to the vendor ID and product ID
incorrect.
I wrote a patch and now it works. 2 files need to be changed.
It seems working now.
========================= if_udav.c.patch =========================
--- if_udav.c 2009-03-14 00:56:17.000000000 +0800
+++ if_udav.c.new 2009-03-14 00:56:17.000000000 +0800
@@ -260,11 +260,9 @@ static const struct udav_type {
{{ 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))
========================= usbdevs.patch =========================
--- usbdevs 2009-03-14 00:56:25.000000000 +0800
+++ usbdevs.new 2009-03-14 00:56:25.000000000 +0800
@@ -155,7 +155,7 @@ vendor YAMAHA 0x0499 YAMAHA
vendor COMPAQ 0x049f Compaq
vendor HITACHI 0x04a4 Hitachi
vendor ACERP 0x04a5 Acer Peripherals
-vendor DAVICOM 0x04a6 Davicom
+/*vendor DAVICOM 0x04a6 Davicom*/
vendor VISIONEER 0x04a7 Visioneer
vendor CANON 0x04a9 Canon
vendor NIKON 0x04b0 Nikon
@@ -534,6 +534,7 @@ vendor VTECH 0x0f88 VTech
vendor FALCOM 0x0f94 Falcom Wireless Communications GmbH
vendor RIM 0x0fca Research In Motion
vendor DYNASTREAM 0x0fcf Dynastream Innovations
+vendor DAVICOM 0x0fe6 Davicom
vendor QUALCOMM 0x1004 Qualcomm
vendor DESKNOTE 0x1019 Desknote
vendor GIGABYTE 0x1044 GIGABYTE
@@ -1076,6 +1077,10 @@ product CYPRESS FMRADIO 0x1002 FM Radio
product CYPRESS USBRS232 0x5500 USB-RS232 Interface
product CYPRESS SLIM_HUB 0x6560 Slim Hub
+/* Davicom Semiconductor products */
+/*product DAVICOM DM9601 0x9601 DM9601 USB NIC*/
+product DAVICOM DM9601 0x8101 DM9601 USB NIC
+
/* Daisy Technology products */
product DAISY DMC 0x6901 USB MultiMedia Reader
More information about the freebsd-usb
mailing list