summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-01-06 19:09:40 +0000
committerPatrick Georgi <pgeorgi@google.com>2010-01-06 19:09:40 +0000
commit3b6237dbce5149c565a134394c6184118629464d (patch)
treeec6d0b820d2d153b32743d1d466ead3196fd677d /flash.h
parentefa151eb10a11796bd36cf0f32c8202e60d9de01 (diff)
downloadast2050-flashrom-3b6237dbce5149c565a134394c6184118629464d.zip
ast2050-flashrom-3b6237dbce5149c565a134394c6184118629464d.tar.gz
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.h1
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