diff options
Diffstat (limited to 'include/asm-mips64/pci.h')
-rw-r--r-- | include/asm-mips64/pci.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-mips64/pci.h b/include/asm-mips64/pci.h index 0112244e3..a25d50a88 100644 --- a/include/asm-mips64/pci.h +++ b/include/asm-mips64/pci.h @@ -196,6 +196,19 @@ extern inline void pci_dma_sync_sg(struct pci_dev *hwdev, #endif } +extern inline int pci_dma_supported(struct pci_dev *hwdev, dma_addr_t mask) +{ + /* + * we fall back to GFP_DMA when the mask isn't all 1s, + * so we can't guarantee allocations that must be + * within a tighter range than GFP_DMA.. + */ + if (mask < 0x00ffffff) + return 0; + + return 1; +} + /* * These macros should be used after a pci_map_sg call has been done * to get bus addresses of each of the SG entries and their lengths. |