OpenBIC
OpenSource Bridge-IC
plat_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 PLAT_PLDM_MONITOR_H
18
#define PLAT_PLDM_MONITOR_H
19
20
enum
plat_pldm_event_sensor_num
{
21
PLDM_EVENT_SSD_1
= 0x80,
22
PLDM_EVENT_SSD_2
,
23
PLDM_EVENT_SSD_3
,
24
PLDM_EVENT_SSD_4
,
25
};
26
27
enum
plat_pldm_device_state_set_offset
{
28
PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE
= 0,
29
PLDM_STATE_SET_OFFSET_DEVICE_STATUS
= 1,
30
PLDM_STATE_SET_OFFSET_DEVICE_POWER_STATUS
= 2,
31
};
32
33
void
plat_send_ssd_present_event
(uint8_t ssd_id);
34
void
plat_ssd_present_check
();
35
void
plat_send_ssd_power_fault_event
(uint8_t ssd_id, uint8_t
status
);
36
37
#endif
plat_pldm_event_sensor_num
plat_pldm_event_sensor_num
Definition:
plat_pldm_monitor.h:30
plat_pldm_device_state_set_offset
plat_pldm_device_state_set_offset
Definition:
plat_pldm_monitor.h:145
PLDM_STATE_SET_OFFSET_DEVICE_POWER_STATUS
@ PLDM_STATE_SET_OFFSET_DEVICE_POWER_STATUS
Definition:
plat_pldm_monitor.h:148
PLDM_STATE_SET_OFFSET_DEVICE_STATUS
@ PLDM_STATE_SET_OFFSET_DEVICE_STATUS
Definition:
plat_pldm_monitor.h:147
PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE
@ PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE
Definition:
plat_pldm_monitor.h:146
plat_ssd_present_check
void plat_ssd_present_check()
Definition:
plat_pldm_monitor.c:46
plat_send_ssd_power_fault_event
void plat_send_ssd_power_fault_event(uint8_t ssd_id, uint8_t status)
Definition:
plat_pldm_monitor.c:57
PLDM_EVENT_SSD_2
@ PLDM_EVENT_SSD_2
Definition:
plat_pldm_monitor.h:22
PLDM_EVENT_SSD_4
@ PLDM_EVENT_SSD_4
Definition:
plat_pldm_monitor.h:24
PLDM_EVENT_SSD_3
@ PLDM_EVENT_SSD_3
Definition:
plat_pldm_monitor.h:23
PLDM_EVENT_SSD_1
@ PLDM_EVENT_SSD_1
Definition:
plat_pldm_monitor.h:21
plat_send_ssd_present_event
void plat_send_ssd_present_event(uint8_t ssd_id)
Definition:
plat_pldm_monitor.c:32
status
uint8_t status
Definition:
mctp_ctrl.h:1
meta-facebook
at-mc
src
platform
plat_pldm_monitor.h
Generated by
1.9.2