patch-2.4.7 linux/include/asm-mips64/pci.h
Next file: linux/include/asm-mips64/pgalloc.h
Previous file: linux/include/asm-mips64/mipsregs.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed Jul 4 11:50:39 2001
- Orig file:
v2.4.6/linux/include/asm-mips64/pci.h
- Orig date:
Wed May 16 10:31:27 2001
diff -u --recursive --new-file v2.4.6/linux/include/asm-mips64/pci.h linux/include/asm-mips64/pci.h
@@ -1,5 +1,4 @@
-/* $Id: pci.h,v 1.4 2000/02/24 00:13:20 ralf Exp $
- *
+/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
@@ -196,8 +195,21 @@
#endif
}
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
+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;
+}
+
+/* Return the index of the PCI controller for device. */
+#define pci_controller_num(pdev) (0)
/*
* These macros should be used after a pci_map_sg call has been done
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)