OpenBIC
OpenSource Bridge-IC
plat_ncsi.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_NCSI_H
18#define _PLAT_NCSI_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
25 uint8_t iana[4];
26 uint8_t command_rev;
27 uint8_t command_id;
28 uint8_t parameter;
29 uint32_t reserved;
30 uint8_t mode;
31 uint32_t checksum;
32} __attribute__((packed));
33
35 uint16_t response_code;
36 uint16_t reason_code;
37 uint32_t iana[4];
38 uint8_t command_rev;
39 uint8_t command_id;
40 uint8_t parameter;
41 uint32_t reserved;
42 uint8_t mode;
43 uint32_t checksum;
44} __attribute__((packed));
45
46uint8_t mellanox_cx7_set_self_recovery_setting(uint8_t mctp_dest_eid);
47uint8_t mellanox_cx7_clear_initial_state(uint8_t mctp_dest_eid);
48uint8_t mellanox_cx7_get_infiniband_link_status(uint8_t mctp_dest_eid, uint8_t *link_type,
49 uint16_t *response_code, uint16_t *reason_code);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* _PLAT_NCSI_H */
uint8_t link_type
Definition: ncsi.h:4
struct mellanox_set_self_recovery_setting_req __attribute__((packed))
Definition: cci.h:57
uint16_t reason_code
Definition: plat_ncsi.h:1
uint16_t response_code
Definition: plat_ncsi.h:0
uint8_t mellanox_cx7_set_self_recovery_setting(uint8_t mctp_dest_eid)
Definition: plat_ncsi.c:27
uint8_t mellanox_cx7_clear_initial_state(uint8_t mctp_dest_eid)
Definition: plat_ncsi.c:127
uint8_t mellanox_cx7_get_infiniband_link_status(uint8_t mctp_dest_eid, uint8_t *link_type, uint16_t *response_code, uint16_t *reason_code)
Definition: plat_ncsi.c:80
Definition: plat_ncsi.h:24
uint8_t iana[4]
Definition: plat_ncsi.h:25
uint8_t command_rev
Definition: plat_ncsi.h:26
uint8_t mode
Definition: plat_ncsi.h:30
uint8_t parameter
Definition: plat_ncsi.h:28
uint32_t reserved
Definition: plat_ncsi.h:29
uint32_t checksum
Definition: plat_ncsi.h:31
uint8_t command_id
Definition: plat_ncsi.h:27
Definition: plat_ncsi.h:34
uint32_t checksum
Definition: plat_ncsi.h:43
uint32_t iana[4]
Definition: plat_ncsi.h:37
uint8_t command_id
Definition: plat_ncsi.h:39
uint32_t reserved
Definition: plat_ncsi.h:41
uint16_t response_code
Definition: plat_ncsi.h:35
uint8_t mode
Definition: plat_ncsi.h:42
uint8_t command_rev
Definition: plat_ncsi.h:38
uint8_t parameter
Definition: plat_ncsi.h:40
uint16_t reason_code
Definition: plat_ncsi.h:36