blob: 994173d94153c0adabedcd7b6e6692114e7bf739 [file] [log] [blame]
Jeremy Kerr3d36ee22019-05-30 11:15:37 +08001/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
Jeremy Kerr4cdc2002019-02-07 16:49:12 +08002
3#ifndef _LIBMCTP_SERIAL_H
4#define _LIBMCTP_SERIAL_H
5
Deepak Kodihallib11ad2c2019-02-28 03:42:22 -06006#ifdef __cplusplus
7extern "C" {
8#endif
9
Jeremy Kerr8682ef22019-05-30 17:46:44 +080010#include <libmctp.h>
Jeremy Kerr4cdc2002019-02-07 16:49:12 +080011
12struct mctp_binding_serial;
13
14struct mctp_binding_serial *mctp_serial_init(void);
15int mctp_serial_get_fd(struct mctp_binding_serial *serial);
16void mctp_serial_register_bus(struct mctp_binding_serial *serial,
17 struct mctp *mctp, mctp_eid_t eid);
18int mctp_serial_read(struct mctp_binding_serial *serial);
19int mctp_serial_open_path(struct mctp_binding_serial *serial,
20 const char *path);
21void mctp_serial_open_fd(struct mctp_binding_serial *serial, int fd);
22
Deepak Kodihallib11ad2c2019-02-28 03:42:22 -060023#ifdef __cplusplus
24}
25#endif
26
Jeremy Kerr4cdc2002019-02-07 16:49:12 +080027#endif /* _LIBMCTP_SERIAL_H */