summaryrefslogtreecommitdiff
path: root/programmer.h
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2016-01-04 03:05:15 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2016-01-04 03:05:15 +0000
commitf4f64922945a0e333f081718e57899772a73482f (patch)
tree65b772847d7325b0739a7a74a455644cca8db997 /programmer.h
parenta039e1a9ff7d697336673084db29642fb2628bfd (diff)
downloadflashrom-f4f64922945a0e333f081718e57899772a73482f.tar.gz
serprog: allow to omit specifying a baud rate.
On USB-based serial connections (VCP) the requested baud rate usually does not matter (much). Remove the arbitrary restriction and use whatever default values the OS/hardware provides. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Urja Rannikko <urjaman@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1907 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/programmer.h b/programmer.h
index 3bf292d..97f0ffa 100644
--- a/programmer.h
+++ b/programmer.h
@@ -719,10 +719,8 @@ typedef int fdtype;
#endif
void sp_flush_incoming(void);
-fdtype sp_openserport(char *dev, unsigned int baud);
-int serialport_config(fdtype fd, unsigned int baud);
+fdtype sp_openserport(char *dev, int baud);
extern fdtype sp_fd;
-/* expose serialport_shutdown as it's currently used by buspirate */
int serialport_shutdown(void *data);
int serialport_write(const unsigned char *buf, unsigned int writecnt);
int serialport_write_nonblock(const unsigned char *buf, unsigned int writecnt, unsigned int timeout, unsigned int *really_wrote);