opnsense-src/sys/dev/acpica
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
..
Osd
acpi.c acpi_powerres: D3cold support 2025-08-08 11:42:44 +02:00
acpi_acad.c
acpi_apei.c
acpi_battery.c
acpi_bus_if.m
acpi_button.c
acpi_cmbat.c
acpi_container.c Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
acpi_cpu.c Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
acpi_dock.c
acpi_ec.c
acpi_ged.c acpi: Mark the GED ithread as sleepable 2025-01-24 15:08:09 +00:00
acpi_hpet.c
acpi_hpet.h
acpi_if.m
acpi_isab.c
acpi_lid.c
acpi_package.c
acpi_pci.c acpi_powerres: D3cold support 2025-08-08 11:42:44 +02:00
acpi_pci_link.c
acpi_pcib.c acpica: Extract _OSC parsing to a common file 2024-12-12 18:00:22 +00:00
acpi_pcib_acpi.c newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
acpi_pcib_pci.c
acpi_pcibvar.h acpica: Extract _OSC parsing to a common file 2024-12-12 18:00:22 +00:00
acpi_pcivar.h
acpi_perf.c newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
acpi_powerres.c acpi_powerres: D3cold support 2025-08-08 11:42:44 +02:00
acpi_pxm.c
acpi_quirk.c
acpi_quirks
acpi_resource.c pci: Ignore PCRx devices resources 2025-05-08 19:38:36 +01:00
acpi_smbat.c
acpi_smbus.h
acpi_thermal.c
acpi_throttle.c newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
acpi_timer.c
acpi_video.c newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
acpiio.h
acpivar.h acpi_powerres: D3cold support 2025-08-08 11:42:44 +02:00