patch-2.4.3 linux/include/asm-i386/pci.h
Next file: linux/include/asm-i386/pgalloc-2level.h
Previous file: linux/include/asm-i386/highmem.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Mar 26 15:48:44 2001
- Orig file:
v2.4.2/linux/include/asm-i386/pci.h
- Orig date:
Thu Jan 4 14:51:31 2001
diff -u --recursive --new-file v2.4.2/linux/include/asm-i386/pci.h linux/include/asm-i386/pci.h
@@ -152,6 +152,14 @@
*/
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;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)