From 537cb71bfbec21524737669b70ade038ae396346 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Thu, 30 Apr 2009 17:03:34 -0700 Subject: compat: Add DMA_BIT_MASK() macro From: Trent Piepho This macro was added in 2.6.24 as a replacement for things like DMA_32BIT_MASK, DMA_24BIT_MASK, etc. Priority: normal Signed-off-by: Trent Piepho --- v4l/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v4l/compat.h b/v4l/compat.h index d8bd6debe..6a40e2a33 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -449,4 +449,9 @@ static inline int snd_card_create(int idx, const char *id, } #endif +/* This macro was added in commit v2.6.23-5792-g34c6538 */ +#ifndef DMA_BIT_MASK +#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) +#endif + #endif /* _COMPAT_H */ -- cgit v1.2.3