Jeremy Kerr | 4cdc200 | 2019-02-07 16:49:12 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: Apache-2.0 */ |
| 2 | |
| 3 | #ifndef _LIBMCTP_SERIAL_H |
| 4 | #define _LIBMCTP_SERIAL_H |
| 5 | |
| 6 | #include "libmctp.h" |
| 7 | |
| 8 | struct mctp_binding_serial; |
| 9 | |
| 10 | struct mctp_binding_serial *mctp_serial_init(void); |
| 11 | int mctp_serial_get_fd(struct mctp_binding_serial *serial); |
| 12 | void mctp_serial_register_bus(struct mctp_binding_serial *serial, |
| 13 | struct mctp *mctp, mctp_eid_t eid); |
| 14 | int mctp_serial_read(struct mctp_binding_serial *serial); |
| 15 | int mctp_serial_open_path(struct mctp_binding_serial *serial, |
| 16 | const char *path); |
| 17 | void mctp_serial_open_fd(struct mctp_binding_serial *serial, int fd); |
| 18 | |
| 19 | #endif /* _LIBMCTP_SERIAL_H */ |