path: root/flash.h
diff options
authorCarl-Daniel Hailfinger <>2012-06-08 15:27:47 +0000
committerCarl-Daniel Hailfinger <>2012-06-08 15:27:47 +0000
commit316fdfbf82a6183f75f4cca3e9fad0a21d3822e9 (patch)
tree77553e79f295eb5f9dec27812378b73ccedcc4a4 /flash.h
parent1c1554888875840f3d64231978aa891154b05f53 (diff)
Bus Pirate buffer management revamp
The buffer management of the Bus Pirate driver has been revamped to use grow-only buffers with a reasonable initial default size so realloc() will not have to be called in normal operation. A side effect is the ability to switch to a static buffer without major hassle. Handle OOM gracefully. Corresponding to flashrom svn r1541. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Patrick Georgi <>
Diffstat (limited to 'flash.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index cae1ea9..60d52e1 100644
--- a/flash.h
+++ b/flash.h
@@ -36,6 +36,7 @@
#define ERROR_PTR ((void*)-1)
/* Error codes */
+#define ERROR_OOM -100
#define TIMEOUT_ERROR -101
typedef unsigned long chipaddr;
OpenPOWER on IntegriCloud