Skip to content

Commit 13b8bbc

Browse files
committed
mi: Add types for MI Get/Set Configuration data
This change adds the mi-specific types for Get/Set configuration commands: enum nvme_mi_config_id for the currently-defined IDs, and enum nvme_mi_config_smbus_freq for the possible SMBus frequency configuration values. Signed-off-by: Jeremy Kerr <[email protected]>
1 parent 88fdd75 commit 13b8bbc

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

src/nvme/mi.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,40 @@ enum nvme_mi_dtyp {
222222
nvme_mi_dtyp_meb_support = 0x05,
223223
};
224224

225+
/**
226+
* enum nvme_mi_config_id - NVMe-MI Configuration identifier.
227+
* @NVME_MI_CONFIG_SMBUS_FREQ: Current SMBus/I2C frequency
228+
* @NVME_MI_CONFIG_HEALTH_STATUS_CHANGE: Health Status change - used to clear
229+
* health status bits in CCS bits of
230+
* status poll. Only for Set ops.
231+
* @NVME_MI_CONFIG_MCTP_MTU: MCTP maximum transmission unit size of port
232+
* specified in dw 0
233+
*
234+
* Configuration parameters for the MI Get/Set Configuration commands.
235+
*
236+
* See &nvme_mi_mi_config_get() and &nvme_mi_config_set().
237+
*/
238+
enum nvme_mi_config_id {
239+
NVME_MI_CONFIG_SMBUS_FREQ = 0x1,
240+
NVME_MI_CONFIG_HEALTH_STATUS_CHANGE = 0x2,
241+
NVME_MI_CONFIG_MCTP_MTU = 0x3,
242+
};
243+
244+
/**
245+
* enum nvme_mi_config_smbus_freq - SMBus/I2C frequency values
246+
* @NVME_MI_CONFIG_SMBUS_FREQ_100kHz: 100kHz
247+
* @NVME_MI_CONFIG_SMBUS_FREQ_400kHz: 400kHz
248+
* @NVME_MI_CONFIG_SMBUS_FREQ_1MHz: 1MHz
249+
*
250+
* Values used in the SMBus Frequency device configuration. See
251+
* &nvme_mi_mi_config_get_smbus_freq() and &nvme_mi_mi_config_set_smbus_freq().
252+
*/
253+
enum nvme_mi_config_smbus_freq {
254+
NVME_MI_CONFIG_SMBUS_FREQ_100kHz = 0x1,
255+
NVME_MI_CONFIG_SMBUS_FREQ_400kHz = 0x2,
256+
NVME_MI_CONFIG_SMBUS_FREQ_1MHz = 0x3,
257+
};
258+
225259
/* Admin command definitions */
226260

227261
/**

0 commit comments

Comments
 (0)