path: root/flash.h
diff options
authorPatrick Georgi <>2010-01-06 19:09:40 +0000
committerPatrick Georgi <>2010-01-06 19:09:40 +0000
commit3b6237dbce5149c565a134394c6184118629464d (patch)
treeec6d0b820d2d153b32743d1d466ead3196fd677d /flash.h
parentefa151eb10a11796bd36cf0f32c8202e60d9de01 (diff)
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 <> Acked-by: Sean Nelson <>
Diffstat (limited to 'flash.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index a80ec32..b47dcbc 100644
--- a/flash.h
+++ b/flash.h
@@ -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"
OpenPOWER on IntegriCloud