path: root/programmer.h
diff options
authorStefan Tauner <>2011-10-22 21:45:27 +0000
committerStefan Tauner <>2011-10-22 21:45:27 +0000
commit31019d409c0bb745f7fadc7d9d0cdbca9bf59a33 (patch)
tree5b18c8401161cbd258055a712d36b9f26507a297 /programmer.h
parentd13a394300f5c40838012cbc33092d7c8155ad1c (diff)
serprog: small improvements
- rename serprog_delay parameter to usecs - fix code style, (output) formatting issues and comments - sp_docommand: remove unnecessary malloc+memcpy and fix formatting Corresponding to flashrom svn r1456. Signed-off-by: Stefan Tauner <> Acked-by: Uwe Hermann <>
Diffstat (limited to 'programmer.h')
1 files changed, 3 insertions, 2 deletions
diff --git a/programmer.h b/programmer.h
index 73b94c1..3d35a46 100644
--- a/programmer.h
+++ b/programmer.h
@@ -607,9 +607,10 @@ int serprog_init(void);
void serprog_chip_writeb(uint8_t val, chipaddr addr);
uint8_t serprog_chip_readb(const chipaddr addr);
void serprog_chip_readn(uint8_t *buf, const chipaddr addr, size_t len);
-void serprog_delay(int delay);
+void serprog_delay(int usecs);
int serprog_spi_send_command(unsigned int writecnt, unsigned int readcnt,
- const unsigned char *writearr, unsigned char *readarr);
+ const unsigned char *writearr,
+ unsigned char *readarr);
int serprog_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);
OpenPOWER on IntegriCloud