diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-18 07:00:50 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-23 07:36:28 -0400 |
commit | cc550216ae9a2993ef3973464714dc1a39ab1f86 (patch) | |
tree | 62ffde836c83fe44b7a9edc01d00bcb9ad4f4ad6 /include/linux/firewire-cdev.h | |
parent | bf54e1462b9192fdef7ea9e2bc44fdc16a4b87bc (diff) |
firewire: cdev: add PHY pinging
This extends the FW_CDEV_IOC_SEND_PHY_PACKET ioctl() for /dev/fw* to be
useful for ping time measurements. One application for it would be gap
count optimization in userspace that is based on ping times rather than
hop count. (The latter is implemented in firewire-core itself but is
not applicable to beta PHYs that act as repeater.)
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'include/linux/firewire-cdev.h')
-rw-r--r-- | include/linux/firewire-cdev.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/firewire-cdev.h b/include/linux/firewire-cdev.h index b87409160794..da0fec7e8dc0 100644 --- a/include/linux/firewire-cdev.h +++ b/include/linux/firewire-cdev.h | |||
@@ -294,7 +294,10 @@ struct fw_cdev_event_iso_resource { | |||
294 | * @length: Data length in bytes | 294 | * @length: Data length in bytes |
295 | * @data: Incoming data | 295 | * @data: Incoming data |
296 | * | 296 | * |
297 | * If @type is %FW_CDEV_EVENT_PHY_PACKET_SENT, @length is 0 and @data empty. | 297 | * If @type is %FW_CDEV_EVENT_PHY_PACKET_SENT, @length is 0 and @data empty, |
298 | * except in case of a ping packet: Then, @length is 4, and @data[0] is the | ||
299 | * ping time in 49.152MHz clocks if @rcode is %RCODE_COMPLETE. | ||
300 | * | ||
298 | * If @type is %FW_CDEV_EVENT_PHY_PACKET_RECEIVED, @length is 8 and @data | 301 | * If @type is %FW_CDEV_EVENT_PHY_PACKET_RECEIVED, @length is 8 and @data |
299 | * consists of the two PHY packet quadlets, in host byte order. | 302 | * consists of the two PHY packet quadlets, in host byte order. |
300 | */ | 303 | */ |