OpenBIC
OpenSource Bridge-IC
pldm_monitor.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _PLDM_MONITOR_H
18#define _PLDM_MONITOR_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include "pldm.h"
25#include "pdr.h"
26
27/* command number of pldm type 0x02 : PLDM for platform monitor and control */
39
40/* define size of request */
41#define PLDM_GET_SENSOR_READING_REQ_BYTES 3
42#define PLDM_SET_STATE_EFFECTER_REQ_NO_STATE_FIELD_BYTES 3
43
44/* Define size of response */
45#define PLDM_GET_STATE_EFFECTER_RESP_NO_STATE_FIELD_BYTES 2
46
47/* The maximum event data size of event type currently support, ipmi event 16 bytes */
48#define PLDM_MONITOR_EVENT_DATA_SIZE_MAX 16
49/* The default maximum event message number in the queue */
50#define PLDM_MONITOR_EVENT_QUEUE_MSG_NUM_MAX_DEFAULT 10
51#define PLDM_MONITOR_SENSOR_SUPPORT_MAX 0xFF
52#define PLDM_MONITOR_SENSOR_EVENT_SENSOR_OP_STATE_DATA_LENGTH 2
53#define PLDM_MONITOR_SENSOR_EVENT_STATE_SENSOR_STATE_DATA_LENGTH 3
54#define PLDM_MONITOR_SENSOR_EVENT_NUMERIC_SENSOR_STATE_MIN_DATA_LENGTH 4
55#define PLDM_MONITOR_SENSOR_EVENT_NUMERIC_SENSOR_STATE_MAX_DATA_LENGTH 7
56
57#define PLDM_MONITOR_SENSOR_DATA_SIZE_INT8 1
58#define PLDM_MONITOR_SENSOR_DATA_SIZE_INT16 2
59#define PLDM_MONITOR_SENSOR_DATA_SIZE_INT32 4
60
61#define PLDM_PLATFORM_OEM_GPIO_EFFECTER_STATE_FIELD_COUNT 2
62#define PLDM_PLATFORM_OEM_HOST_POWER_CTRL_EFFECTER_STATE_FIELD_COUNT 1
63#define PLDM_PLATFORM_OEM_I3C_HUB_REINIT_EFFECTER_STATE_FIELD_COUNT 1
64#define PLDM_PLATFORM_OEM_SPI_REINIT_EFFECTER_STATE_FIELD_COUNT 1
65#define PLDM_PLATFORM_OEM_SWITCH_UART_EFFECTER_STATE_FIELD_COUNT 1
66#define PLDM_PLATFORM_OEM_AST1030_GPIO_PIN_NUM_MAX 167
67
68#define PLDM_COMPOSITE_EFFECTER_COUNT_MIN 0x01
69#define PLDM_COMPOSITE_EFFECTER_COUNT_MAX 0x08
70#define PLDM_COMPOSITE_EFFECTER_COUNT_ADDSEL 0x03
71#define PLDM_ADDSEL_ASSERT_MASK 0x80
72#define PLDM_ADDSEL_DEASSERT_MASK 0x7F
73
82
92};
93
105
110};
111
117};
118
125
135
139};
140
144};
145
159
167
169 /* GetStateSensorReadings */
172
173 /* SetEventReceiver */
177
178 /* SetStateEffecterStates, GetStateEffecterStates */
182
183};
184
186 /* SetStateEffecterStates, GetStateEffecterStates */
190};
191
192/* Define from Platform Level Data Model (PLDM) State
193Set Specification (DSP0249) Table 15 – Entity ID codes*/
199};
200
201/* Y = (mX + b) * 10^r */
202typedef struct _pldm_sensor_pdr_parm {
203 int64_t resolution; // from PDR (m)
204 int64_t ofst; // from PDR (b)
205 int8_t unit_modifier; // from PDR (r)
207
209 uint16_t sensor_id;
211} __attribute__((packed));
212
220 uint8_t event_state;
221 uint8_t present_reading[1];
222} __attribute__((packed));
223
233
239
241
250
257
259 uint8_t op_state;
261} __attribute__((packed));
262
264 uint16_t sensor_ofst;
265 uint8_t event_state;
267} __attribute__((packed));
268
270 uint8_t event_state;
273 uint8_t reading[1];
274} __attribute__((packed));
275
278 uint8_t tid;
279 uint8_t event_class;
281} __attribute__((packed));
282
286} __attribute__((packed));
287
289 uint16_t sensor_id;
292} __attribute__((packed));
293
296 uint8_t event_state;
298} __attribute__((packed));
299
301 uint8_t event_state;
304 uint8_t present_reading[1];
305} __attribute__((packed));
306
310} __attribute__((packed));
311
313 uint16_t effecter_id;
316} __attribute__((packed));
317
321} __attribute__((packed));
322
328} __attribute__((packed));
329
332} __attribute__((packed));
333
335 uint8_t set_request;
337} __attribute__((packed)) set_effecter_state_field_t;
338
343} __attribute__((packed)) get_effecter_state_field_t;
344
346 uint16_t effecter_id;
348 set_effecter_state_field_t field[8];
349} __attribute__((packed));
350
352 uint16_t effecter_id;
353} __attribute__((packed));
354
358 get_effecter_state_field_t field[8];
359} __attribute__((packed));
360
363} __attribute__((packed));
364
368} __attribute__((packed));
369
374 uint8_t event_state;
375} __attribute__((packed)) state_sensor_reading_state_field_t;
376
378 uint16_t sensor_id;
380 uint8_t rsv;
381} __attribute__((packed));
382
386 state_sensor_reading_state_field_t field[8];
387} __attribute__((packed));
388
394};
395
402} __attribute__((packed));
403
411 //uint8_t transferCRC;
412} __attribute__((packed));
413
419 uint32_t record_count;
423} __attribute__((packed));
424
426 uint16_t entity_type;
427 uint16_t effecter_id;
428};
429
432};
433
436};
437
439
440uint8_t pldm_monitor_handler_query(uint8_t code, void **ret_fn);
441
442uint8_t pldm_platform_event_message_req(void *mctp_inst, mctp_ext_params ext_params,
443 uint8_t event_class, const uint8_t *event_data,
444 uint8_t event_data_length);
445
446uint16_t pldm_platform_monitor_read(void *mctp_inst, mctp_ext_params ext_params,
448 uint16_t req_len, uint8_t *rbuf, uint16_t rbuf_len);
449
450uint8_t pldm_send_platform_event(uint8_t event_class, uint16_t id, uint8_t ext_class,
451 const uint8_t *event_data, uint8_t event_data_length);
452
453void set_effecter_state_gpio_handler(const uint8_t *buf, uint16_t len, uint8_t *resp,
454 uint16_t *resp_len, uint8_t gpio_pin);
455
456void get_effecter_state_gpio_handler(const uint8_t *buf, uint16_t len, uint8_t *resp,
457 uint16_t *resp_len, uint8_t gpio_pin);
458
459void pldm_spi_reinit(const char *spi_dev_str, const uint8_t *buf, uint16_t len, uint8_t *resp,
460 uint16_t *resp_len);
461
462uint8_t plat_pldm_set_state_effecter_state_handler(const uint8_t *buf, uint16_t len, uint8_t *resp,
463 uint16_t *resp_len,
464 struct pldm_state_effecter_info *info_p);
465
466uint8_t plat_pldm_get_state_effecter_state_handler(const uint8_t *buf, uint16_t len, uint8_t *resp,
467 uint16_t *resp_len,
468 struct pldm_state_effecter_info *info_p);
469
470void plat_pldm_set_effecter_state_host_power_control(const uint8_t *buf, uint16_t len,
471 uint8_t *resp, uint16_t *resp_len);
472
473void plat_pldm_set_effecter_state_reinit_i3c_hub(const uint8_t *buf, uint16_t len, uint8_t *resp,
474 uint16_t *resp_len);
475
477
478void pldm_load_state_effecter_table(uint16_t state_effecter_index);
479
481
483
484uint8_t pldm_event_len_check(uint8_t *buf, uint16_t len);
485float pldm_sensor_cal(uint8_t *buf, uint8_t len, pldm_sensor_readings_data_type_t data_type,
488 void *mctp_inst, mctp_ext_params ext_params);
490 uint8_t device_type, uint8_t board_info, uint8_t event_type);
491
492#ifdef __cplusplus
493}
494#endif
495
496#endif /* _PLDM_MONITOR_H */
uint8_t cmd
Definition: isl69259.c:1
#define NUMERIC_PDR_SIZE
Definition: pdr.h:9
#define TIMESTAMP104_SIZE
Definition: pdr.h:8
void plat_pldm_load_state_effecter_table()
Definition: pldm_monitor.c:1015
void plat_pldm_set_effecter_state_reinit_i3c_hub(const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
Definition: plat_pldm_monitor.c:312
oem_effecter_states_gpio_direction
Definition: pldm_monitor.h:112
@ EFFECTER_STATE_GPIO_DIRECTION_MAX
Definition: pldm_monitor.h:116
@ EFFECTER_STATE_GPIO_DIRECTION_UNKNOWN
Definition: pldm_monitor.h:113
@ EFFECTER_STATE_GPIO_DIRECTION_INPUT
Definition: pldm_monitor.h:114
@ EFFECTER_STATE_GPIO_DIRECTION_OUTPUT
Definition: pldm_monitor.h:115
enum pldm_platform_monitor_commands pldm_platform_monitor_commands_t
pldm_platform_completion_codes
Definition: pldm_monitor.h:168
@ PLDM_PLATFORM_ENABLE_METHOD_NOT_SUPPORTED
Definition: pldm_monitor.h:175
@ PLDM_PLATFORM_UNSUPPORTED_EFFECTERSTATE
Definition: pldm_monitor.h:181
@ PLDM_PLATFORM_INVALID_STATE_VALUE
Definition: pldm_monitor.h:180
@ PLDM_PLATFORM_INVALID_EFFECTER_ID
Definition: pldm_monitor.h:179
@ PLDM_PLATFORM_INVALID_SENSOR_ID
Definition: pldm_monitor.h:170
@ PLDM_PLATFORM_HEARTBEAT_FREQUENCY_TOO_HIGH
Definition: pldm_monitor.h:176
@ PLDM_PLATFORM_REARM_UNAVAILABLE_IN_PRESENT_STATE
Definition: pldm_monitor.h:171
@ PLDM_PLATFORM_INVALID_PROTOCOL_TYPE
Definition: pldm_monitor.h:174
pldm_effecter_id_high_byte
Definition: pldm_monitor.h:430
@ PLDM_EFFECTER_ID_FUNC_HIGH_BYTE
Definition: pldm_monitor.h:431
uint16_t effecter_id
Definition: pldm_monitor.h:0
pldm_event_message_global_enable
Definition: pldm_monitor.h:251
@ PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_ASYNC
Definition: pldm_monitor.h:253
@ PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_POLLING
Definition: pldm_monitor.h:254
@ PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_ASYNC_KEEP_ALIVE
Definition: pldm_monitor.h:255
@ PLDM_EVENT_MESSAGE_GLOBAL_DISABLE
Definition: pldm_monitor.h:252
enum pldm_effecter_event_class pldm_effecter_event_class_t
void plat_pldm_set_effecter_state_host_power_control(const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
Definition: pldm_monitor.c:978
enum pldm_event_types __attribute__
void set_effecter_state_gpio_handler(const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, uint8_t gpio_pin)
Definition: pldm_monitor.c:622
pldm_sensor_operational_state
Definition: pldm_monitor.h:83
@ PLDM_SENSOR_UNAVAILABLE
Definition: pldm_monitor.h:86
@ PLDM_SENSOR_SHUTTINGDOWN
Definition: pldm_monitor.h:90
@ PLDM_SENSOR_FAILED
Definition: pldm_monitor.h:88
@ PLDM_SENSOR_INTEST
Definition: pldm_monitor.h:91
@ PLDM_SENSOR_ENABLED
Definition: pldm_monitor.h:84
@ PLDM_SENSOR_DISABLED
Definition: pldm_monitor.h:85
@ PLDM_SENSOR_INITIALIZING
Definition: pldm_monitor.h:89
@ PLDM_SENSOR_STATUSUNKOWN
Definition: pldm_monitor.h:87
set_request
Definition: pldm_monitor.h:106
@ PLDM_SET_REQUEST_MAX
Definition: pldm_monitor.h:109
@ PLDM_REQUEST_SET
Definition: pldm_monitor.h:108
@ PLDM_NO_CHANGE
Definition: pldm_monitor.h:107
pldm_effecter_operational_state
Definition: pldm_monitor.h:94
@ PLDM_EFFECTER_STATUSUNKNOWN
Definition: pldm_monitor.h:99
@ PLDM_EFFECTER_DISABLED
Definition: pldm_monitor.h:97
@ PLDM_EFFECTER_SHUTTINGDOWN
Definition: pldm_monitor.h:102
@ PLDM_EFFECTER_INTEST
Definition: pldm_monitor.h:103
@ PLDM_EFFECTER_INITIALIZING
Definition: pldm_monitor.h:101
@ PLDM_EFFECTER_ENABLED_UPDATEPENDING
Definition: pldm_monitor.h:95
@ PLDM_EFFECTER_FAILED
Definition: pldm_monitor.h:100
@ PLDM_EFFECTER_UNAVAILABLE
Definition: pldm_monitor.h:98
@ PLDM_EFFECTER_ENABLED_NOUPDATEPENDING
Definition: pldm_monitor.h:96
pldm_oem_platform_completion_codes
Definition: pldm_monitor.h:185
@ PLDM_OEM_GPIO_EFFECTER_INVALID_SET_VALUE
Definition: pldm_monitor.h:188
@ PLDM_OEM_GPIO_EFFECTER_VALUE_UNKNOWN
Definition: pldm_monitor.h:189
@ PLDM_OEM_GPIO_UNSUPPORT_RANGE
Definition: pldm_monitor.h:187
uint16_t pldm_platform_monitor_read(void *mctp_inst, mctp_ext_params ext_params, pldm_platform_monitor_commands_t cmd, uint8_t *req, uint16_t req_len, uint8_t *rbuf, uint16_t rbuf_len)
Definition: pldm_monitor.c:224
pldm_platform_monitor_commands
Definition: pldm_monitor.h:28
@ PLDM_MONITOR_CMD_CODE_GET_SENSOR_READING
Definition: pldm_monitor.h:29
@ PLDM_MONITOR_CMD_CODE_SET_EVENT_RECEIVER
Definition: pldm_monitor.h:31
@ PLDM_MONITOR_CMD_CODE_GET_STATE_SENSOR_READING
Definition: pldm_monitor.h:30
@ PLDM_MONITOR_CMD_CODE_EVENT_MESSAGE_BUFF_SIZE
Definition: pldm_monitor.h:33
@ PLDM_MONITOR_CMD_CODE_GET_PDR_INFO
Definition: pldm_monitor.h:36
@ PLDM_MONITOR_CMD_CODE_PLATFORM_EVENT_MESSAGE
Definition: pldm_monitor.h:32
@ PLDM_MONITOR_CMD_CODE_SET_STATE_EFFECTER_STATES
Definition: pldm_monitor.h:34
@ PLDM_MONITOR_CMD_CODE_GET_PDR
Definition: pldm_monitor.h:37
@ PLDM_MONITOR_CMD_CODE_GET_STATE_EFFECTER_STATES
Definition: pldm_monitor.h:35
float pldm_sensor_cal(uint8_t *buf, uint8_t len, pldm_sensor_readings_data_type_t data_type, pldm_sensor_pdr_parm parm)
Definition: pldm_monitor.c:79
pldm_sensor_event_class
Definition: pldm_monitor.h:234
@ PLDM_SENSOR_OP_STATE
Definition: pldm_monitor.h:235
@ PLDM_NUMERIC_SENSOR_STATE
Definition: pldm_monitor.h:237
@ PLDM_STATE_SENSOR_STATE
Definition: pldm_monitor.h:236
uint8_t pldm_send_set_state_effecter_states_req(struct pldm_set_state_effecter_states_req *req, void *mctp_inst, mctp_ext_params ext_params)
Definition: pldm_monitor.c:1047
uint8_t pldm_fill_addsel_req(struct pldm_set_state_effecter_states_req *req, uint16_t effecter_id, uint8_t device_type, uint8_t board_info, uint8_t event_type)
Definition: pldm_monitor.c:1030
pldm_effecter_event_class
Definition: pldm_monitor.h:240
@ PLDM_EFFECTER_OP_STATE
Definition: pldm_monitor.h:240
void get_effecter_state_gpio_handler(const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, uint8_t gpio_pin)
Definition: pldm_monitor.c:809
pldm_event_types
Definition: pldm_monitor.h:224
@ PLDM_EFFECTER_EVENT
Definition: pldm_monitor.h:226
@ PLDM_SENSOR_EVENT
Definition: pldm_monitor.h:225
@ PLDM_MESSAGE_POLL_EVENT
Definition: pldm_monitor.h:230
@ PLDM_REDFISH_TASK_EXECUTED_EVENT
Definition: pldm_monitor.h:227
@ PLDM_REDFISH_MESSAGE_EVENT
Definition: pldm_monitor.h:228
@ PLDM_HEARTBEAT_TIMER_ELAPSED_EVENT
Definition: pldm_monitor.h:231
@ PLDM_PDR_REPOSITORY_CHG_EVENT
Definition: pldm_monitor.h:229
pldm_effecter_id_low_byte
Definition: pldm_monitor.h:434
@ PLDM_EFFECTER_ID_ADDSEL_LOW_BYTE
Definition: pldm_monitor.h:435
struct pldm_state_effecter_info * find_state_effecter_info(uint16_t effecter_id)
Definition: pldm_monitor.c:1020
oem_effecter_states_reinit_i3c_hub
Definition: pldm_monitor.h:136
@ EFFECTER_STATE_I3C_HUB_REINIT
Definition: pldm_monitor.h:137
@ EFFECTER_STATE_I3C_HUB_MAX
Definition: pldm_monitor.h:138
oem_effecter_states_gpio_value
Definition: pldm_monitor.h:119
@ EFFECTER_STATE_GPIO_VALUE_UNKNOWN
Definition: pldm_monitor.h:120
@ EFFECTER_STATE_GPIO_VALUE_HIGH
Definition: pldm_monitor.h:122
@ EFFECTER_STATE_GPIO_VALUE_LOW
Definition: pldm_monitor.h:121
@ EFFECTER_STATE_GPIO_VALUE_MAX
Definition: pldm_monitor.h:123
uint8_t pldm_platform_event_message_req(void *mctp_inst, mctp_ext_params ext_params, uint8_t event_class, const uint8_t *event_data, uint8_t event_data_length)
Definition: pldm_monitor.c:342
struct pldm_state_effecter_info * state_effecter_table
Definition: pldm_monitor.c:57
pldm_sensor_event_message_enable
Definition: pldm_monitor.h:160
@ PLDM_STATE_EVENTS_ONLY_ENABLED
Definition: pldm_monitor.h:165
@ PLDM_EVENTS_ENABLED
Definition: pldm_monitor.h:163
@ PLDM_EVENTS_DISABLED
Definition: pldm_monitor.h:162
@ PLDM_OP_EVENTS_ONLY_ENABLED
Definition: pldm_monitor.h:164
@ PLDM_NO_EVENT_GENERATION
Definition: pldm_monitor.h:161
void pldm_spi_reinit(const char *spi_dev_str, const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
Definition: pldm_monitor.c:688
pldm_sensor_readings_data_type
Definition: pldm_monitor.h:74
@ PLDM_SENSOR_DATA_SIZE_SINT32
Definition: pldm_monitor.h:80
@ PLDM_SENSOR_DATA_SIZE_UINT8
Definition: pldm_monitor.h:75
@ PLDM_SENSOR_DATA_SIZE_SINT16
Definition: pldm_monitor.h:78
@ PLDM_SENSOR_DATA_SIZE_UINT16
Definition: pldm_monitor.h:77
@ PLDM_SENSOR_DATA_SIZE_SINT8
Definition: pldm_monitor.h:76
@ PLDM_SENSOR_DATA_SIZE_UINT32
Definition: pldm_monitor.h:79
uint8_t plat_pldm_get_state_effecter_state_handler(const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, struct pldm_state_effecter_info *info_p)
Definition: pldm_monitor.c:755
enum pldm_sensor_event_class pldm_sensor_event_class_t
void pldm_assign_gpio_effecter_id()
struct _pldm_sensor_pdr_parm pldm_sensor_pdr_parm
uint8_t pldm_event_len_check(uint8_t *buf, uint16_t len)
PLDM event length check function.
Definition: pldm_monitor.c:548
oem_effecter_states_reinit_spi
Definition: pldm_monitor.h:141
@ EFFECTER_STATE_SPI_REINIT
Definition: pldm_monitor.h:142
@ EFFECTER_STATE_SPI_REINIT_MAX
Definition: pldm_monitor.h:143
enum pldm_sensor_readings_data_type pldm_sensor_readings_data_type_t
uint8_t event_class
Definition: pldm_monitor.h:2
uint8_t pldm_monitor_handler_query(uint8_t code, void **ret_fn)
Definition: pldm_monitor.c:959
uint8_t event_data[PLDM_MONITOR_EVENT_DATA_SIZE_MAX]
Definition: pldm_monitor.h:3
oem_effecter_states_power_status
Definition: pldm_monitor.h:126
@ EFFECTER_STATE_POWER_STATUS_OFF
Definition: pldm_monitor.h:129
@ EFFECTER_STATE_POWER_STATUS_CYCLE
Definition: pldm_monitor.h:130
@ EFFECTER_STATE_POWER_STATUS_UNKNOWN
Definition: pldm_monitor.h:127
@ EFFECTER_STATE_POWER_STATUS_GRACEFUL_SHUTDOWN
Definition: pldm_monitor.h:132
@ EFFECTER_STATE_POWER_STATUS_RESET
Definition: pldm_monitor.h:131
@ EFFECTER_STATE_POWER_STATUS_ON
Definition: pldm_monitor.h:128
@ EFFECTER_STATE_POWER_STATUS_MAX
Definition: pldm_monitor.h:133
pldm_get_pdr_transfer_flag
Definition: pldm_monitor.h:389
@ PLDM_TRANSFER_FLAG_START
Definition: pldm_monitor.h:390
@ PLDM_TRANSFER_FLAG_MIDDLE
Definition: pldm_monitor.h:391
@ PLDM_TRANSFER_FLAG_START_AND_END
Definition: pldm_monitor.h:393
@ PLDM_TRANSFER_FLAG_END
Definition: pldm_monitor.h:392
uint8_t pldm_send_platform_event(uint8_t event_class, uint16_t id, uint8_t ext_class, const uint8_t *event_data, uint8_t event_data_length)
Definition: pldm_monitor.c:460
#define PLDM_MONITOR_EVENT_DATA_SIZE_MAX
Definition: pldm_monitor.h:48
pldm_sensor_present_state
Definition: pldm_monitor.h:146
@ PLDM_SENSOR_LOWERFATAL
Definition: pldm_monitor.h:154
@ PLDM_SENSOR_UPPERCRITICAL
Definition: pldm_monitor.h:156
@ PLDM_SENSOR_UPPERWARNING
Definition: pldm_monitor.h:155
@ PLDM_SENSOR_UNKNOWN
Definition: pldm_monitor.h:147
@ PLDM_SENSOR_UPPERFATAL
Definition: pldm_monitor.h:157
@ PLDM_SENSOR_FATAL
Definition: pldm_monitor.h:151
@ PLDM_SENSOR_LOWERCRITICAL
Definition: pldm_monitor.h:153
@ PLDM_SENSOR_CRITICAL
Definition: pldm_monitor.h:150
@ PLDM_SENSOR_LOWERWARNING
Definition: pldm_monitor.h:152
@ PLDM_SENSOR_WARNING
Definition: pldm_monitor.h:149
@ PLDM_SENSOR_NORMAL
Definition: pldm_monitor.h:148
pldm_platform_event_status
Definition: pldm_monitor.h:242
@ PLDM_EVENT_LOGGED
Definition: pldm_monitor.h:247
@ PLDM_EVENT_NO_LOGGING
Definition: pldm_monitor.h:243
@ PLDM_EVENT_LOG_FULL
Definition: pldm_monitor.h:245
@ PLDM_EVENT_LOGGING_REJECTED
Definition: pldm_monitor.h:248
@ PLDM_EVENT_ACCEPTED_FOR_LOGGING
Definition: pldm_monitor.h:246
@ PLDM_EVENT_LOGGING_DISABLED
Definition: pldm_monitor.h:244
pldm_entity_types
Definition: pldm_monitor.h:194
@ PLDM_ENTITY_OTHER_BUS
Definition: pldm_monitor.h:198
@ PLDM_ENTITY_IO_CONTROLLER
Definition: pldm_monitor.h:197
@ PLDM_ENTITY_DEVICE_DRIVER
Definition: pldm_monitor.h:195
@ PLDM_ENTITY_SUB_CHASSIS
Definition: pldm_monitor.h:196
void pldm_load_state_effecter_table(uint16_t state_effecter_index)
Definition: pldm_monitor.c:1001
uint8_t plat_pldm_set_state_effecter_state_handler(const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, struct pldm_state_effecter_info *info_p)
Definition: pldm_monitor.c:738
uint8_t event_type
Definition: storage_handler.h:10
Definition: mctp.h:98
Definition: pldm_monitor.h:202
int64_t ofst
Definition: pldm_monitor.h:204
int8_t unit_modifier
Definition: pldm_monitor.h:205
int64_t resolution
Definition: pldm_monitor.h:203
Definition: pldm_monitor.h:312
uint16_t effecter_id
Definition: pldm_monitor.h:313
uint8_t event_class_data[1]
Definition: pldm_monitor.h:315
uint8_t effecter_event_class
Definition: pldm_monitor.h:314
Definition: pldm_monitor.h:318
uint8_t present_op_state
Definition: pldm_monitor.h:319
uint8_t previous_op_state
Definition: pldm_monitor.h:320
Definition: pldm_monitor.h:361
uint16_t event_receiver_max_buffer_size
Definition: pldm_monitor.h:362
Definition: pldm_monitor.h:365
uint8_t completion_code
Definition: pldm_monitor.h:366
uint16_t term_max_buff_size
Definition: pldm_monitor.h:367
Definition: pldm_monitor.h:414
uint32_t record_count
Definition: pldm_monitor.h:419
uint32_t largest_record_size
Definition: pldm_monitor.h:421
uint8_t update_time[TIMESTAMP104_SIZE]
Definition: pldm_monitor.h:417
uint32_t repository_size
Definition: pldm_monitor.h:420
uint8_t data_transfer_handle_timeout
Definition: pldm_monitor.h:422
uint8_t repository_state
Definition: pldm_monitor.h:416
uint8_t completion_code
Definition: pldm_monitor.h:415
uint8_t oem_update_time[TIMESTAMP104_SIZE]
Definition: pldm_monitor.h:418
Definition: pldm_monitor.h:396
uint16_t record_change_number
Definition: pldm_monitor.h:401
uint16_t request_count
Definition: pldm_monitor.h:400
uint32_t data_transfer_handle
Definition: pldm_monitor.h:398
uint8_t transfer_operation_flag
Definition: pldm_monitor.h:399
uint32_t record_handle
Definition: pldm_monitor.h:397
Definition: pldm_monitor.h:404
uint8_t completion_code
Definition: pldm_monitor.h:405
uint32_t next_data_transfer_handle
Definition: pldm_monitor.h:407
uint8_t record_data[NUMERIC_PDR_SIZE]
Definition: pldm_monitor.h:410
uint32_t next_record_handle
Definition: pldm_monitor.h:406
uint8_t transfer_flag
Definition: pldm_monitor.h:408
uint16_t response_count
Definition: pldm_monitor.h:409
Definition: pldm_monitor.h:208
uint16_t sensor_id
Definition: pldm_monitor.h:209
uint8_t rearm_event_state
Definition: pldm_monitor.h:210
Definition: pldm_monitor.h:213
uint8_t previous_state
Definition: pldm_monitor.h:219
uint8_t sensor_event_message_enable
Definition: pldm_monitor.h:217
uint8_t completion_code
Definition: pldm_monitor.h:214
uint8_t present_reading[1]
Definition: pldm_monitor.h:221
uint8_t sensor_operational_state
Definition: pldm_monitor.h:216
uint8_t present_state
Definition: pldm_monitor.h:218
uint8_t event_state
Definition: pldm_monitor.h:220
uint8_t sensor_data_size
Definition: pldm_monitor.h:215
Definition: pldm_monitor.h:351
uint16_t effecter_id
Definition: pldm_monitor.h:352
Definition: pldm_monitor.h:355
uint8_t composite_effecter_count
Definition: pldm_monitor.h:357
get_effecter_state_field_t field[8]
Definition: pldm_monitor.h:358
uint8_t completion_code
Definition: pldm_monitor.h:356
Definition: pldm_monitor.h:377
uint8_t rsv
Definition: pldm_monitor.h:380
uint8_t sensor_rearm
Definition: pldm_monitor.h:379
uint16_t sensor_id
Definition: pldm_monitor.h:378
Definition: pldm_monitor.h:383
uint8_t composite_sensor_count
Definition: pldm_monitor.h:385
state_sensor_reading_state_field_t field[8]
Definition: pldm_monitor.h:386
uint8_t completion_code
Definition: pldm_monitor.h:384
Definition: pldm_monitor.h:276
uint8_t tid
Definition: pldm_monitor.h:278
uint8_t event_class
Definition: pldm_monitor.h:279
uint8_t event_data[PLDM_MONITOR_EVENT_DATA_SIZE_MAX]
Definition: pldm_monitor.h:280
uint8_t format_version
Definition: pldm_monitor.h:277
Definition: pldm_monitor.h:283
uint8_t platform_event_status
Definition: pldm_monitor.h:285
uint8_t completion_code
Definition: pldm_monitor.h:284
Definition: pldm_monitor.h:288
uint16_t sensor_id
Definition: pldm_monitor.h:289
uint8_t sensor_event_class_type
Definition: pldm_monitor.h:290
uint8_t event_class_data[]
Definition: pldm_monitor.h:291
Definition: pldm_monitor.h:269
uint8_t event_state
Definition: pldm_monitor.h:270
uint8_t pre_event_state
Definition: pldm_monitor.h:271
uint8_t reading[1]
Definition: pldm_monitor.h:273
uint8_t sensor_data_size
Definition: pldm_monitor.h:272
Definition: pldm_monitor.h:300
uint8_t previous_event_state
Definition: pldm_monitor.h:302
uint8_t sensor_data_size
Definition: pldm_monitor.h:303
uint8_t event_state
Definition: pldm_monitor.h:301
uint8_t present_reading[1]
Definition: pldm_monitor.h:304
Definition: pldm_monitor.h:258
uint8_t pre_op_state
Definition: pldm_monitor.h:260
uint8_t op_state
Definition: pldm_monitor.h:259
Definition: pldm_monitor.h:307
uint8_t previous_op_state
Definition: pldm_monitor.h:309
uint8_t present_op_state
Definition: pldm_monitor.h:308
Definition: pldm_monitor.h:263
uint16_t sensor_ofst
Definition: pldm_monitor.h:264
uint8_t event_state
Definition: pldm_monitor.h:265
uint8_t pre_event_state
Definition: pldm_monitor.h:266
Definition: pldm_monitor.h:294
uint8_t sensor_offset
Definition: pldm_monitor.h:295
uint8_t event_state
Definition: pldm_monitor.h:296
uint8_t previous_event_state
Definition: pldm_monitor.h:297
Definition: pldm_monitor.h:323
uint8_t event_message_global_enable
Definition: pldm_monitor.h:324
uint16_t heartbeat_timer
Definition: pldm_monitor.h:327
uint8_t event_receiver_address_info
Definition: pldm_monitor.h:326
uint8_t transport_protocol_type
Definition: pldm_monitor.h:325
Definition: pldm_monitor.h:330
uint8_t completion_code
Definition: pldm_monitor.h:331
Definition: pldm_monitor.h:345
uint16_t effecter_id
Definition: pldm_monitor.h:346
uint8_t composite_effecter_count
Definition: pldm_monitor.h:347
set_effecter_state_field_t field[8]
Definition: pldm_monitor.h:348
Definition: pldm_monitor.h:425
uint16_t entity_type
Definition: pldm_monitor.h:426
uint16_t effecter_id
Definition: pldm_monitor.h:427
Definition: pldm_monitor.h:339
uint8_t effecter_op_state
Definition: pldm_monitor.h:340
uint8_t present_state
Definition: pldm_monitor.h:342
uint8_t pending_state
Definition: pldm_monitor.h:341
Definition: pldm_monitor.h:334
uint8_t set_request
Definition: pldm_monitor.h:335
uint8_t effecter_state
Definition: pldm_monitor.h:336
Definition: pldm_monitor.h:370
uint8_t sensor_op_state
Definition: pldm_monitor.h:371
uint8_t previous_state
Definition: pldm_monitor.h:373
uint8_t event_state
Definition: pldm_monitor.h:374
uint8_t present_state
Definition: pldm_monitor.h:372