diff options
Diffstat (limited to 'libqcdm/src/dm-commands.h')
-rw-r--r-- | libqcdm/src/dm-commands.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libqcdm/src/dm-commands.h b/libqcdm/src/dm-commands.h index cc254bb7..1be04e92 100644 --- a/libqcdm/src/dm-commands.h +++ b/libqcdm/src/dm-commands.h @@ -246,6 +246,19 @@ struct DMCmdSubsysHeader { } __attribute__ ((packed)); typedef struct DMCmdSubsysHeader DMCmdSubsysHeader; +typedef enum { + DM_CONTROL_MODE_OFFLINE = 1, + DM_CONTROL_MODE_RESET = 2, +} DMControlMode; + +/* DIAG_CMD_CONTROL */ +struct DMCmdControl { + u_int8_t code; + /* DMControlMode */ + u_int16_t mode; +} __attribute__ ((packed)); +typedef struct DMCmdControl DMCmdControl; + /* DIAG_CMD_NV_READ / DIAG_CMD_NV_WRITE */ struct DMCmdNVReadWrite { u_int8_t code; |