patch-2.4.5 linux/include/asm-i386/pci.h
Next file: linux/include/asm-i386/system.h
Previous file: linux/include/asm-i386/mtrr.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri May 25 18:02:07 2001
- Orig file:
v2.4.4/linux/include/asm-i386/pci.h
- Orig date:
Fri Apr 27 15:49:20 2001
diff -u --recursive --new-file v2.4.4/linux/include/asm-i386/pci.h linux/include/asm-i386/pci.h
@@ -9,8 +9,9 @@
#define pcibios_assign_all_busses() 0
+extern unsigned long pci_mem_start;
#define PCIBIOS_MIN_IO 0x1000
-#define PCIBIOS_MIN_MEM 0x10000000
+#define PCIBIOS_MIN_MEM (pci_mem_start)
void pcibios_set_master(struct pci_dev *dev);
void pcibios_penalize_isa_irq(int irq);
@@ -171,6 +172,16 @@
*/
#define sg_dma_address(sg) (virt_to_bus((sg)->address))
#define sg_dma_len(sg) ((sg)->length)
+
+/* Return the index of the PCI controller for device. */
+static inline int pci_controller_num(struct pci_dev *dev)
+{
+ return 0;
+}
+
+#define HAVE_PCI_MMAP
+extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
+ enum pci_mmap_state mmap_state, int write_combine);
#endif /* __KERNEL__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)