Adding upstream version 6.02~pre8+dfsg.
[syslinux-debian/hramrach.git] / com32 / libupload / serial.h
blob356f2cef49458e4b248c68f061758b65abbdd8f9
1 #ifndef SERIAL_H
2 #define SERIAL_H
4 #include <stddef.h>
6 struct serial_if {
7 uint16_t port;
8 bool console;
9 struct {
10 uint8_t dll, dlm, ier, iir, lcr, mcr;
11 } old;
14 int serial_init(struct serial_if *sif, const char *argv[]);
15 void serial_read(struct serial_if *sif, void *data, size_t n);
16 void serial_write(struct serial_if *sif, const void *data, size_t n);
17 void serial_cleanup(struct serial_if *sif);
19 #endif /* SERIAL_H */