patch-2.4.0-test9 linux/include/asm-ppc/pci-bridge.h
Next file: linux/include/asm-ppc/pgtable.h
Previous file: linux/include/asm-ppc/nvram.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Sep 17 09:48:08 2000
- Orig file:
v2.4.0-test8/linux/include/asm-ppc/pci-bridge.h
- Orig date:
Thu Jul 13 09:42:51 2000
diff -u --recursive --new-file v2.4.0-test8/linux/include/asm-ppc/pci-bridge.h linux/include/asm-ppc/pci-bridge.h
@@ -15,8 +15,12 @@
/* 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)
+ *
+ * pci_dev_io_base() returns either a virtual (ioremap'ed) address or
+ * a physical address. In-kernel clients will use logical while the
+ * sys_pciconfig_iobase syscall returns a physical one to userland.
*/
-void *pci_dev_io_base(unsigned char bus, unsigned char devfn);
+void *pci_dev_io_base(unsigned char bus, unsigned char devfn, int physical);
void *pci_dev_mem_base(unsigned char bus, unsigned char devfn);
/* Returns the root-bridge number (Uni-N number) of a device */
@@ -33,7 +37,8 @@
struct bridge_data {
volatile unsigned int *cfg_addr;
volatile unsigned char *cfg_data;
- void *io_base;
+ void *io_base; /* virtual */
+ unsigned long io_base_phys;
int bus_number;
int max_bus;
struct bridge_data *next;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)