On Wed, 30 Jul 2003 12:53:38 -0400 "SMITH,CHAD (HP-FtCollins,ex1)" <[EMAIL PROTECTED]> 
wrote:

|               
| 
|     Hopefully a quick question that hasn't already been answered.
| 
| 
|       How would I enumerate the number of physical USB ports on a given
| Linux machine? I'm running a 2.4.18 IA-64 kernel (RHAT AS2.1),
| usbview-1.0.2, on a machine w/ 2 NEC USB controllers and a grand total of 4
| physical ports exposed by the box.  I have parsed through
| /proc/bus/usb/devices reading the topology on a number of IA-64 machines,
| all of which seem to be reporting the following:

You enumerated the number of physical hub ports correctly below.
The hub controllers report how many ports they can handle, but
not necessarily how many are exposed by the box.  They have no
way of knowing that AFAIK.

|     #  cat /proc/usb/bus/devices
| 
| T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2   *****
| B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
| D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
| P:  Vendor=0000 ProdID=0000 Rev= 0.00
| S:  Product=USB OHCI Root Hub
| S:  SerialNumber=80022000
| C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
| I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
| E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
| T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3  ******
| B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
| D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
| P:  Vendor=0000 ProdID=0000 Rev= 0.00
| S:  Product=USB OHCI Root Hub
| S:  SerialNumber=80023000
| C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
| I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
| E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
| 
| 
|       I read the topographical lines "T: ..."  to mean that this machine
| thinks it has 5 physical ports ( MxCh = 2) + (MxCh = 3 ), this is at least
| what I infer from how hub.c interprets the listing in proc/bus/usb/devices.

That is what the hub controllers report, yes.

| from dmesg: >>>>>>>>>>>>>>
|       hub.c: USB hub found
|       hub.c: 3 ports detected
|       hub.c: USB hub found
|       hub.c: 2 ports detected
| 
|       Also usbview reports 2 USB OHCI Root Hubs w/ 2 & 3 ports
| respectively. This info doesn't match the 4 physical ports that the machine
| has.
| 
|     I thought on IA-32 systems, the BIOS reported actual USB ports, but that
| data doesn't seem to get exported by the IA-64 SMBIOS. 

This is the actual number of USB ports on the hub controllers.
The platform mfr has decided not to expose all of the USB ports.
This isn't the first time that has happened.

|  Do you know where I should go, or who to talk to in order to track down the
| actual physical ports that a machine has? Is it even possible from the USB
| drivers?

You want to know how many ports are exposed?  I don't know of any spec
or info for that... Maybe someone else will.

|      Thank you so much for any reference you might be able to point me to.


--
~Randy


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to