STRUCT SDW_AMD_RES(9)
β¨ NAME β¨
struct sdw_amd_res β the SoundWire AMD global resource struct, bestie. That's the vibe. It's typically populated by the DSP driver/Legacy driver, so you're not really the one filling it in β you're the one reading it. Think of it as the group chat's pinned message of everything SoundWire-AMD-related π
(this is from struct sdw_amd_res(9), the kernel API manual, okurrr)
πΈ SYNOPSIS πΈ
struct sdw_amd_res {
u32 acp_rev;
u32 addr;
u32 reg_range;
u32 link_mask;
int count;
void __iomem *mmio_base;
acpi_handle handle;
struct device *parent;
struct device *dev;
struct mutex *acp_lock;
};
literally the whole struct, no edits, no cuts, we keep it π―
π Members π
okay so here's the cast of characters, one by one, no skips:
acp_revβ the acp pci device revision id π«Άaddrβ the acp pci device resource start address, iykykreg_rangeβ the ACP register rangelink_maskβ a bit-wise mask listing the links selected by the DSP driver/legacy driver. bit-wise!! it's a mask!! πcountβ the link count, that's it, that's the whole membermmio_baseβ the mmio base of the SoundWire registers πhandleβ the ACPI parent handleparentβ the parent device (yes, a whole separate member fromdev, don't get it twisted π)devβ the device implementinghwparamsandfreecallbacks β¨acp_lockβ a mutex protecting acp common registers access. mutual exclusion, keeping the common registers safe from chaos fr fr π₯
β οΈ bestie. acp_lock exists for a reason. it's a mutex guarding access to the acp common registers. don't go reading/writing those registers behind its back, okay? that's the whole point of it being a member.
π¦ SEE ALSO π¦
the kernel file lives at ./include/linux/soundwire/sdw_amd.h β that's your first stop π§
and it's giving friend-group, because you should also go meet:
struct sdw_amd_dai_runtime(9)struct amd_sdw_manager(9)struct sdw_amd_acpi_info(9)struct sdw_amd_ctx(9)
all of them cross-referenced, all of them iconic π
okay that's the whole page, mwah π sign-off time: this absolute banger comes to you from ./include/linux/soundwire, dated October 2026, and it's officially struct sdw_amd_res(9) β slay, periodt ππ
π¦ 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