aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/serial.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-06 21:55:03 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-06 21:55:03 -0800
commit22c6d03bba83a3c68971e1927628ede12a3b618c (patch)
tree99e73a5c2d9ffd5a5f91674d1fb7542aafc9a81b /com32/sysdump/serial.h
parentf6fb77dbc062f0fbc1672f37dc1560cdbc08083d (diff)
downloadsyslinux.git-22c6d03bba83a3c68971e1927628ede12a3b618c.tar.gz
syslinux.git-22c6d03bba83a3c68971e1927628ede12a3b618c.tar.xz
syslinux.git-22c6d03bba83a3c68971e1927628ede12a3b618c.zip
sysdump: add back ymodem support; clean up memory dump structure
Now we just need more front ends (information providers)... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/sysdump/serial.h')
-rw-r--r--com32/sysdump/serial.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/com32/sysdump/serial.h b/com32/sysdump/serial.h
new file mode 100644
index 00000000..be95f6c4
--- /dev/null
+++ b/com32/sysdump/serial.h
@@ -0,0 +1,18 @@
+#ifndef SERIAL_H
+#define SERIAL_H
+
+#include <stddef.h>
+
+struct serial_if {
+ uint16_t port;
+ struct {
+ uint8_t dll, dlm, ier, iir, lcr, mcr;
+ } old;
+};
+
+int serial_init(struct serial_if *sif, const char *argv[]);
+void serial_read(struct serial_if *sif, void *data, size_t n);
+void serial_write(struct serial_if *sif, const void *data, size_t n);
+void serial_cleanup(struct serial_if *sif);
+
+#endif /* SERIAL_H */