Skip to content

Commit b2ee40f

Browse files
acpi shutdown support
1 parent f207a96 commit b2ee40f

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

include/acpi.h

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,24 @@ bool pm_timer_is_32_bit(void);
261261
*/
262262
void 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+
*/
264273
bool 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);

0 commit comments

Comments
 (0)