diff options
author | Shannon Nelson <shannon.nelson@intel.com> | 2007-10-16 01:27:40 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:43:09 -0700 |
commit | 3e037454bcfa4b187e8293d2121bd8c0f5a5c31c (patch) | |
tree | 751a2eace11b280cc1a19873788b778009188be9 /include/linux/bitops.h | |
parent | 8ab89567da0cea9bae2c1b5dad47b51c424479e4 (diff) | |
download | blackbird-op-linux-3e037454bcfa4b187e8293d2121bd8c0f5a5c31c.tar.gz blackbird-op-linux-3e037454bcfa4b187e8293d2121bd8c0f5a5c31c.zip |
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 @@ */ #include <asm/bitops.h> +#define for_each_bit(bit, addr, size) \ + for ((bit) = find_first_bit((addr), (size)); \ + (bit) < (size); \ + (bit) = find_next_bit((addr), (size), (bit) + 1)) + + static __inline__ int get_bitmask_order(unsigned int count) { int order; |