summaryrefslogtreecommitdiffstats
path: root/tools.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-06 02:10:24 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-06 02:10:24 +0200
commitd98d86bd6b0d861462698e5bcfc8f712f8e350c7 (patch)
tree54ca00b323495f7b36f7eef479e7d1c0c2e6905a /tools.h
parent9b9e573479732acb1b9dc9fd4d6444918b5b5a5b (diff)
downloadipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.tar.gz
ipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.tar.bz2
ipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.tar.xz
ipecamera-d98d86bd6b0d861462698e5bcfc8f712f8e350c7.zip
Support FIFO reading/writting, code restructurization, few fixes
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools.h b/tools.h
index 3454fc4..3bd1b20 100644
--- a/tools.h
+++ b/tools.h
@@ -6,6 +6,8 @@
#include "pci.h"
+#define BIT_MASK(bits) ((1ll << (bits)) - 1)
+
#define min2(a, b) (((a)<(b))?(a):(b))
int pcilib_isnumber(const char *str);