firewire: core: add common macro to serialize/deserialize isochronous packet header
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 28 Apr 2024 07:13:45 +0000 (16:13 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 6 May 2024 02:06:05 +0000 (11:06 +0900)
commit6503df36128b56685367172ebb7b0765c466f485
tree868d51feae226647db398e29e38e513efa9b2e20
parentc5deb01849688fd5d9dd5113e81a7426b78bf02c
firewire: core: add common macro to serialize/deserialize isochronous packet header

The packet for Asynchronous Streaming Packet includes the same header
fields as the isochronous packet has. It is helpful to have some helper
functions to serialize/deserialize them.

This commit adds such helper functions with their test.

Link: https://lore.kernel.org/r/20240428071347.409202-8-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/packet-header-definitions.h
drivers/firewire/packet-serdes-test.c