patch-2.4.0-test4 linux/include/asm-ppc/pci-bridge.h
Next file: linux/include/asm-ppc/pci.h
Previous file: linux/include/asm-ppc/mpc8xx.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu Jul 13 09:42:51 2000
- Orig file:
v2.4.0-test3/linux/include/asm-ppc/pci-bridge.h
- Orig date:
Fri Oct 22 13:21:54 1999
diff -u --recursive --new-file v2.4.0-test3/linux/include/asm-ppc/pci-bridge.h linux/include/asm-ppc/pci-bridge.h
@@ -6,8 +6,21 @@
/*
* pci_io_base returns the memory address at which you can access
* the I/O space for PCI bus number `bus' (or NULL on error).
+ *
+ * NOTE: This doesn't handle the new Uni-N chip which requires
+ * per-device io_base.
*/
void *pci_io_base(unsigned int bus);
+
+/* This version handles the new Uni-N host bridge, the iobase is now
+ * a per-device thing. I also added the memory base so PReP can
+ * be fixed to return 0xc0000000 (I didn't actually implement it)
+ */
+void *pci_dev_io_base(unsigned char bus, unsigned char devfn);
+void *pci_dev_mem_base(unsigned char bus, unsigned char devfn);
+
+/* Returns the root-bridge number (Uni-N number) of a device */
+int pci_dev_root_bridge(unsigned char bus, unsigned char devfn);
/*
* pci_device_loc returns the bus number and device/function number
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)