blob: 5ecaa6b7472d8ead1277eaf95c41d3890b9264ff (
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
|
/* SPDX-License-Identifier: Apache-2.0 */
#ifndef _LIBMCTP_SMBUS_H
#define _LIBMCTP_SMBUS_H
#ifdef __cplusplus
extern "C" {
#endif
#include "libmctp.h"
struct mctp_binding_smbus;
struct mctp_binding_smbus *mctp_smbus_init(void);
int mctp_smbus_get_out_fd(struct mctp_binding_smbus *smbus);
int mctp_smbus_get_in_fd(struct mctp_binding_smbus *smbus);
void mctp_smbus_register_bus(struct mctp_binding_smbus *smbus,
struct mctp *mctp, mctp_eid_t eid);
int mctp_smbus_read(struct mctp_binding_smbus *smbus);
int mctp_smbus_open_bus(struct mctp_binding_smbus *smbus, int out_bus_num,
int root_bus_num);
void mctp_smbus_free(struct mctp_binding_smbus *smbus);
#ifdef __cplusplus
}
#endif
#endif /* _LIBMCTP_SMBUS_H */
|