diff options
author | Shannon Nelson <shannon.nelson@intel.com> | 2007-10-16 04:27:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:09 -0400 |
commit | 3e037454bcfa4b187e8293d2121bd8c0f5a5c31c (patch) | |
tree | 751a2eace11b280cc1a19873788b778009188be9 /include/linux/bitops.h | |
parent | 8ab89567da0cea9bae2c1b5dad47b51c424479e4 (diff) |
I/OAT: Add support for MSI and MSI-X
Add support for MSI and MSI-X interrupt handling, including the ability
to choose the desired interrupt method.
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
[bunk@kernel.org: drivers/dma/ioat_dma.c: make 3 functions static]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/bitops.h')
-rw-r--r-- | include/linux/bitops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 638165f571da..b9fb8ee3308b 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h | |||
@@ -8,6 +8,12 @@ | |||
8 | */ | 8 | */ |
9 | #include <asm/bitops.h> | 9 | #include <asm/bitops.h> |
10 | 10 | ||
11 | #define for_each_bit(bit, addr, size) \ | ||
12 | for ((bit) = find_first_bit((addr), (size)); \ | ||
13 | (bit) < (size); \ | ||
14 | (bit) = find_next_bit((addr), (size), (bit) + 1)) | ||
15 | |||
16 | |||
11 | static __inline__ int get_bitmask_order(unsigned int count) | 17 | static __inline__ int get_bitmask_order(unsigned int count) |
12 | { | 18 | { |
13 | int order; | 19 | int order; |