blob: 0d3b9721192ccce931bd2cf6242cb9ad4d256055 [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
6#include "libmctp.h"
7
8struct mctp_binding_serial;
9
10struct mctp_binding_serial *mctp_serial_init(void);
11int mctp_serial_get_fd(struct mctp_binding_serial *serial);
12void mctp_serial_register_bus(struct mctp_binding_serial *serial,
13 struct mctp *mctp, mctp_eid_t eid);
14int mctp_serial_read(struct mctp_binding_serial *serial);
15int mctp_serial_open_path(struct mctp_binding_serial *serial,
16 const char *path);
17void mctp_serial_open_fd(struct mctp_binding_serial *serial, int fd);
18
19#endif /* _LIBMCTP_SERIAL_H */