23#define CLOCK_GEN_ADDR (0xD0 >> 1)
24#define FREYA_STATUS_BLOCK_OFFSET 0x00
25#define FREYA_STATUS_BLOCK_LENGTH 0x08
26#define FREYA_READY_STATUS_BIT BIT(6)
27#define FREYA_READY_STATUS_OFFSET 0x01
28#define FREYA_READY_STATUS_LENGTH 1
29#define NVME_TEMPERATURE_INDEX 3
30#define FREYA_MODULE_IDENTIFIER_BLOCK_OFFSET 0x20
31#define FREYA_MODULE_IDENTIFIER_BLOCK_LENGTH 0x37
32#define IS_FREYA_MODULE_IDENTIFIER_SUPPORT 0x01
33#define FREYA_MODULE_IDENTIFIER_OFFSET 0x01
34#define FREYA_MODULE_IDENTIFIER_LENGTH 1
35#define FREYA_FFI_OFFSET 0x2B
36#define FREYA_FFI_LENGTH 1
37#define FREYA_FIRMWARE_VERSION_BLOCK_OFFSET 0x68
38#define FREYA_FIRMWARE_VERSION_BLOCK_LENGTH 0x08
39#define FREYA_FIRMWARE_VERSION_OFFSET 0x02
40#define FREYA_FIRMWARE_VERSION_LENGTH 5
41#define FREYA_NOT_READY_RET_CODE -2
42#define FREYA_NOT_SUPPORT_MODULE_IDENTIFIER_RET_CODE -3
43#define WAIT_FIRMWARE_READY_DELAY_S 1
44#define UNKNOWN_TYPE 0xFF
126 uint32_t image_size,
bool is_end_package);
uint8_t addr
Definition: isl69259.c:0
uint32_t offset
Definition: pldm_firmware_update.h:0
uint8_t sensor_num
Definition: storage_handler.h:6
Definition: plat_dev.h:46
uint8_t is_freya_ready
Definition: plat_dev.h:47
uint8_t minor_version
Definition: plat_dev.h:51
uint8_t additional_version
Definition: plat_dev.h:52
uint8_t major_version
Definition: plat_dev.h:50
uint8_t form_factor_info
Definition: plat_dev.h:49
uint8_t secondary_major_version
Definition: plat_dev.h:53
uint8_t secondary_minor_version
Definition: plat_dev.h:54
uint8_t is_module_identifier_support
Definition: plat_dev.h:48
Definition: plat_dev.h:57
freya_fw_info freya1_fw_info
Definition: plat_dev.h:60
bool is_cache_freya2_info
Definition: plat_dev.h:59
bool is_cache_freya1_info
Definition: plat_dev.h:58
freya_fw_info freya2_fw_info
Definition: plat_dev.h:61
Definition: plat_dev.h:71
bool is_init_work
Definition: plat_dev.h:73
uint8_t device_type
Definition: plat_dev.h:74
struct k_work_delayable add_sel_work
Definition: plat_dev.h:76
bool is_addsel
Definition: plat_dev.h:72
uint32_t error_status
Definition: plat_dev.h:75
Definition: plat_dev.h:64
bool is_init
Definition: plat_dev.h:68
uint8_t remaining_write
Definition: plat_dev.h:66
uint8_t vendor
Definition: plat_dev.h:67
uint8_t checksum[4]
Definition: plat_dev.h:65
Definition: plat_dev.h:84
uint8_t addr
Definition: plat_dev.h:88
struct k_work_delayable wait_firmware_work
Definition: plat_dev.h:93
uint8_t bus
Definition: plat_dev.h:87
bool is_work_done
Definition: plat_dev.h:86
bool is_init
Definition: plat_dev.h:85
uint8_t status
Definition: plat_dev.h:90
uint8_t timeout_s
Definition: plat_dev.h:92
uint8_t result
Definition: plat_dev.h:91
uint8_t type
Definition: plat_dev.h:89