Lines Matching refs:hose

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