diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-29 09:22:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-29 09:22:56 -0700 |
| commit | 747ec9b0f1bfc43e54fb66086fcb366edbb70fcf (patch) | |
| tree | c3d70175ecb50bdc21d2edbef3b07cee7efa8f98 /include/linux/sunrpc/cache.h | |
| parent | 718aca7fd8db5904ec91730ccaa0732738c1c50d (diff) | |
[PATCH] support 64 bit pci_alloc_consistent
From: Jes Sorensen <jes@wildopensource.com>
This is patch which provides support for 64 bit address allocations from
pci_alloc_consistent(), based on the address mask set through
pci_set_consistent_dma_mask(). This is necessary on some platforms which
are unable to provide physical memory in the lower 4GB block and do not
provide IOMMU support for cards operating in certain bus modes, such as
PCI-X on the SGI SN2.
The default mask for pci_alloc_consistent() is still 32 bit as there are 64
bit capable hardware out there that doesn't support 64 bit addresses for
descripters etc. Likewise, platforms which provide IOMMU support in all
bus modes can ignore struct pci_dev->consistent_dma_mask and just return a
32 bit address as before.
The patch also includes changes to tg3.c to make it use the new api as well
as a documentation update. I have done my best on the documentation part,
if anyone feel the can make my scribbles clearer, please do.
Thanks to Dave Miller, Grant Grundler, James Bottomley, Colin Ngam, and
Jeremy Higdon for input and code/documentation portions.
Diffstat (limited to 'include/linux/sunrpc/cache.h')
0 files changed, 0 insertions, 0 deletions
