HomeFreeBSD

LinuxKPI: Add pcie_capability_clear_and_set_word() function

Description

LinuxKPI: Add pcie_capability_clear_and_set_word() function

It does a Read-Modify-Write operation using clear and set bitmasks on
PCI Express Capability Register at pos. As certain PCI Express
Capability Registers are accessed concurrently in RMW fashion, hence
require locking which is handled transparently to the caller.

Sponsored by: Serenity CyberSecurity, LLC
Reviewed by: manu, bz
MFC after: 1 week
MFC TODO: Move pcie_cap_lock to bottom to preserve KBI compatibility
Differential Revision: https://reviews.freebsd.org/D42821

Details

Provenance
wulfAuthored on Dec 24 2023, 8:20 AM
Reviewer
manu
Differential Revision
D42821: LinuxKPI: Add pcie_capability_clear_and_set_word() function
Parents
rGb8c88a617501: LinuxKPI: Add x86_vendor field to struct cpuinfo_x86
Branches
Unknown
Tags
Unknown