path: root/flash.h
diff options
authorCarl-Daniel Hailfinger <>2010-01-06 16:09:10 +0000
committerCarl-Daniel Hailfinger <>2010-01-06 16:09:10 +0000
commitefa151eb10a11796bd36cf0f32c8202e60d9de01 (patch)
tree9f8668bc80e08d5a0293b27f608f4e40b17d9943 /flash.h
parentcc1802db50df74aa850d444ba0d7f6854bb7abd6 (diff)
Move OS-dependent serial code from buspirate_spi.c to serial.c
While at it, also rename a few functions to make it obvious that they are generic and not specific to the Bus Pirate. Corresponding to flashrom svn r830. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Patrick Georgi <>
Diffstat (limited to 'flash.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index e2e1e62..a80ec32 100644
--- a/flash.h
+++ b/flash.h
@@ -595,6 +595,10 @@ void sp_flush_incoming(void);
int sp_openserport(char *dev, unsigned int baud);
void __attribute__((noreturn)) sp_die(char *msg);
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