opnsense-src/share
Kevin Bowling 61272c8a2a pci: Expose PME support by power state
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.

Sponsored by:	BBOX.io

(cherry picked from commit c4e24e95c3f905b817d4bfc6e93457eb297bfa4b)
2026-09-23 12:01:02 +02:00
..
colldef
colldef_unicode locale: make install Unicode 17.0.0/CLDR 48 2025-12-13 04:14:46 +00:00
ctypedef locale: make install Unicode 17.0.0/CLDR 48 2025-12-13 04:14:46 +00:00
dict share/dict/web2: Sort 2026-03-11 12:46:55 -04:00
doc pkgbase: Move all of ATF into the atf package 2026-04-07 15:52:08 +00:00
dtrace
examples sound examples: Add mmap example 2026-04-21 11:37:57 +02:00
firmwares iwmfw(4): fix spelling of the iwm8000C firmware. 2025-12-15 18:09:21 +00:00
i18n
keys Add backup pkgbase signing key held by security-officer. 2025-11-22 11:15:42 -08:00
man pci: Expose PME support by power state 2026-09-23 12:01:02 +02:00
misc usb_vendors: update to 2025.12.13 2026-02-19 10:12:34 +01:00
mk bsd.linker.mk: Sort list of linker features 2026-04-24 11:44:03 -04:00
monetdef locale: make posix 2025-12-13 04:13:31 +00:00
monetdef_unicode locale: make install Unicode 17.0.0/CLDR 48 2025-12-13 04:14:46 +00:00
msgdef
msgdef_unicode locale: make install 2025-12-13 04:13:56 +00:00
numericdef
numericdef_unicode locale: make install Unicode 17.0.0/CLDR 48 2025-12-13 04:14:46 +00:00
security
sendmail share/sendmail: Use consistent ordering when processing files 2025-09-04 18:06:28 +00:00
skel etc: OPNsense customisations 2026-06-19 09:46:54 +02:00
snmp
syscons INDEX.fonts: Minor maintenance 2026-02-05 16:50:11 -05:00
tabset
termcap termcap: fix screen entry standout mode (so/se) capabilities 2026-04-28 07:19:25 -07:00
tests
timedef
vt us.intl.acc.kbd: add it to Makefile 2026-04-17 23:23:29 -03:00
zoneinfo zoneinfo: don't install version 2025-05-22 01:17:49 +08:00
Makefile
Makefile.inc