pci-bridge.h (2e483528cebad089d0bb3f9aebb0ada22d968ffa) | pci-bridge.h (98d9f30c820d509145757e6ecbc36013aa02f7bc) |
---|---|
1#ifndef _ASM_MICROBLAZE_PCI_BRIDGE_H 2#define _ASM_MICROBLAZE_PCI_BRIDGE_H 3#ifdef __KERNEL__ 4/* 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 91 unchanged lines hidden (view full) --- 100 * ranges since the common pci_bus structure can't handle more 101 */ 102 struct resource io_resource; 103 struct resource mem_resources[3]; 104 int global_number; /* PCI domain number */ 105}; 106 107#ifdef CONFIG_PCI | 1#ifndef _ASM_MICROBLAZE_PCI_BRIDGE_H 2#define _ASM_MICROBLAZE_PCI_BRIDGE_H 3#ifdef __KERNEL__ 4/* 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 2 of the License, or (at your option) any later version. --- 91 unchanged lines hidden (view full) --- 100 * ranges since the common pci_bus structure can't handle more 101 */ 102 struct resource io_resource; 103 struct resource mem_resources[3]; 104 int global_number; /* PCI domain number */ 105}; 106 107#ifdef CONFIG_PCI |
108static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) | 108static inline struct device_node *pci_device_to_OF_node(struct pci_dev *dev) |
109{ | 109{ |
110 return bus->sysdata; | 110 return dev->dev.of_node; |
111} 112 113static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) 114{ | 111} 112 113static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) 114{ |
115 struct pci_controller *host; | 115 return bus->dev.of_node; 116} |
116 | 117 |
117 if (bus->self) 118 return pci_device_to_OF_node(bus->self); 119 host = pci_bus_to_host(bus); 120 return host ? host->dn : NULL; | 118static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) 119{ 120 return bus->sysdata; |
121} 122 123static inline int isa_vaddr_is_ioport(void __iomem *address) 124{ 125 /* No specific ISA handling on ppc32 at this stage, it 126 * all goes through PCI 127 */ 128 return 0; --- 75 unchanged lines hidden --- | 121} 122 123static inline int isa_vaddr_is_ioport(void __iomem *address) 124{ 125 /* No specific ISA handling on ppc32 at this stage, it 126 * all goes through PCI 127 */ 128 return 0; --- 75 unchanged lines hidden --- |