From d98d86bd6b0d861462698e5bcfc8f712f8e350c7 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 6 Jul 2011 02:10:24 +0200 Subject: Support FIFO reading/writting, code restructurization, few fixes --- tools.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools.h') 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); -- cgit v1.2.3