blob: 68f184e76d16357ef3e50f22be8ac14615ef0976 [file] [log] [blame]
Jeremy Kerr4cdc2002019-02-07 16:49:12 +08001/* SPDX-License-Identifier: Apache-2.0 */
2
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 Kerr4cdc2002019-02-07 16:49:12 +080010#include "libmctp.h"
11
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 */