New udav(4) vendor diff

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

New udav(4) vendor diff

Loganaden Velvindron-3
I added it to the usbdevs file, and
modified the device probe code in if_udav.c

Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.553
diff -u -p -r1.553 usbdevs
--- usbdevs 29 Aug 2011 10:51:18 -0000 1.553
+++ usbdevs 3 Sep 2011 07:26:16 -0000
@@ -431,6 +431,7 @@ vendor CONCEPTRONIC 0x0d8e Conceptronic
 vendor MSI 0x0db0 Micro Star International
 vendor ELCON 0x0db7 ELCON Systemtechnik
 vendor UNKNOWN5 0x0dcd Unknown Vendor
+vendor UNKNOWN6 0x01e1 Unknown Vendor
 vendor SITECOMEU 0x0df6 Sitecom Europe
 vendor MOBILEACTION 0x0df7 Mobile Action
 vendor AMIGO 0x0e0b Amigo Technology
@@ -3787,6 +3788,9 @@ product UNKNOWN4 DM9601 0x8101 DM9601
 
 /* Unknown vendor 5 */
 product UNKNOWN5 NF_RIC 0x0001 NF RIC
+
+/* Unknown vendor 6 */
+product UNKNOWN6 DM9601 0x9601 DM9601
 
 /* U.S. Robotics products */
 product USR USR1120 0x00eb USR1120 WLAN
Index: if_udav.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_udav.c,v
retrieving revision 1.57
diff -u -p -r1.57 if_udav.c
--- if_udav.c 3 Jul 2011 15:47:17 -0000 1.57
+++ if_udav.c 3 Sep 2011 07:26:16 -0000
@@ -167,7 +167,8 @@ static const struct udav_type {
  {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ST268 }, 0 },
  {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ZT6688 }, 0 },
  {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ADM8515 }, 0 },
- {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 }
+ {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 },
+ {{ USB_VENDOR_UNKNOWN6, USB_PRODUCT_UNKNOWN6_DM9601 }, 0 }
 };
 #define udav_lookup(v, p) ((struct udav_type *)usb_lookup(udav_devs, v, p))

Reply | Threaded
Open this post in threaded view
|

Re: New udav(4) vendor diff

Loganaden Velvindron-3
I forgot about the dmesg:
udav0 at uhub3 port 2 "DM9601 USB NIC DM9601 USB NIC" rev 1.10/1.01 addr 2
amphy0 at udav0 phy 0: DM9601 10/100 PHY, rev. 0

usbdevs -v

 port 2 addr 2: full speed, power 144 mA, config 1, DM9601 USB NIC(0x9601), DM9601 USB NIC(0x01e1), rev 1.01, iSerialNumber 9601

Reply | Threaded
Open this post in threaded view
|

Re: New udav(4) vendor diff

Jonathan Gray
In reply to this post by Loganaden Velvindron-3
The vendor part should be sorted by number, I fixed that part
up and committed, thanks.

On Sat, Sep 03, 2011 at 03:41:57AM -0400, Loganaden Velvindron wrote:

> I added it to the usbdevs file, and
> modified the device probe code in if_udav.c
>
> Index: usbdevs
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/usbdevs,v
> retrieving revision 1.553
> diff -u -p -r1.553 usbdevs
> --- usbdevs 29 Aug 2011 10:51:18 -0000 1.553
> +++ usbdevs 3 Sep 2011 07:26:16 -0000
> @@ -431,6 +431,7 @@ vendor CONCEPTRONIC 0x0d8e Conceptronic
>  vendor MSI 0x0db0 Micro Star International
>  vendor ELCON 0x0db7 ELCON Systemtechnik
>  vendor UNKNOWN5 0x0dcd Unknown Vendor
> +vendor UNKNOWN6 0x01e1 Unknown Vendor
>  vendor SITECOMEU 0x0df6 Sitecom Europe
>  vendor MOBILEACTION 0x0df7 Mobile Action
>  vendor AMIGO 0x0e0b Amigo Technology
> @@ -3787,6 +3788,9 @@ product UNKNOWN4 DM9601 0x8101 DM9601
>  
>  /* Unknown vendor 5 */
>  product UNKNOWN5 NF_RIC 0x0001 NF RIC
> +
> +/* Unknown vendor 6 */
> +product UNKNOWN6 DM9601 0x9601 DM9601
>  
>  /* U.S. Robotics products */
>  product USR USR1120 0x00eb USR1120 WLAN
> Index: if_udav.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/if_udav.c,v
> retrieving revision 1.57
> diff -u -p -r1.57 if_udav.c
> --- if_udav.c 3 Jul 2011 15:47:17 -0000 1.57
> +++ if_udav.c 3 Sep 2011 07:26:16 -0000
> @@ -167,7 +167,8 @@ static const struct udav_type {
>   {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ST268 }, 0 },
>   {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ZT6688 }, 0 },
>   {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ADM8515 }, 0 },
> - {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 }
> + {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 },
> + {{ USB_VENDOR_UNKNOWN6, USB_PRODUCT_UNKNOWN6_DM9601 }, 0 }
>  };
>  #define udav_lookup(v, p) ((struct udav_type *)usb_lookup(udav_devs, v, p))