Skip to content

Commit

Permalink
SER Data
Browse files Browse the repository at this point in the history
Signed-off-by: Jai Kumar <[email protected]>
  • Loading branch information
JaiOCP committed Dec 22, 2023
1 parent 07089c9 commit 2de4740
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions inc/saitypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ typedef enum _sai_ser_type_t
/**
* @brief Unknown error type
*/
SAI_SER_TYPE_UNKNONW = 0,
SAI_SER_TYPE_UNKNOWN = 0,

/**
* @brief Parity error
Expand All @@ -1749,11 +1749,6 @@ typedef enum _sai_ser_type_t
* @brief ECC double bit error
*/
SAI_SER_TYPE_ECC_DOUBLE_BIT = 3,

/**
* @brief Other errors
*/
SAI_SER_TYPE_OTHER = 4,
} sai_ser_type_t;

typedef enum _sai_ser_correction_type_t
Expand Down Expand Up @@ -1789,37 +1784,42 @@ typedef enum _sai_ser_correction_type_t
SAI_SER_CORRECTION_TYPE_SPECIAL = 5,
} sai_ser_correction_type_t;

/**
* @brief SAI SER log info type
*
* @flags strict
*/
typedef enum _sai_ser_log_type_t
{
/**
* @brief Error happens on memory
*/
SAI_SER_LOG_TYPE_MEM = 0,
SAI_SER_LOG_TYPE_MEM = 1 << 0,

/**
* @brief Error happens on register
*/
SAI_SER_LOG_TYPE_REG = 1,
SAI_SER_LOG_TYPE_REG = 1 << 1,

/**
* @brief Parity errors detected more than once
*/
SAI_SER_LOG_TYPE_MULTI = 2,
SAI_SER_LOG_TYPE_MULTI = 1 << 2,

/**
* @brief Error corrected by SW
*/
SAI_SER_LOG_TYPE_CORRECTED = 3,
SAI_SER_LOG_TYPE_CORRECTED = 1 << 3,

/**
* @brief Restore entry from HW cache
*/
SAI_SER_LOG_TYPE_ENTRY_INFO = 4,
SAI_SER_LOG_TYPE_ENTRY_INFO = 1 << 4,

/**
* @brief Cache data is valid
*/
SAI_SER_LOG_TYPE_CACHE = 5,
SAI_SER_LOG_TYPE_CACHE = 1 << 5,
} sai_ser_log_type_t;

typedef struct _sai_ser_health_data_t
Expand Down

0 comments on commit 2de4740

Please sign in to comment.