diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-30 21:23:52 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-09-02 06:07:32 +0200 |
commit | 5b6e9ff6deb703b95fb355bb66d86096c1a2df09 (patch) | |
tree | 81d76f282fba415681cda3d1e3690da46c3d17b2 /arch/powerpc/include/asm/machdep.h | |
parent | powerpc: Use is_32bit_task() helper to test 32-bit binary (diff) | |
download | linux-5b6e9ff6deb703b95fb355bb66d86096c1a2df09.tar.xz linux-5b6e9ff6deb703b95fb355bb66d86096c1a2df09.zip |
powerpc/dma: Add optional platform override of dma_set_mask()
Some platforms may want to override dma_set_mask() to take into
account some specific "features" such as the availability of
a direct-map window in addition to an iommu.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/machdep.h')
-rw-r--r-- | arch/powerpc/include/asm/machdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index adc8e6cdf339..d045b0145537 100644 --- a/arch/powerpc/include/asm/machdep.h +++ b/arch/powerpc/include/asm/machdep.h @@ -102,6 +102,9 @@ struct machdep_calls { void (*pci_dma_dev_setup)(struct pci_dev *dev); void (*pci_dma_bus_setup)(struct pci_bus *bus); + /* Platform set_dma_mask override */ + int (*dma_set_mask)(struct device *dev, u64 dma_mask); + int (*probe)(void); void (*setup_arch)(void); /* Optional, may be NULL */ void (*init_early)(void); |