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 "
plat_i2c.h
"
21
22
/* i2c 8 bit address */
23
#define I2C_ADDR_BIC 0x40
24
#define I2C_ADDR_MPRO 0x9E
25
26
/* i2c dev bus */
27
#define I2C_BUS_MPRO I2C_BUS14
28
29
/* mctp endpoint */
30
#define MCTP_EID_MPRO 0x10
31
#define PLDM_TID_MPRO 0x01
32
33
/* init the mctp moduel for platform */
34
void
plat_mctp_init
(
void
);
35
void
send_cmd_to_dev
(
struct
k_timer *timer);
36
void
send_cmd_to_dev_handler
(
struct
k_work *work);
37
38
#endif
/* _PLAT_MCTP_h */
plat_mctp_init
void plat_mctp_init(void)
Definition:
plat_mctp.c:218
send_cmd_to_dev
void send_cmd_to_dev(struct k_timer *timer)
Definition:
plat_mctp.c:548
send_cmd_to_dev_handler
void send_cmd_to_dev_handler(struct k_work *work)
Definition:
plat_mctp.c:533
plat_i2c.h
meta-facebook
yv35-hda1
src
platform
plat_mctp.h
Generated by
1.9.2