aboutsummaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread
diff options
context:
space:
mode:
authorKevin Bowling <kbowling@FreeBSD.org>2026-08-30 08:18:10 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2026-08-30 12:39:41 +0000
commitc4e24e95c3f905b817d4bfc6e93457eb297bfa4b (patch)
tree43f57ef106cab21942ca9fc62bfdfe07b831bf05 /lib/libc_r/uthread
parent9f5cfe625e9e8153599105458650e5fcecfd6281 (diff)
pci: Expose PME support by power stateHEADmain
The presence of the PCI power management capability does not imply that a function can signal PME# from every power state. Drivers which advertise wake based only on pci_has_pm() can consequently expose wake modes that cannot work. Add pci_has_pme() to query the PME_Support bitmap for a specific state. Use it to implement LinuxKPI pci_pme_capable(), removing its duplicate PME_Support decoder. Validated the helper against PCI PMC capability values from 82571EB, 82573L, 82579LM, I210, I225, and I226-V controllers. The 82571 and 82573 reported PMC 0xc822, while the I226-V reported 0xc823. In both values, bits 15, 14, and 11 advertise PME from D3cold, D3hot, and D0; the low-bit difference is only the PM capability version. MFC after: 2 weeks Sponsored by: BBOX.io
Diffstat (limited to 'lib/libc_r/uthread')
0 files changed, 0 insertions, 0 deletions