Skip to content

Commit

Permalink
types: Fix EOM header optional data present fields definition
Browse files Browse the repository at this point in the history
Defined eye data present as bit 0 and printable eye present as bit 1.
Fixed eye data present to bit 1 and printable eye present to bit 0.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t authored and igaw committed Mar 26, 2024
1 parent ea5600c commit 67a9b13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -3963,12 +3963,12 @@ struct nvme_phy_rx_eom_log {

/**
* enum nvme_eom_optional_data - EOM Optional Data Present Fields
* @NVME_EOM_EYE_DATA_PRESENT: Eye Data Present
* @NVME_EOM_PRINTABLE_EYE_PRESENT: Printable Eye Present
* @NVME_EOM_EYE_DATA_PRESENT: Eye Data Present
*/
enum nvme_eom_optional_data {
NVME_EOM_EYE_DATA_PRESENT = 1,
NVME_EOM_PRINTABLE_EYE_PRESENT = 1 << 1,
NVME_EOM_PRINTABLE_EYE_PRESENT = 0x1 << 0,
NVME_EOM_EYE_DATA_PRESENT = 0x1 << 1,
};

/**
Expand Down

0 comments on commit 67a9b13

Please sign in to comment.