firewire: ohci: add static inline functions to deserialize for Self-ID DMA operation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 2 Jul 2024 22:20:32 +0000 (07:20 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 3 Jul 2024 23:12:48 +0000 (08:12 +0900)
commit7a14f78d70dd9fde77275a3cc9427de862969c4c
treef7376239718e487a9a13a401426920639f46db1e
parentc538b06de6ce2966f72a7cf3b63e46e2f604a49e
firewire: ohci: add static inline functions to deserialize for Self-ID DMA operation

The SelfI-ID is one type of DMAs defined in 1394 OHCI specification. It is
operated by two registers, one interrupt, and has one format of buffer.

This commit adds some static inline functions to deserialize the data in
the buffer and registers. Some KUnit tests are also added to check their
reliability.

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