summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-06-30 12:08:58 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-06-30 12:08:58 +0000
commite7d6d472c21aa80c28be01c0d6dcbfd250d57a25 (patch)
tree04d9d76a9a48f183f4cdf1c922a8e33555e77da1 /util.h
downloadpython-dmidecode-e7d6d472c21aa80c28be01c0d6dcbfd250d57a25.tar.gz
python-dmidecode-e7d6d472c21aa80c28be01c0d6dcbfd250d57a25.tar.xz
python-dmidecode-e7d6d472c21aa80c28be01c0d6dcbfd250d57a25.zip
First commit to SVN.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@1 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..b546f64
--- /dev/null
+++ b/util.h
@@ -0,0 +1,8 @@
+#include <sys/types.h>
+
+#include "types.h"
+
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
+
+int checksum(const u8 *buf, size_t len);
+void *mem_chunk(size_t base, size_t len, const char *devmem);