Lines Matching refs:hose
52 static int mpc83xx_pcie_remap_cfg(struct pci_controller *hose, pci_dev_t dev) in mpc83xx_pcie_remap_cfg() argument
54 int bus = PCI_BUS(dev) - hose->first_busno; in mpc83xx_pcie_remap_cfg()
56 struct mpc83xx_pcie_priv *pcie_priv = hose->priv_data; in mpc83xx_pcie_remap_cfg()
62 if (hose->indirect_type == INDIRECT_TYPE_NO_PCIE_LINK) in mpc83xx_pcie_remap_cfg()
85 static int pcie_##rw##_config_##size(struct pci_controller *hose, \
91 ret = mpc83xx_pcie_remap_cfg(hose, dev); \
96 cfg_##rw(val, (void *)hose->cfg_addr + offset, type, op); \
112 struct pci_controller *hose = &pcie_hose[bus]; in PCIE_OP() local
126 hose->regions[i] = *reg; in PCIE_OP()
127 hose->region_count++; in PCIE_OP()
130 i = hose->region_count++; in PCIE_OP()
131 hose->regions[i].bus_start = 0; in PCIE_OP()
132 hose->regions[i].phys_start = 0; in PCIE_OP()
133 hose->regions[i].size = gd->ram_size; in PCIE_OP()
134 hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_SYS_MEMORY; in PCIE_OP()
136 i = hose->region_count++; in PCIE_OP()
137 hose->regions[i].bus_start = CONFIG_SYS_IMMR; in PCIE_OP()
138 hose->regions[i].phys_start = CONFIG_SYS_IMMR; in PCIE_OP()
139 hose->regions[i].size = 0x100000; in PCIE_OP()
140 hose->regions[i].flags = PCI_REGION_MEM | PCI_REGION_SYS_MEMORY; in PCIE_OP()
142 hose->first_busno = pci_last_busno() + 1; in PCIE_OP()
143 hose->last_busno = 0xff; in PCIE_OP()
145 hose->cfg_addr = (unsigned int *)mpc83xx_pcie_cfg_space[bus].base; in PCIE_OP()
147 hose->priv_data = &pcie_priv[bus]; in PCIE_OP()
149 pci_set_ops(hose, in PCIE_OP()
158 hose->indirect_type = INDIRECT_TYPE_NO_PCIE_LINK; in PCIE_OP()
160 pci_register_hose(hose); in PCIE_OP()
168 hose->last_busno = pci_hose_scan(hose); in PCIE_OP()