[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux1394-user
Subject:    Re:get phy register problem
From:       LeoYang <leo_yang_83 () yahoo ! com ! cn>
Date:       2007-07-07 11:12:11
Message-ID: 340411.33889.qm () web15314 ! mail ! cnb ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


LeoYang wrote:
> Hi! I want to get phy register of a node, but I found out that it is
> not mapped to the address space of the node, so I can't get it
 through
> read operation. How can I get it ?

PHY registers are read by sending remote access packets and receiving
remote reply packets, as per IEEE 1394a 4.3.4.4.2 and .3.  You can send
remote access packets for example from userspace with 1394commander
alias firecontrol from Manfred Weihs:

    echo p 0x######## | 1394commander

Replace the "#" by the hexadecimal code of the first quadlet of the
remote access packet.

But reception of the reply is tougher.  AFAIK remote reply packets come
in into ohci1394's asynchronous receive DMA and are discarded there in
dma_rcv_tasklet().  I.e. if you want to see them, you have to add code
there pass them up to upper driver layers or at least to print their
contents.

   
  Thank you very much. I will try that.


LeoYang

       
---------------------------------
ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ 
[Attachment #5 (text/html)]

<div>LeoYang wrote:<BR>&gt; Hi! I want to get phy register of a node, but I found out \
that it is<BR>&gt; not mapped to the address space of the node, so I can't get it<BR> \
through<BR>&gt; read operation. How can I get it ?<BR><BR>PHY registers are read by \
sending remote access packets and receiving<BR>remote reply packets, as per IEEE \
1394a 4.3.4.4.2 and .3.&nbsp; You can send<BR>remote access packets for example from \
userspace with 1394commander<BR>alias firecontrol from Manfred \
Weihs:<BR><BR>&nbsp;&nbsp;&nbsp; echo p 0x######## | 1394commander<BR><BR>Replace the \
"#" by the hexadecimal code of the first quadlet of the<BR>remote access \
packet.<BR><BR>But reception of the reply is tougher.&nbsp; AFAIK remote reply \
packets come<BR>in into ohci1394's asynchronous receive DMA and are discarded there \
in<BR>dma_rcv_tasklet().&nbsp; I.e. if you want to see them, you have to add \
code<BR>there pass them up to upper driver layers or at least to print \
their<BR>contents.<BR></div>   <div>&nbsp;</div>  <div>Thank you very much. I will \
try that.</div><BR><BR><div>LeoYang</div><p>&#32;



      <hr size=1><a href="http://cn.mail.yahoo.com" \
target=blank>ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a> 



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
mailing list Linux1394-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic