patch-2.4.6 linux/include/asm-mips/pci.h
Next file: linux/include/asm-mips/pgalloc.h
Previous file: linux/include/asm-mips/param.h
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Mon Jul 2 13:56:40 2001
- Orig file:
v2.4.5/linux/include/asm-mips/pci.h
- Orig date:
Wed May 16 10:31:27 2001
diff -u --recursive --new-file v2.4.5/linux/include/asm-mips/pci.h linux/include/asm-mips/pci.h
@@ -1,5 +1,4 @@
-/* $Id: pci.h,v 1.10 2000/03/23 02:26:00 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.
@@ -13,7 +12,8 @@
already-configured bus numbers - to be used for buggy BIOSes
or architectures with incomplete PCI setup by the loader */
-#define pcibios_assign_all_busses() 0
+//#define pcibios_assign_all_busses() 0
+#define pcibios_assign_all_busses() 1
#define PCIBIOS_MIN_IO 0x1000
#define PCIBIOS_MIN_MEM 0x10000000
@@ -201,8 +201,27 @@
#endif
}
-/* Return the index of the PCI controller for device PDEV. */
-#define pci_controller_num(PDEV) (0)
+/* Return whether the given PCI device DMA address mask can
+ * be supported properly. For example, if your device can
+ * only drive the low 24-bits during PCI bus mastering, then
+ * you would pass 0x00ffffff as the mask to this function.
+ */
+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)