Lines Matching defs:hose

19 int __indirect_read_config(struct pci_controller *hose,
27 if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) {
28 if (bus_number != hose->first_busno)
35 if (ppc_md.pci_exclude_device(hose, bus_number, devfn))
38 if (hose->indirect_type & PPC_INDIRECT_TYPE_SET_CFG_TYPE)
39 if (bus_number != hose->first_busno)
42 bus_no = (bus_number == hose->first_busno) ?
43 hose->self_busno : bus_number;
45 if (hose->indirect_type & PPC_INDIRECT_TYPE_EXT_REG)
50 if (hose->indirect_type & PPC_INDIRECT_TYPE_BIG_ENDIAN)
51 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
54 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
61 cfg_data = hose->cfg_data + (offset & 3);
79 struct pci_controller *hose = pci_bus_to_host(bus);
81 return __indirect_read_config(hose, bus->number, devfn, offset, len,
88 struct pci_controller *hose = pci_bus_to_host(bus);
93 if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) {
94 if (bus->number != hose->first_busno)
101 if (ppc_md.pci_exclude_device(hose, bus->number, devfn))
104 if (hose->indirect_type & PPC_INDIRECT_TYPE_SET_CFG_TYPE)
105 if (bus->number != hose->first_busno)
108 bus_no = (bus->number == hose->first_busno) ?
109 hose->self_busno : bus->number;
111 if (hose->indirect_type & PPC_INDIRECT_TYPE_EXT_REG)
116 if (hose->indirect_type & PPC_INDIRECT_TYPE_BIG_ENDIAN)
117 out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
120 out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) |
124 if (hose->indirect_type & PPC_INDIRECT_TYPE_SURPRESS_PRIMARY_BUS)
126 (bus->number == hose->first_busno))
130 if ((hose->indirect_type & PPC_INDIRECT_TYPE_BROKEN_MRM) &&
139 cfg_data = hose->cfg_data + (offset & 3);
160 void setup_indirect_pci(struct pci_controller *hose, resource_size_t cfg_addr,
167 hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK);
170 hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK);
171 hose->ops = &indirect_pci_ops;
172 hose->indirect_type = flags;