aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/core.h')
-rw-r--r--drivers/firewire/core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h
index 3102b6b63438..28621e44b111 100644
--- a/drivers/firewire/core.h
+++ b/drivers/firewire/core.h
@@ -234,4 +234,9 @@ void fw_fill_response(struct fw_packet *response, u32 *request_header,
234void fw_send_phy_config(struct fw_card *card, 234void fw_send_phy_config(struct fw_card *card,
235 int node_id, int generation, int gap_count); 235 int node_id, int generation, int gap_count);
236 236
237static inline bool is_ping_packet(u32 *data)
238{
239 return (data[0] & 0xc0ffffff) == 0 && ~data[0] == data[1];
240}
241
237#endif /* _FIREWIRE_CORE_H */ 242#endif /* _FIREWIRE_CORE_H */