From efa151eb10a11796bd36cf0f32c8202e60d9de01 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Wed, 6 Jan 2010 16:09:10 +0000 Subject: 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 --- flash.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index e2e1e629..a80ec327 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" -- cgit v1.2.3