b43: Enforce DMA descriptor memory constraints
authorMichael Buesch <mb@bu3sch.de>
Wed, 18 Nov 2009 19:53:05 +0000 (20:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:28 +0000 (17:09 -0500)
commit9bd568a50c446433038dec2a5186c5c57c3dbd23
treeb753571eb581f0646343c8d78688aba1d7a32c7b
parent76aa5e704c80fb7ca8bd3d05593d9a28298c92cd
b43: Enforce DMA descriptor memory constraints

Enforce all device constraints on the descriptor memory region.

There are several constraints on the descriptor memory, as documented
in the specification. The current code does not enforce them and/or
incorrectly enforces them.

Those constraints are:
- The address limitations on 30/32bit engines, that also apply to
  the skbs.
- The 4k alignment requirement on 30/32bit engines.
- The 8k alignment requirement on 64bit engines.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/dma.c
drivers/net/wireless/b43/dma.h