bge: Add busdma constraints for old chips
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 28 Jun 2012 05:41:15 +0000 (13:41 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 28 Jun 2012 05:41:15 +0000 (13:41 +0800)
commitd723dbb58c011e055d64c49183f61823ec0941d1
tree979d4ff8b45e5f3a1e9983a4641f1f48a57c028e
parent832863d27ae6b08bb30ae82ffa6e0cca38eb9915
bge: Add busdma constraints for old chips

- Most pre BCM5755 controllers have a DMA bug when buffer address
  crosses a multiple of the 4GB boundary
- For BCM5714/BCM5715 controllers, limit the DMA address to be within
  40bit address space.

Obtained-from: FreeBSD 199670
sys/dev/netif/bge/if_bge.c
sys/dev/netif/bge/if_bgereg.h