pci.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | pci.c (8cc7581cdb84a232468c41bc417183a423dfbb07) |
---|---|
1/* 2 * Copyright (C) 2006 PA Semi, Inc 3 * 4 * Authors: Kip Walker, PA Semi 5 * Olof Johansson, PA Semi 6 * 7 * Maintained by: Olof Johansson <olof@lixom.net> 8 * --- 215 unchanged lines hidden (view full) --- 224 return; 225 } 226 227 for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) 228 if (np->name && !strcmp(np->name, "pxp") && !pas_add_bridge(np)) 229 of_node_get(np); 230 231 of_node_put(root); | 1/* 2 * Copyright (C) 2006 PA Semi, Inc 3 * 4 * Authors: Kip Walker, PA Semi 5 * Olof Johansson, PA Semi 6 * 7 * Maintained by: Olof Johansson <olof@lixom.net> 8 * --- 215 unchanged lines hidden (view full) --- 224 return; 225 } 226 227 for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) 228 if (np->name && !strcmp(np->name, "pxp") && !pas_add_bridge(np)) 229 of_node_get(np); 230 231 of_node_put(root); |
232 233 /* Setup the linkage between OF nodes and PHBs */ 234 pci_devs_phb_init(); | |
235} 236 237void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset) 238{ 239 struct pci_controller *hose; 240 241 hose = pci_bus_to_host(dev->bus); 242 243 return (void __iomem *)pa_pxp_cfg_addr(hose, dev->bus->number, dev->devfn, offset); 244} 245 246struct pci_controller_ops pasemi_pci_controller_ops; | 232} 233 234void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset) 235{ 236 struct pci_controller *hose; 237 238 hose = pci_bus_to_host(dev->bus); 239 240 return (void __iomem *)pa_pxp_cfg_addr(hose, dev->bus->number, dev->devfn, offset); 241} 242 243struct pci_controller_ops pasemi_pci_controller_ops; |