Lines Matching refs:hose
51 static int mpc83xx_pcie_remap_cfg(struct pci_controller *hose, pci_dev_t dev) in mpc83xx_pcie_remap_cfg() argument
53 int bus = PCI_BUS(dev) - hose->first_busno; in mpc83xx_pcie_remap_cfg()
55 struct mpc83xx_pcie_priv *pcie_priv = hose->priv_data; in mpc83xx_pcie_remap_cfg()
61 if (hose->indirect_type == INDIRECT_TYPE_NO_PCIE_LINK) in mpc83xx_pcie_remap_cfg()
84 static int pcie_##rw##_config_##size(struct pci_controller *hose, \
90 ret = mpc83xx_pcie_remap_cfg(hose, dev); \
95 cfg_##rw(val, (void *)hose->cfg_addr + offset, type, op); \
111 struct pci_controller *hose = &pcie_hose[bus]; in PCIE_OP() local
125 hose->regions[i] = *reg; in PCIE_OP()
126 hose->region_count++; in PCIE_OP()
129 i = hose->region_count++; in PCIE_OP()
130 hose->regions[i].bus_start = 0; in PCIE_OP()
131 hose->regions[i].phys_start = 0; in PCIE_OP()
132 hose->regions[i].size = gd->ram_size; in PCIE_OP()
133 hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_SYS_MEMORY; in PCIE_OP()
135 i = hose->region_count++; in PCIE_OP()
136 hose->regions[i].bus_start = CONFIG_SYS_IMMR; in PCIE_OP()
137 hose->regions[i].phys_start = CONFIG_SYS_IMMR; in PCIE_OP()
138 hose->regions[i].size = 0x100000; in PCIE_OP()
139 hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_SYS_MEMORY; in PCIE_OP()
141 hose->first_busno = pci_last_busno() + 1; in PCIE_OP()
142 hose->last_busno = 0xff; in PCIE_OP()
144 hose->cfg_addr = (unsigned int *)mpc83xx_pcie_cfg_space[bus].base; in PCIE_OP()
146 hose->priv_data = &pcie_priv[bus]; in PCIE_OP()
148 pci_set_ops(hose, in PCIE_OP()
157 hose->indirect_type = INDIRECT_TYPE_NO_PCIE_LINK; in PCIE_OP()
159 pci_register_hose(hose); in PCIE_OP()
167 hose->last_busno = pci_hose_scan(hose); in PCIE_OP()