Re: USB_VERBOSE and vendor-/productnames

2010-10-18 Thread Alexander Best
On Tue Sep 14 10, Hans Petter Selasky wrote:
 On Tuesday 14 September 2010 02:20:17 Alexander Best wrote:
  hi there,
  
  a lot of people report issues where usbconfig doesn't show a vendor or
  device name, although an usbdevs entry exists. i found a few replies to
  those reports by hps@ stating that USB_VERBOSE needs to be enabled.
  
  could anybody explain why? if that option needs to be enabled in order to
  see vendor and device names in usbconfig how come that even without it i
  see most of the vendor and device names with usbconfig:
 
 Hi,
 
 The reason the option is not default, is that the verbose database consume a 
 couple of hundred kilobytes.

does usbdevs actually get compiled into the kernel if USB_VERBOSE has been
defined? that would explain the extra size. why not do it like the pci
database? simply add usbdevs to /usr/share/misc and look for entries in that
file for each request.

cheers.
alex

 
  
  ugen0.1: UHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
  pwr=SAVE ugen1.1: UHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=FULL
  (12Mbps) pwr=SAVE ugen2.1: UHCI root HUB Intel at usbus2, cfg=0 md=HOST
  spd=FULL (12Mbps) pwr=SAVE ugen3.1: EHCI root HUB Intel at usbus3, cfg=0
  md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.1: UHCI root HUB Intel at
  usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen5.1: UHCI root HUB
  Intel at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen6.1: UHCI
  root HUB Intel at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
  ugen7.1: EHCI root HUB Intel at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps)
  pwr=SAVE ugen3.2: product 0x2514 vendor 0x0424 at usbus3, cfg=0 md=HOST
  spd=HIGH (480Mbps) pwr=SAVE ugen1.2: Dell USB Keyboard Dell at usbus1,
  cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.3: Razer 1600dpi Mouse
  Razer at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
  
  my guess would be that these devices are missing the iManufacturer and/or
  iProduct string, but that's just a wild guess.
  
  if that is the case wouldn't it be possible to check for a usbdevs entry in
  case one of those strings don't exist and if there's an entry in usbdevs
  use it?
  
  i think the option USB_VERBOSE is not really accurate in this particular
  case. people who want usbconfig to output the vendor and product name
  actually want less verbosity (i.e. no product/vendor hex ids).
 
 I'm not sure if compiling this information into usbdevs will be any better.
 
 --HPS

-- 
a13x
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB_VERBOSE and vendor-/productnames

2010-10-18 Thread Alexander Best
On Thu Sep 16 10, Nick Hibma wrote:
 From:
 
 http://www.linux-usb.org/usb-ids.html
 
 The contents of the database and the generated files can be distributed 
 under the terms of either the GNU General Public License (version 2 or later) 
 or of the 3-clause BSD License.
 
 Do you want me make this list available in our source tree?

any progress on this task? ;)

cheers.
alex

 
 Steps:
 1) Write a script to download it and convert it to our usbdevs*.h files.
 2) Match the entries with our own and add usbdevs*_legacy.h for FBSD8 
 systems, so recompilation of existing drivers is straightforward.
 3) Test. Review. Bikeshed. Rinse. Repeat.
 4) Commit.
 
 Nick
 
 
 On 14 Sep 2010, at 22:31, Hans Petter Selasky wrote:
 
  On Tuesday 14 September 2010 22:25:46 Alexander Best wrote:
  also i've been wondering why freebsd keeps its own set of a usb device db?
  the databse at http://www.linux-usb.org/usb-ids.html seems very active.
  can't we just use a script to create usbdevs from that db? that's how pci
  ids are mapped to vendors/products on freebsd (see
  http://www.mail-archive.com/freebsd-curr...@freebsd.org/msg124948.html).
  
  If we don't have to GPL the resulting .h and .c files.
  
  --HPS
  ___
  freebsd-usb@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-usb
  To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
 

-- 
a13x
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB_VERBOSE and vendor-/productnames

2010-09-16 Thread Nick Hibma
From:

http://www.linux-usb.org/usb-ids.html

The contents of the database and the generated files can be distributed under 
the terms of either the GNU General Public License (version 2 or later) or of 
the 3-clause BSD License.

Do you want me make this list available in our source tree?

Steps:
1) Write a script to download it and convert it to our usbdevs*.h files.
2) Match the entries with our own and add usbdevs*_legacy.h for FBSD8 systems, 
so recompilation of existing drivers is straightforward.
3) Test. Review. Bikeshed. Rinse. Repeat.
4) Commit.

Nick


