Import 2.3.18pre1
[davej-history.git] / include / asm-ppc / pci-bridge.h
blobe3f3c15909b0392a23b3938f84825f10edbd5b6b
1 #ifndef _ASM_PCI_BRIDGE_H
2 #define _ASM_PCI_BRIDGE_H
4 unsigned long pmac_find_bridges(unsigned long, unsigned long);
6 /*
7 * pci_io_base returns the memory address at which you can access
8 * the I/O space for PCI bus number `bus' (or NULL on error).
9 */
10 void *pci_io_base(unsigned int bus);
13 * pci_device_loc returns the bus number and device/function number
14 * for a device on a PCI bus, given its device_node struct.
15 * It returns 0 if OK, -1 on error.
17 int pci_device_loc(struct device_node *dev, unsigned char *bus_ptr,
18 unsigned char *devfn_ptr);
20 struct bridge_data {
21 volatile unsigned int *cfg_addr;
22 volatile unsigned char *cfg_data;
23 void *io_base;
24 int bus_number;
25 int max_bus;
26 struct bridge_data *next;
27 struct device_node *node;
30 #endif