diff options
| author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2026-09-13 19:13:52 +0900 |
|---|---|---|
| committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2026-09-13 19:13:52 +0900 |
| commit | a1cc42e146cb710cc3547225a8ffb46951285a49 (patch) | |
| tree | ec0707e16a0b98c922c964aa97fef387d4dcc44a /rust/kernel | |
| parent | f3a992ff079a02d415ea1c90f1b32091b5f0367c (diff) | |
firewire: ohci: use in_range() macro to detect CSR address ranges
The current implementation handles asynchronous packets sent to the two
CSR address ranges on the local node specially. To decide whether a packet
is destined for either range, the destination offset needs to be checked
according to the IEEE 1394 and 1394 OHCI specifications.
The current implementation uses both conditional and switch statements to
check the offset, which makes the range checks difficult to reuse.
Add two helper functions for the range checks using the in_range() macro.
Link: https://lore.kernel.org/r/20260913101356.156420-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
