diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-01-06 19:09:40 +0000 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2010-01-06 19:09:40 +0000 |
commit | 3b6237dbce5149c565a134394c6184118629464d (patch) | |
tree | ec6d0b820d2d153b32743d1d466ead3196fd677d /flash.h | |
parent | efa151eb10a11796bd36cf0f32c8202e60d9de01 (diff) | |
download | flashrom-3b6237dbce5149c565a134394c6184118629464d.tar.gz flashrom-3b6237dbce5149c565a134394c6184118629464d.tar.bz2 flashrom-3b6237dbce5149c565a134394c6184118629464d.zip |
Multiple unrelated changes
- replace the hand written serial input flush routine with the termios one.
- serialport_discard_read isn't necessary anymore - it just wrapped
sp_flush_incoming with no extra value.
- serialport_read and serialport_write would misbehave if read or write
didn't process everything in one go.
- sp_flush_incoming should be #define'd out for FAKE_COMMUNICATION like
serialport_discard_read was
Corresponding to flashrom svn r831.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -598,7 +598,6 @@ extern int sp_fd; int serialport_shutdown(void); int serialport_write(unsigned char *buf, unsigned int writecnt); int serialport_read(unsigned char *buf, unsigned int readcnt); -int serialport_discard_read(void); #include "chipdrivers.h" |