logic_pio_trans_hwaddr(9)
β¨ NAME β¨
logic_pio_trans_hwaddr β bestie, this is the little function that takes a hardware address and translates it into a logical PIO address π
(it's a section 9 kernel API manual page, iykyk π«Ά).
πΈ SYNOPSIS πΈ
unsigned long logic_pio_trans_hwaddr (const struct fwnode_handle *fwnode
, resource_size_t addr , resource_size_t size );
That's the whole vibe β¨ β one function, three args, one unsigned long coming back to you π
π¦ ARGUMENTS π¦
fwnodeβ the FW node reference for the host, like the little fingerprint that says which host we're talking about πaddrβ the host-relative HW address, aka the address as that host sees it πsizeβ the size you want translated, periodt π
π DESCRIPTION π
The way this works is so straightforward it's giving main character energy π: it returns the Logical PIO value if it's successful π, and ~0UL otherwise π no in-between, no drama, fr fr.
Heads up: ~0UL is the "nope, didn't work" answer here β if you see that come back, the translation did not slay π
β SEE ALSO β
Kernel file ./lib/logic_pio.c, plus these absolute icons, go check them out bestie π:
logic_pio_register_range(9)logic_pio_unregister_range(9)find_io_range_by_fwnode(9)logic_pio_to_hwaddr(9)
That's the whole page, bestie π«Ά β brought to you from ./lib, dated October 2026, and honestly? iconic πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms