summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-09-25 22:53:44 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-09-25 22:53:44 +0000
commited7a964786fc50b13410dbd074e9404514e8700f (patch)
treec7dfb0613b792f12e4872fa187a2cf6020afc599 /flash.h
parent0a6f9ca171a205129573c11564c91701bc45f83c (diff)
downloadast2050-flashrom-ed7a964786fc50b13410dbd074e9404514e8700f.zip
ast2050-flashrom-ed7a964786fc50b13410dbd074e9404514e8700f.tar.gz
Implement libpayload support and improve life for DOS based flashrom, too
Corresponding to flashrom svn r1181. Change the physmap* behaviour to use (void*)-1 as error code instead of NULL. That way, 1:1 mapped memory can be supported properly because (void*)0 is not a magic pointer anymore. (void*)-1 on the other hand is a rather unlikely memory offset, so that should be safe. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 6f0d7c0..25624aa 100644
--- a/flash.h
+++ b/flash.h
@@ -33,6 +33,8 @@
#undef max
#endif
+#define ERROR_PTR ((void*)-1)
+
typedef unsigned long chipaddr;
int register_shutdown(void (*function) (void *data), void *data);
OpenPOWER on IntegriCloud