patch-2.4.0-test8 linux/include/asm-arm/mach/pci.h
Next file: linux/include/asm-arm/mmu_context.h
Previous file: linux/include/asm-arm/mach/map.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Sun Sep 3 11:19:11 2000
- Orig file:
v2.4.0-test7/linux/include/asm-arm/mach/pci.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.0-test7/linux/include/asm-arm/mach/pci.h linux/include/asm-arm/mach/pci.h
@@ -0,0 +1,36 @@
+/*
+ * linux/include/asm-arm/mach/pci.h
+ */
+#define MAX_NR_BUS 2
+
+struct arm_bus_sysdata {
+ /*
+ * bitmask of features we can turn.
+ * See PCI command register for more info.
+ */
+ u16 features;
+ /*
+ * Maximum devsel for this bus.
+ */
+ u16 maxdevsel;
+ /*
+ * The maximum latency that devices on this
+ * bus can withstand.
+ */
+ u8 max_lat;
+};
+
+struct arm_pci_sysdata {
+ struct arm_bus_sysdata bus[MAX_NR_BUS];
+};
+
+struct hw_pci {
+ void (*init)(struct arm_pci_sysdata *);
+ u8 (*swizzle)(struct pci_dev *dev, u8 *pin);
+ int (*map_irq)(struct pci_dev *dev, u8 slot, u8 pin);
+};
+
+extern u8 no_swizzle(struct pci_dev *dev, u8 *pin);
+
+void __init dc21285_init(struct arm_pci_sysdata *);
+void __init plx90x0_init(struct arm_pci_sysdata *);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)