@@ -215,20 +215,20 @@ registers, clocks, memory etc.
215
215
216
216
The four device power states:
217
217
218
- :code: `DEVICE_PM_ACTIVE_STATE `
218
+ :code: `PM_DEVICE_ACTIVE_STATE `
219
219
220
220
Normal operation of the device. All device context is retained.
221
221
222
- :code: `DEVICE_PM_LOW_POWER_STATE `
222
+ :code: `PM_DEVICE_LOW_POWER_STATE `
223
223
224
224
Device context is preserved by the HW and need not be restored by the driver.
225
225
226
- :code: `DEVICE_PM_SUSPEND_STATE `
226
+ :code: `PM_DEVICE_SUSPEND_STATE `
227
227
228
228
Most device context is lost by the hardware. Device drivers must save and
229
229
restore or reinitialize any context lost by the hardware.
230
230
231
- :code: `DEVICE_PM_OFF_STATE `
231
+ :code: `PM_DEVICE_OFF_STATE `
232
232
233
233
Power has been fully removed from the device. The device context is lost
234
234
when this state is entered. Need to reinitialize the device when powering
@@ -241,8 +241,8 @@ Zephyr RTOS power management subsystem provides a control function interface
241
241
to device drivers to indicate power management operations to perform.
242
242
The supported PM control commands are:
243
243
244
- * DEVICE_PM_SET_POWER_STATE
245
- * DEVICE_PM_GET_POWER_STATE
244
+ * PM_DEVICE_SET_POWER_STATE
245
+ * PM_DEVICE_GET_POWER_STATE
246
246
247
247
Each device driver defines:
248
248
@@ -298,7 +298,7 @@ Device Set Power State
298
298
int device_set_power_state(const struct device *dev, uint32_t device_power_state, device_pm_cb cb, void *arg);
299
299
300
300
Calls the :c:func: `device_pm_control() ` handler function implemented by the
301
- device driver with DEVICE_PM_SET_POWER_STATE command.
301
+ device driver with PM_DEVICE_SET_POWER_STATE command.
302
302
303
303
Device Get Power State
304
304
----------------------
@@ -308,7 +308,7 @@ Device Get Power State
308
308
int device_get_power_state(const struct device *dev, uint32_t * device_power_state);
309
309
310
310
Calls the :c:func: `device_pm_control() ` handler function implemented by the
311
- device driver with DEVICE_PM_GET_POWER_STATE command.
311
+ device driver with PM_DEVICE_GET_POWER_STATE command.
312
312
313
313
Busy Status Indication
314
314
======================
0 commit comments