On 14 Sep 2010, at 22:31, Hans Petter Selasky wrote:

 On Tuesday 14 September 2010 22:25:46 Alexander Best wrote:
 also i've been wondering why freebsd keeps its own set of a usb device db?
 the databse at http://www.linux-usb.org/usb-ids.html seems very active.
 can't we just use a script to create usbdevs from that db? that's how pci
 ids are mapped to vendors/products on freebsd (see
 http://www.mail-archive.com/freebsd-curr...@freebsd.org/msg124948.html).
 
 If we don't have to GPL the resulting .h and .c files.
 
 --HPS
 ___
 freebsd-usb@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-usb
 To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB_VERBOSE and vendor-/productnames

2010-09-14 Thread Hans Petter Selasky
On Tuesday 14 September 2010 02:20:17 Alexander Best wrote:
 hi there,
 
 a lot of people report issues where usbconfig doesn't show a vendor or
 device name, although an usbdevs entry exists. i found a few replies to
 those reports by hps@ stating that USB_VERBOSE needs to be enabled.
 
 could anybody explain why? if that option needs to be enabled in order to
 see vendor and device names in usbconfig how come that even without it i
 see most of the vendor and device names with usbconfig:

Hi,

The reason the option is not default, is that the verbose database consume a 
couple of hundred kilobytes.

 
 ugen0.1: UHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
 pwr=SAVE ugen1.1: UHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=FULL
 (12Mbps) pwr=SAVE ugen2.1: UHCI root HUB Intel at usbus2, cfg=0 md=HOST
 spd=FULL (12Mbps) pwr=SAVE ugen3.1: EHCI root HUB Intel at usbus3, cfg=0
 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.1: UHCI root HUB Intel at
 usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen5.1: UHCI root HUB
 Intel at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen6.1: UHCI
 root HUB Intel at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
 ugen7.1: EHCI root HUB Intel at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps)
 pwr=SAVE ugen3.2: product 0x2514 vendor 0x0424 at usbus3, cfg=0 md=HOST
 spd=HIGH (480Mbps) pwr=SAVE ugen1.2: Dell USB Keyboard Dell at usbus1,
 cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.3: Razer 1600dpi Mouse
 Razer at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
 
 my guess would be that these devices are missing the iManufacturer and/or
 iProduct string, but that's just a wild guess.
 
 if that is the case wouldn't it be possible to check for a usbdevs entry in
 case one of those strings don't exist and if there's an entry in usbdevs
 use it?
 
 i think the option USB_VERBOSE is not really accurate in this particular
 case. people who want usbconfig to output the vendor and product name
 actually want less verbosity (i.e. no product/vendor hex ids).

I'm not sure if compiling this information into usbdevs will be any better.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB_VERBOSE and vendor-/productnames

2010-09-14 Thread Hans Petter Selasky
On Tuesday 14 September 2010 22:25:46 Alexander Best wrote:
 also i've been wondering why freebsd keeps its own set of a usb device db?
 the databse at http://www.linux-usb.org/usb-ids.html seems very active.
 can't we just use a script to create usbdevs from that db? that's how pci
 ids are mapped to vendors/products on freebsd (see
 http://www.mail-archive.com/freebsd-curr...@freebsd.org/msg124948.html).

If we don't have to GPL the resulting .h and .c files.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB_VERBOSE and vendor-/productnames

2010-09-14 Thread Alexander Best
On Tue Sep 14 10, Hans Petter Selasky wrote:
 On Tuesday 14 September 2010 22:25:46 Alexander Best wrote:
  also i've been wondering why freebsd keeps its own set of a usb device db?
  the databse at http://www.linux-usb.org/usb-ids.html seems very active.
  can't we just use a script to create usbdevs from that db? that's how pci
  ids are mapped to vendors/products on freebsd (see
  http://www.mail-archive.com/freebsd-curr...@freebsd.org/msg124948.html).
 
 If we don't have to GPL the resulting .h and .c files.

The contents of the database and the generated files can be distributed under
the terms of either the GNU General Public License (version 2 or later) or of
the 3-clause BSD License.

:)

 
 --HPS

-- 
a13x
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB_VERBOSE and vendor-/productnames

2010-09-14 Thread Marcin Cieslak
Dnia 14.09.2010 Alexander Best arun...@freebsd.org napisaƂ/a:
  http://www.mail-archive.com/freebsd-curr...@freebsd.org/msg124948.html).
 
 If we don't have to GPL the resulting .h and .c files.

 The contents of the database and the generated files can be distributed under
 the terms of either the GNU General Public License (version 2 or later) or of
 the 3-clause BSD License.

Which constitutes probably a legal bullshit, since work created by a computer
(not a human author) cannot by copyrighted. Byt well.

--Marcin

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org