diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2009-04-30 17:03:34 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2009-04-30 17:03:34 -0700 |
commit | 537cb71bfbec21524737669b70ade038ae396346 (patch) | |
tree | 771fa44a25034dde431b3f8f5069432e2dbdaa13 /v4l | |
parent | 072a6b98300f11462d16d85cbf83239a6957cd91 (diff) | |
download | mediapointer-dvb-s2-537cb71bfbec21524737669b70ade038ae396346.tar.gz mediapointer-dvb-s2-537cb71bfbec21524737669b70ade038ae396346.tar.bz2 |
compat: Add DMA_BIT_MASK() macro
From: Trent Piepho <xyzzy@speakeasy.org>
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 <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |