]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d491e252d635ace651eba04cedbf824c528e5ca
treeb753571eb581f0646343c8d78688aba1d7a32c7b
parent94fd9402e12643c8a9ce4449b8bbc3f8dbb337df
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