Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 PHY extensions

open
nobody
None
5
2002-12-07
2002-12-07
Dan Dennedy
No

My name is Ichikawa, working in Sharp Corporation.

I am an IEEE1394 engineer and appreciate your linux1394
efforts very much. Since I have developed PHY LSI, I
added aPHY functions to linux1394 for PHY evaluation.

I append the changed codes of ieee1394 drivers (based
on 2.4.19 kernel) and libraw1394 (based on 0.9.0).

What I did are,
[driver]
1. added the module parameter "recv_phy_packets" in
ohci1394.
default value is 0.
If you set it to 1, OHCI LINK indicates receiving
PHY packets to
ohci1394.

2. added three requests in raw1394.
RAW1394_REQ_PHYREG_READ
read request of PHY registers
RAW1394_REQ_PHYREG_WRITE
write request of PHY registers
RAW1394_REQ_PHY_SEND
send request of PHY packets.

3. added one indication in raw1394.
RAW1394_REQ_PHY_RECEIVE
indication of incoming PHY packets

[libraw1394]
# As seen in the following "known problems", the change
of libraw1394 is not quite mature.
1. added seven APIs
raw1394_phyreg_read
read a PHY register
raw1394_phyreg_write
write to a PHY register
raw1394_linkon_send
send a linkon packet
raw1394_phy_conf_send
send a PHY configuration packet
raw1394_remote_access_send
send a remote access packet
raw1394_remote_command_send
send a remote command packet
raw1394_set_phy_handler
set phy handler for RAW1394_REG_PHY_RECEIVE in
raw1394_loop_iterate

[known problems]
1. When you set recv_phy_packets to 1, OHCI indicates
an unexpected error PHY packet after bus reset.
Currently testlibraw calls raw1394_loop_iterate after
issuing bus reset. No treatment about external bus reset.

2. OHCI indicates an ack missing after sending any PHY
packet.
Any PHY send API returns when getting an ack missing
rather than getting PHY response.
Currently testlibraw calls raw1394_loop_iterate after
calls of sending PHY packets which expect responses.
No treatment about the case of no response.

Discussion

  • Dan Dennedy
    Dan Dennedy
    2002-12-07

    phy_extension-2.4.19.tar.gz