Lines Matching refs:setup
92 void __init vr41xx_pciu_setup(struct pci_controller_unit_setup *setup) in vr41xx_pciu_setup() argument
94 vr41xx_pci_controller_unit_setup = *setup; in vr41xx_pciu_setup()
99 struct pci_controller_unit_setup *setup; in vr41xx_pciu_init() local
107 setup = &vr41xx_pci_controller_unit_setup; in vr41xx_pciu_init()
128 if (setup->pci_clock_max != 0) in vr41xx_pciu_init()
129 pci_clock_max = setup->pci_clock_max; in vr41xx_pciu_init()
151 if (setup->master_memory1 != NULL) { in vr41xx_pciu_init()
152 master = setup->master_memory1; in vr41xx_pciu_init()
164 if (setup->master_memory2 != NULL) { in vr41xx_pciu_init()
165 master = setup->master_memory2; in vr41xx_pciu_init()
177 if (setup->target_memory1 != NULL) { in vr41xx_pciu_init()
178 target = setup->target_memory1; in vr41xx_pciu_init()
189 if (setup->target_memory2 != NULL) { in vr41xx_pciu_init()
190 target = setup->target_memory2; in vr41xx_pciu_init()
201 if (setup->master_io != NULL) { in vr41xx_pciu_init()
202 master = setup->master_io; in vr41xx_pciu_init()
214 if (setup->exclusive_access == CANNOT_LOCK_FROM_DEVICE) in vr41xx_pciu_init()
220 pciu_write(PCITRDYVREG, TRDYV(setup->wait_time_limit_from_irdy_to_trdy)); in vr41xx_pciu_init()
222 pciu_write(LATTIMEREG, MLTIM(setup->master_latency_timer)); in vr41xx_pciu_init()
224 if (setup->mailbox != NULL) { in vr41xx_pciu_init()
225 mailbox = setup->mailbox; in vr41xx_pciu_init()
231 if (setup->target_window1) { in vr41xx_pciu_init()
232 window = setup->target_window1; in vr41xx_pciu_init()
238 if (setup->target_window2) { in vr41xx_pciu_init()
239 window = setup->target_window2; in vr41xx_pciu_init()
247 val |= RTYVAL(setup->retry_limit); in vr41xx_pciu_init()
253 switch (setup->arbiter_priority_control) { in vr41xx_pciu_init()
265 if (setup->take_away_gnt_mode == PCI_TAKE_AWAY_GNT_ENABLE) in vr41xx_pciu_init()
279 if (setup->mem_resource != NULL) in vr41xx_pciu_init()
280 vr41xx_pci_controller.mem_resource = setup->mem_resource; in vr41xx_pciu_init()
282 if (setup->io_resource != NULL) { in vr41xx_pciu_init()
283 vr41xx_pci_controller.io_resource = setup->io_resource; in vr41xx_pciu_init()
290 if (setup->master_io) { in vr41xx_pciu_init()
293 master = setup->master_io; in vr41xx_pciu_init()