aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2019-02-15 09:06:31 +0100
committerGravatar Christoph Hellwig <hch@lst.de> 2019-02-20 07:28:53 -0700
commitc54fc984dae5fb0007ddfc46dabde6631735689d (patch)
tree405f8c2a91ab37bbb46d8255ca8378870eac4bdb /arch/sparc/kernel/kernel.h
parentccio: allow large DMA masks (diff)
downloadlinux-c54fc984dae5fb0007ddfc46dabde6631735689d.tar.gz
linux-c54fc984dae5fb0007ddfc46dabde6631735689d.tar.bz2
linux-c54fc984dae5fb0007ddfc46dabde6631735689d.zip
sparc64: refactor the ali DMA quirk
Do the quirk first in the dma_supported routines, as we don't need any of the other checks for it, and remove the duplicate mask checking that is already done by the callers. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/kernel.h')
-rw-r--r--arch/sparc/kernel/kernel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h
index ddffd368e057..f6f498ba3198 100644
--- a/arch/sparc/kernel/kernel.h
+++ b/arch/sparc/kernel/kernel.h
@@ -45,7 +45,11 @@ void __irq_entry smp_receive_signal_client(int irq, struct pt_regs *regs);
void __irq_entry smp_kgdb_capture_client(int irq, struct pt_regs *regs);
/* pci.c */
-int pci64_dma_supported(struct pci_dev *pdev, u64 device_mask);
+#ifdef CONFIG_PCI
+int ali_sound_dma_hack(struct device *dev, u64 device_mask);
+#else
+#define ali_sound_dma_hack(dev, mask) (0)
+#endif
/* signal32.c */
void do_sigreturn32(struct pt_regs *regs);