1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef __TPS6594_PFSM_H
8 #define __TPS6594_PFSM_H
9 #include <linux/const.h>
10 #include <linux/ioctl.h>
11 #include <linux/types.h>
12 struct pmic_state_opt {
13   __u8 gpio_retention;
14   __u8 ddr_retention;
15   __u8 mcu_only_startup_dest;
16 };
17 #define PMIC_BASE 'P'
18 #define PMIC_GOTO_STANDBY _IO(PMIC_BASE, 0)
19 #define PMIC_GOTO_LP_STANDBY _IO(PMIC_BASE, 1)
20 #define PMIC_UPDATE_PGM _IO(PMIC_BASE, 2)
21 #define PMIC_SET_ACTIVE_STATE _IO(PMIC_BASE, 3)
22 #define PMIC_SET_MCU_ONLY_STATE _IOW(PMIC_BASE, 4, struct pmic_state_opt)
23 #define PMIC_SET_RETENTION_STATE _IOW(PMIC_BASE, 5, struct pmic_state_opt)
24 #endif
25