On Monday 03 July 2006 10:15 am, Vivek Dharmadhikari wrote:
> Resending as i did not see the mail that i earlier sent... 
> 
> Hello All 
> I modified the the show_async() in ehci-dbg.c to print the first few dwords
> of the qh and qtds in addition to default output.

You mean, like the dbg_qh() and dbg_qtd() routines?  One problem with
doing that is that those routines really should be using seq_printf
and handling more than a single page of output ...


> A sample output is shown below.  
> qh dword1 0x42002102 dword2 0x40000000 current 0x1595180 next 0x1595180 alt 
> 0x9
>        token 0x80008c01  
> qtd dword1 0x1595180 dword2 0x1 token 0x2008c80 
> qh/a1610100 dev2 hs ep1 42002102 40000000 (80008c01 data1 nak4) 
> a1595120 out len=512 02008c80 urb 81612500 
> 
> I assume that the line begining with qh/... indicates the details of queuehead
> and the line below the qh/... indicats the qtd currently linked as indicated 
> by
> the current qtd pointer to qh.

You were the one who modified the code.  Did you change it?  The
original code dumped the entire QTD list for each QH, one entry per
line, exposing as much data as practical without routinely exceeding
the silly one-page limit.


> I was expecting that the current qtd pointer field 
> (0x1595180) in the qh would match the the address of qtd(a1595120). 
> Appearently
> the two addresses do not match. Is this expected ?    

Why bother wasting output buffer space with useful information?  No,
that's not shown.

 
> The value of the dword1 of qh is 0x42002102 which indicates that the H bit
> is off. I was expecting one more qh whose H bit was 1 which is not reported 
> by the show_async(). Is it due to bug in show_async() ? But the Section
> 4.8.2 of ecci specs says that software must keep one queue head in async
> schedule with its H-bit set to one. What are the consequences if the there
> is no queue head with H-bit set to 1 ?     

That would be the "token" which is already decoded.  The async head isn't
normally shown, since it'll always be empty.  UTSL ...


----

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to