aboutsummaryrefslogtreecommitdiff
path: root/include/pldm.h
blob: 3c23dc97a7ab81d330ccf109643ff452da0aafcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 * Copyright 2022 IBM Corp.
 */

#ifndef __PLDM_H__
#define __PLDM_H__

/**
 * Handle PLDM messages received from MCTP
 */
int pldm_mctp_message_rx(uint8_t eid, bool tag_owner, uint8_t msg_tag,
			 const uint8_t *buf, int len);

/**
 * PLDM over MCTP initialization
 */
int pldm_mctp_init(void);

/**
 * PLDM over MCTP stop
 */
void pldm_mctp_exit(void);

/**
 * Send a system chassis Off-Soft Graceful request
 */
int pldm_platform_power_off(void);

/**
 * Send a system firmware Graceful Restart request
 */
int pldm_platform_restart(void);

/**
 * Update the firmware version device-tree field
 */
int pldm_fru_dt_add_bmc_version(void);

#endif /* __PLDM_H__ */