OpenBIC
OpenSource Bridge-IC
plat_mctp.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_MCTP_h
18#define _PLAT_MCTP_h
19
20#include "storage_handler.h"
21#include "pldm_oem.h"
22
24 uint8_t iana[IANA_LEN];
25 uint8_t netfn_lun;
26 uint8_t ipmi_cmd;
27} __attribute__((__packed__));
28;
29
32 uint8_t iana[IANA_LEN];
33 uint8_t netfn_lun;
34 uint8_t ipmi_cmd;
36} __attribute__((__packed__));
37;
38
42} __attribute__((__packed__));
43
47} __attribute__((__packed__));
48
49/* init the mctp moduel for platform */
50void plat_mctp_init(void);
51void send_cmd_to_dev(struct k_timer *timer);
52void send_cmd_to_dev_handler(struct k_work *work);
54uint8_t get_nic_config(void);
55
56extern struct pldm_variable_field nic_vesion[];
57
58#endif /* _PLAT_MCTP_h */
void plat_mctp_init(void)
Definition: plat_mctp.c:218
struct pldm_variable_field nic_vesion[]
Definition: plat_mctp.c:195
uint8_t get_nic_config(void)
Definition: plat_mctp.c:528
void send_cmd_to_dev(struct k_timer *timer)
Definition: plat_mctp.c:548
bool mctp_add_sel_to_ipmi(common_addsel_msg_t *sel_msg)
Definition: plat_mctp.c:259
void send_cmd_to_dev_handler(struct k_work *work)
Definition: plat_mctp.c:533
#define IANA_LEN
Definition: pldm_oem.h:27
Definition: ipmi.h:53
Definition: storage_handler.h:56
Definition: storage_handler.h:63
Definition: plat_mctp.h:23
uint8_t netfn_lun
Definition: plat_mctp.h:25
uint8_t ipmi_cmd
Definition: plat_mctp.h:26
uint8_t iana[IANA_LEN]
Definition: plat_mctp.h:24
Definition: plat_mctp.h:30
uint8_t ipmi_comp_code
Definition: plat_mctp.h:35
uint8_t ipmi_cmd
Definition: plat_mctp.h:34
uint8_t netfn_lun
Definition: plat_mctp.h:33
uint8_t completion_code
Definition: plat_mctp.h:31
uint8_t iana[IANA_LEN]
Definition: plat_mctp.h:32
Definition: plat_mctp.h:39
struct ipmi_storage_add_sel_req req_data
Definition: plat_mctp.h:41
struct mctp_to_ipmi_header_req header
Definition: plat_mctp.h:40
Definition: plat_mctp.h:44
struct mctp_to_ipmi_header_resp header
Definition: plat_mctp.h:45
struct ipmi_storage_add_sel_resp resp_data
Definition: plat_mctp.h:46
Definition: pldm.h:117
enum @172 __attribute__