Lines Matching defs:hose

18 int __indirect_read_config(struct pci_controller *hose,
26 if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) {
27 if (bus_number != hose->first_busno)
34 if (ppc_md.pci_exclude_device(hose, bus_number, devfn))
37 if (hose->indirect_type & PPC_INDIRECT_TYPE_SET_CFG_TYPE)
38 if (bus_number != hose->first_busno)
41 bus_no = (bus_number == hose->first_busno) ?
42 hose->self_busno : bus_number;
44 if (hose->indirect_type & PPC_INDIRECT_TYPE_EXT_REG)
49 if (hose->indirect_type & PPC_INDIRECT_TYPE_BIG_ENDIAN)
50 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
53 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
60 cfg_data = hose->cfg_data + (offset & 3);
78 struct pci_controller *hose = pci_bus_to_host(bus);
80 return __indirect_read_config(hose, bus->number, devfn, offset, len,
87 struct pci_controller *hose = pci_bus_to_host(bus);
92 if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) {
93 if (bus->number != hose->first_busno)
100 if (ppc_md.pci_exclude_device(hose, bus->number, devfn))
103 if (hose->indirect_type & PPC_INDIRECT_TYPE_SET_CFG_TYPE)
104 if (bus->number != hose->first_busno)
107 bus_no = (bus->number == hose->first_busno) ?
108 hose->self_busno : bus->number;
110 if (hose->indirect_type & PPC_INDIRECT_TYPE_EXT_REG)
115 if (hose->indirect_type & PPC_INDIRECT_TYPE_BIG_ENDIAN)
116 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
119 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
123 if (hose->indirect_type & PPC_INDIRECT_TYPE_SURPRESS_PRIMARY_BUS)
125 (bus->number == hose->first_busno))
129 if ((hose->indirect_type & PPC_INDIRECT_TYPE_BROKEN_MRM) &&
138 cfg_data = hose->cfg_data + (offset & 3);
159 void setup_indirect_pci(struct pci_controller *hose, resource_size_t cfg_addr,
166 hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK);
169 hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK);
170 hose->ops = &indirect_pci_ops;
171 hose->indirect_type = flags;