mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
This commit is contained in:
4
flash.h
4
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"
|
||||
|
||||
|
Reference in New Issue
Block a user