firewire: core: add common inline functions to serialize/deserialize asynchronous...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 28 Apr 2024 07:13:39 +0000 (16:13 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 6 May 2024 02:06:04 +0000 (11:06 +0900)
commit75527d8d9e5ec374b9b0d70c712fec78b4bb693f
treeb1dbf190244b595df5a60792665c210b094dc1b4
parente41b2c1532d6d43945a59e7d844a258b5a82f307
firewire: core: add common inline functions to serialize/deserialize asynchronous packet header

In both core and 1394 OHCI driver, some hard-coded values and macros are
used to serialize/deserialize the header of asynchronous packets. It is
inconvenient to reuse them.

This commit adds some helper inline functions with their tests for the
purpose.

Link: https://lore.kernel.org/r/20240428071347.409202-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/.kunitconfig
drivers/firewire/Kconfig
drivers/firewire/Makefile
drivers/firewire/packet-header-definitions.h [new file with mode: 0644]
drivers/firewire/packet-serdes-test.c [new file with mode: 0644]