> Uh-oh. I sense a user of 2.4 kernel here.
> 
> On 2.4, you still can match I/O ports and find which 
> controller is where on the PCI bus, by reading /proc/ioports 
> and /proc/bus/usb/devices.
> But it's icky. Why don't you just migrate to 2.6 and get /sys?

Your senses are well tuned (Linux version 2.4.19-rmk7-ds3-mw1).  I'd happily
switch to 2.6.  With joy!  If only it would run on my processor (Intel
XScale IXP425).  Technically the kernel will run, but none of the on-board
devices work due to some feet dragging by Intel and MontaVista on getting
some micro-code issues ironed out for 2.6.

/proc/ioports is not real helpful, /proc/iomem and /proc/pci are slightly
more helpful.  From the /proc/bus/usb/devices output (below) I can get to
the bus number (3 or 4) on the topology line (T:), but I don't _think_ this
corresponds to the PCI CardBus number (1 or 5) and it also does not help me
understand which device /dev/usb/ttyUSB0 (for example) is hooked to.  I have
at least 4 if not more usbserial ports available and they tend to bounce
around in their /dev/usb/ttyUSBx mapping.

Are you willing to provide any more guidance?  Or did I just overload you
with information? :-/

root@(none):/proc# cat ioports
00004000-000040ff : PCI CardBus #01
00004400-000044ff : PCI CardBus #01
00004800-000048ff : PCI CardBus #05
00004c00-00004cff : PCI CardBus #05

root@(none):/proc# cat iomem
00000000-07ffffff : System RAM
  00019000-00162f87 : Kernel code
  00162f88-001d021b : Kernel data
48000000-483fffff : PCI CardBus #01
  48000000-48000fff : PCI device 11c1:5802
    48000000-48000fff : usb-ohci
48400000-487fffff : PCI CardBus #05
  48400000-48400fff : PCI device 11c1:5802
    48400000-48400fff : usb-ohci
4b7fc000-4b7fcfff : usb-ohci
4b7fd000-4b7fdfff : usb-ohci
4b7fe000-4bbfdfff : PCI CardBus #05
4bbff000-4bffefff : PCI CardBus #01
50000000-52ffffff : ixp425 Flash
55000000-5500007f : ds17285
57000024-57000027 : lcdbus
57000028-5700002b : ledbus
57000040-5700004f : lcddrv
57000060-5700007f : leddrv
57000080-57000087 : btndrv

root@(none):/proc# cat pci
PCI devices found:
  Bus  0, device   0, function  0:
    Co-processor: PCI device 8086:8500 (Intel Corp.) (rev 1).
      IRQ 28.
      Prefetchable 32 bit memory at 0x0 [0xffffff].
      Prefetchable 32 bit memory at 0x1000000 [0x1ffffff].
      Prefetchable 32 bit memory at 0x2000000 [0x2ffffff].
      Prefetchable 32 bit memory at 0x3000000 [0x3ffffff].
      Prefetchable 32 bit memory at 0xff000000 [0xffffffff].
      I/O at 0xffffff00 [0xffffffff].
  Bus  0, device  13, function  0:
    CardBus bridge: PCI device 104c:ac55 (Texas Instruments) (rev 1).
      IRQ 28.
      Master Capable.  Latency=168.  Max Lat=5.
      Non-prefetchable 32 bit memory at 0x4bfff000 [0x4bffffff].
  Bus  0, device  13, function  1:
    CardBus bridge: PCI device 104c:ac55 (Texas Instruments) (rev 1).
      IRQ 28.
      Master Capable.  Latency=168.  Max Lat=5.
      Non-prefetchable 32 bit memory at 0x4bbfe000 [0x4bbfefff].
  Bus  0, device  15, function  0:
    USB Controller: NEC Corporation USB (rev 67).
      IRQ 28.
      Master Capable.  Latency=128.  Min Gnt=255.Max Lat=255.
      Non-prefetchable 32 bit memory at 0x4b7fd000 [0x4b7fdfff].
  Bus  0, device  15, function  1:
    USB Controller: NEC Corporation USB (#2) (rev 67).
      IRQ 28.
      Master Capable.  Latency=128.  Min Gnt=255.Max Lat=255.
      Non-prefetchable 32 bit memory at 0x4b7fc000 [0x4b7fcfff].
  Bus  1, device   0, function  0:
    USB Controller: PCI device 11c1:5802 (rev 16).
      IRQ 28.
      Master Capable.  No bursts.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x48000000 [0x48000fff].
  Bus  5, device   0, function  0:
    USB Controller: PCI device 11c1:5802 (rev 16).
      IRQ 28.
      Master Capable.  No bursts.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x48400000 [0x48400fff].


And here is /proc/bus/usb/devices:

root@(none):/proc# cat /proc/bus/usb/devices
T:  Bus=04 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=cbb50000
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

****************** The following is the first device I need to map

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=1199 ProdID=0112 Rev= 0.01
S:  Manufacturer=Sierra Wireless
S:  Product=Sierra Wireless AirCard 580
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
E:  Ad=8a(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=0b(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms


T:  Bus=03 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=cbb20000
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

****************** The following is the second device I need to map

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=1199 ProdID=0112 Rev= 0.01
S:  Manufacturer=Sierra Wireless
S:  Product=Sierra Wireless AirCard 580
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
E:  Ad=8a(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=0b(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
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=cb860000
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= 1
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=cb830000
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

Greg




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to