summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-06-08 15:27:47 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-06-08 15:27:47 +0000
commitc386d0a2a068f7d77b49043f0ba9e53c0c544d33 (patch)
tree77553e79f295eb5f9dec27812378b73ccedcc4a4 /flash.h
parentabe7c186049e66ea1b6c5fcda2d46decf9a8ab40 (diff)
downloadflashrom-c386d0a2a068f7d77b49043f0ba9e53c0c544d33.zip
flashrom-c386d0a2a068f7d77b49043f0ba9e53c0c544d33.tar.gz
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h1
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