opnsense-src/sys/compat
Aymeric Wibo 84bbfc32a3
acpi_powerres: D3cold support
Cherry-pick commit 0b76c0a from ACPICA (actypes: Distinguish between
D3hot/cold, and default `ACPI_STATE_D3` to D3cold).

The same distinction is made between `PCI_POWERSTATE_D3_HOT` and
`PCI_POWERSTATE_D3_COLD`, as they're defined by ACPI (and are asserted
to be the same).

D3cold is essentially the same as D3hot except the power resources are
turned off.  Add support for D3cold to `acpi_pwr_switch_consumer`.

`acpi_d_state_to_str` replaces the `printf("D%d", d_state)` pattern,
allowing for "D3hot" and "D3cold" strings to be printed instead of just
"D3".

Reviewed by:	markj, ziaee, mckusick (mentor)
Approved by:	markj, mckusick (mentor)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D48384
2025-08-08 11:42:44 +02:00
..
freebsd32 sysent: regen for _exit(2) normalization 2025-08-08 10:30:16 +01:00
ia32 sysent: retire unused SV_IA32 2025-06-03 23:59:30 +01:00
lindebugfs lindebugfs.c: Fix possible NULL dereference 2025-06-23 23:43:51 +02:00
linprocfs linprocfs: Continue on error when reading process limits 2025-07-26 11:12:38 -06:00
linsysfs linsysfs(5): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743 2023-08-18 13:12:02 +03:00
linux kern: add a new ucred flag for groups having been set 2025-07-31 19:50:47 -05:00
linuxkpi acpi_powerres: D3cold support 2025-08-08 11:42:44 +02:00
x86bios Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00