File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,6 +261,24 @@ bool pm_timer_is_32_bit(void);
261261 */
262262void acpi_claim_deferred_irqs (void );
263263
264+ /**
265+ * @brief Install the ACPI fixed event handler for the power button.
266+ *
267+ * Sets up uACPI to invoke the local callback when a power button
268+ * event is signalled via SCI. Returns true if the handler was
269+ * installed successfully.
270+ *
271+ * @return true on success, false on failure
272+ */
264273bool power_button_init (void );
265274
266- bool shutdown (void );
275+ /**
276+ * @brief Transition the system into the ACPI S5 (soft off) state.
277+ *
278+ * Prepares for and enters the S5 sleep state using uACPI. If the
279+ * shutdown succeeds, this call does not return. Returns false if
280+ * preparation or entry fails.
281+ *
282+ * @return true if shutdown was initiated, false on failure
283+ */
284+ bool shutdown (void );
You can’t perform that action at this time.
0 commit comments